Skip to content

Conditionally trigger child pipelines based on labels

Adam Cohen requested to merge test-conditional-build-using-labels into master

What does this MR do?

Conditionally run gemnasium child pipelines bas... (gitlab-org/gitlab#365313 - closed) added the ability to selectively run child pipelines, however, it requires modifying the MR title, and the danger-review job will fail if a merge request has a title longer than 72 characters. An alternative is to use labels to control which child pipelines to run, which is what this MR does.

The following labels can now be used to conditionally trigger child pipelines:

What are the relevant issue numbers?

Update gemnasium to conditionally trigger child... (gitlab-org/gitlab#385399 - closed)

Testing

  1. When using trigger-gemnasium and trigger-gemnasium-python labels, only those child pipelines are triggered:

  2. When not using any labels, all child pipelines are triggered:

Does this MR meet the acceptance criteria?

Edited by Adam Cohen

Merge request reports