Protected actions cannot be triggered when branch has pushes disabled
Summary
We have two jobs in the deploy
stage: deploy_dev
and deploy_prod
. Both are depending on the test
stage, but deploy_prod
has a when: manual
flag.
When the test
stage finished, the deploy_dev
starts building without a problem, but the deploy_prod
is locked, saying:
deploy_prod - manual play action (not allowed)
Steps to reproduce
Create two jobs in different stages, and set the job in the second job to when: manual
What is the current bug behavior?
Manual job can't be started.
What is the expected correct behavior?
As soon as the first job succeeds, the manual job should have a "Play" icon. This worked before.
Relevant logs and/or screenshots
The config:
image: registry.gitlab.com/exitlive/exitlive:2.0
stages:
- test
- deploy
run_tests:
stage: test
script:
- ./ci/scripts/test.run.sh
deploy_dev:
stage: deploy
script:
- ./ci/scripts/deploy.deploy.sh
environment: Development
only:
- master
deploy_prod:
stage: deploy
script:
- ./ci/scripts/deploy.deploy_prod.sh
environment: Production
only:
- master
when: manual
Without hover | With hover |
---|---|
![]() |
![]() |
Output of checks
This bug happens on GitLab.com
Edited by Grzegorz Bizon