Backend: Play all button appears even without manual jobs in a stage
Summary
The play all manual jobs button appears even when no manual jobs are defined in a stage. It seems like when a job is skipped, the button shows up. According to the docs, this option should be available only when a "stage contains manual actions".
Steps to reproduce
- Create a new project
- Add the following to the
.gitlab-ci.yml
file:
stages:
- build
- test
- deploy
- monitor
build-job:
stage: build
script:
- echo "I'm build-job"
when: on_failure
test-job:
stage: test
script:
- echo "I'm test-job"
when: on_failure
deploy-job:
stage: deploy
script:
- echo "I'm deploy-job"
when: on_failure
monitor-job:
stage: monitor
script:
- echo "I'm monitor-job"
when: on_failure
- Run the pipeline
- There are no manual jobs defined, but the play all jobs button shows up in the UI
Example Project
Here's an example: https://gitlab.com/samdbeckham/test/-/pipelines/505938643
What is the current bug behavior?
Play all button appears in the UI even when no manual jobs are defined.
What is the expected correct behavior?
The play all button should only appear when manual jobs are defined in a stage.
Relevant logs and/or screenshots
Output of checks
This bug happens on GitLab.com
Edited by Sam Beckham