Add support for `when:manual` within triggered pipelines
Problem to solve or address
Using trigger to create multi-project or parent-child pipelines does not support
when: manual configs, with the docs stating "
when:manual prevents triggers being used." The best reasoning I can find for this is a slight mention in a note in MR 9107:
we might not want to support
Customer requesting (internal only) the use of manual actions for parent-child pipelines. Their specific use-case here is to refactor
.gitlab-ci.yml to separate out certain stages from an otherwise fairly complex CI/CD, and wanting to limit their deploy job to a manual action.
Is there a specific reason for limiting the use of
when:manual, and if so, perhaps the docs for parent-child pipelines could be updated to reflect that? If not, was it ever an intention to implement that functionality?
It's technically possible to implement this using a parent job to trigger a child pipeline that then uses manual jobs, so there is a workaround to this feature request at present. But since
when (on_success, on_failure, and always), it is a valid question from the end-user perspective as to why
manual is not currently supported.
Related docs improvement issue for
This page may contain information related to upcoming products, features and functionality. It is important to note that the information presented is for informational purposes only, so please do not rely on the information for purchasing or planning purposes. Just like with all projects, the items mentioned on the page are subject to change or delay, and the development, release, and timing of any products, features, or functionality remain at the sole discretion of GitLab Inc.