Pipeline web runner no longer respecting `only: web`
Summary
With the release of 13.2, our previously functioning .gitlab-ci.yml
file no longer executes jobs that have web
in the list of only
values.
Steps to reproduce
Put the following into your gitlab-ci.yml
file:
deploy-start:
stage: deploy
image: alpine
script: |
echo 'This should work'
only:
- web
Then go into the web UI, select your branch to deploy and click Run Pipeline
. The form errors-out with the following message:
The form contains the following error:
[ "No stages / jobs for this pipeline." ]
Example Project
What is the current bug behavior?
The form errors out
What is the expected correct behavior?
The job should run without error.
Relevant logs and/or screenshots
N/A
Output of checks
This bug happens on GitLab.com
Possible workarounds
For now, we've opted to change the config to make use of variables:
:
deploy:
stage: deploy
image: alpine
script: |
echo 'This should work'
only:
variables:
- $CI_DO_DEPLOY =~ /^y/i
It's not ideal, but it does the job.
Edited by Cleveland Bledsoe Jr