Skip to content
Snippets Groups Projects
Commit 3620911b authored by Laurent Petre's avatar Laurent Petre
Browse files

Fix the CI preview feature for the non-developer members

It appears that the "Run Pipeline" button in the "Pipeline" tab of the
merge requests is enabled only when a pipeline exists in the forked
project. There is thus no possibility to deploy the MR to a preview
envronment for non-developer members.

This commit ensures that a merge request pipeline exists in the forked
project.
parent f64669c1
No related branches found
No related tags found
No related merge requests found
Pipeline #6851075 passed
...@@ -70,6 +70,9 @@ deploy preview: ...@@ -70,6 +70,9 @@ deploy preview:
stage: deploy stage: deploy
rules: rules:
- if: $CI_PROJECT_NAMESPACE == 'cmsgemonline/gem-ops' && $CI_PIPELINE_SOURCE == 'merge_request_event' - if: $CI_PROJECT_NAMESPACE == 'cmsgemonline/gem-ops' && $CI_PIPELINE_SOURCE == 'merge_request_event'
when: always
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'
when: manual
environment: environment:
name: preview-$CI_MERGE_REQUEST_IID name: preview-$CI_MERGE_REQUEST_IID
url: https://cmsgemonline.web.cern.ch/doc/preview-$CI_MERGE_REQUEST_IID url: https://cmsgemonline.web.cern.ch/doc/preview-$CI_MERGE_REQUEST_IID
...@@ -83,7 +86,7 @@ deploy preview:stop: ...@@ -83,7 +86,7 @@ deploy preview:stop:
extends: .deploy eos:stop extends: .deploy eos:stop
stage: deploy stage: deploy
rules: rules:
- if: $CI_PROJECT_NAMESPACE == 'cmsgemonline/gem-ops' && $CI_PIPELINE_SOURCE == 'merge_request_event' - if: $CI_PIPELINE_SOURCE == 'merge_request_event'
when: manual when: manual
allow_failure: true allow_failure: true
environment: environment:
......
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