Skip to content
Snippets Groups Projects
Commit 62ef1c53 authored by Dave Moxey's avatar Dave Moxey
Browse files

Try to fix CI for MR pipelines

parent 81125028
Branches master
No related tags found
No related merge requests found
Pipeline #9734 failed
......@@ -4,8 +4,8 @@ trigger_mr:
ENVIRONMENT: test
UPSTREAM_REF: $CI_COMMIT_REF_NAME
MR_REF: $CI_MERGE_REQUEST_REF_PATH
only:
- merge_requests
rules:
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'
script:
- 'curl --fail --request POST --form token=$WEB_TRIGGER_TOKEN --form ref=master --form "variables[MR_REF]=$MR_REF" --form "variables[ENVIRONMENT]=test" --form "variables[UPSTREAM_REF]=$CI_COMMIT_REF_NAME" "https://gitlab.nektar.info/api/v4/projects/374/trigger/pipeline"'
......@@ -13,8 +13,8 @@ trigger_deploy:
variables:
ENVIRONMENT: deploy
UPSTREAM_REF: $CI_COMMIT_REF_NAME
only:
- master
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
trigger:
project: nektar/nektar-publications-web
strategy: depend
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