appveyor / ci

AppVeyor community support repository
https://www.appveyor.com
344 stars 66 forks source link

Filtering out all jobs with conditional build configuration creates hanging build (Queued) #3753

Open DoLearnWhileAlive opened 3 years ago

DoLearnWhileAlive commented 3 years ago

Tested with

Issue Description

When filtering with conditional build configuration with e.g. branch/only or skip_commits and the commit condition results in filtering all possible jobs, appveyor creates a I would say empty build which is hanging in status 'Queued'. See hanging build examples:

appveyor.yml

image: Visual Studio 2019  

environment:
  matrix:
    - job_name: build_dev
    - job_name: build_main

build_script:
  - ps: Write-Host "Build test"

test: off 

for:
  -
    matrix:
      only:
        - job_name: build_dev

    branches:
      only:
        - dev

    skip_commits:
      message: /^Do not build commit.*/

  -
    matrix:
      only:
        - job_name: build_main

    branches:
      only:
        - main

    skip_commits:
      message: /^Do not build commit.*/