Trigger jobs could not contain manual_confirmation keyword
Summary
If the job triggers downstream pipeline, then it cannot be marked as manual_confirmation
Steps to reproduce
Create empty repository with 2 ymls:
- .gitlab-ci.yml:
stages:
- buld
- deploy
build:
stage: buld
script:
- echo Building!
when: manual
manual_confirmation: 'Are you sure you want to build?'
trigger-deploy:
trigger:
include: deploy-downstream-pipeline.yml
strategy: depend
stage: deploy
when: manual
manual_confirmation: 'You are unable to confirm trigger :c'
- deploy-downstream-pipeline.yml:
stages:
- deploy
deploy:
stage: deploy
script:
- echo Deploying!
when: manual
manual_confirmation: 'Are you sure you want to deploy?'
Example Project
https://gitlab.com/ViktorWii/triggerconfirmation
What is the current bug behavior?
Pipeline creation failed due to unexpected keyword manual_confirmation
in job trigger-deploy:
What is the expected correct behavior?
Any job can be marked with manual_confirmation
keyword.
Trigger job would ask you to confirm execution and afterwards downstream pipeline would be triggered
Relevant logs and/or screenshots
Output of checks
This bugs happens on botn GitLab.com and our self-hosted GitLab (v17.3)