Skip to content
Snippets Groups Projects
Commit bffc6097 authored by Tim Jaacks's avatar Tim Jaacks
Browse files

Manifest: switch from branch pipelines to merge request pipelines

This will make the manifest project support the "skip build" label.
parent 5ba1ac68
No related branches found
No related tags found
1 merge request!252Manifest: switch from branch pipelines to merge request pipelines
Pipeline #54978 passed with stages
in 1 minute and 21 seconds
...@@ -16,9 +16,6 @@ workflow: ...@@ -16,9 +16,6 @@ workflow:
- if: $CI_PIPELINE_SOURCE == "api" - if: $CI_PIPELINE_SOURCE == "api"
- if: $CI_PIPELINE_SOURCE == "pipeline" - if: $CI_PIPELINE_SOURCE == "pipeline"
- if: $CI_PIPELINE_SOURCE == "web" - if: $CI_PIPELINE_SOURCE == "web"
# Do not run pipelines for merge requests
- if: $CI_MERGE_REQUEST_IID
when: never
# Do not run pipelines on forked projects # Do not run pipelines on forked projects
# (use id instead of name because of rename) # (use id instead of name because of rename)
- if: $CI_PROJECT_ID != $MANIFEST_PROJECT_ID - if: $CI_PROJECT_ID != $MANIFEST_PROJECT_ID
...@@ -26,14 +23,16 @@ workflow: ...@@ -26,14 +23,16 @@ workflow:
# Do not run pipelines on integration branches # Do not run pipelines on integration branches
- if: $CI_COMMIT_REF_NAME =~ /^integrate\/.*/ - if: $CI_COMMIT_REF_NAME =~ /^integrate\/.*/
when: never when: never
# In all other cases, run the pipeline automatically # Run pipelines for merge requests
- when: always - if: $CI_MERGE_REQUEST_IID
# Run pipelines on the master branch
- if: $CI_COMMIT_REF_NAME == $MASTER_BRANCH
.full_build_pipeline: .full_build_pipeline:
rules: rules:
# Run the full build pipeline on non-master branches (i.e. in the merge request) # Run the full build pipeline on merge requests
# or if explicitly triggered by the API or the web button. # or if explicitly triggered by the API or the web button.
- if: $CI_COMMIT_REF_NAME != $MASTER_BRANCH - if: $CI_MERGE_REQUEST_IID
- if: $CI_PIPELINE_SOURCE == "api" - if: $CI_PIPELINE_SOURCE == "api"
- if: $CI_PIPELINE_SOURCE == "pipeline" - if: $CI_PIPELINE_SOURCE == "pipeline"
- if: $CI_PIPELINE_SOURCE == "web" - if: $CI_PIPELINE_SOURCE == "web"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment