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

Add trigger token for CI

parent e3e6f5fd
Branches master
No related tags found
No related merge requests found
Pipeline #9710 failed
......@@ -2,11 +2,13 @@ trigger_mr:
variables:
ENVIRONMENT: test
UPSTREAM_REF: $CI_COMMIT_REF_NAME
UPSTREAM_URL: "${CI_SERVER_PROTOCOL}://${PROJECT_ACCESS_TOKEN}@${CI_SERVER_HOST}/${CI_PROJECT_PATH}.git"
MR_REF: $CI_MERGE_REQUEST_REF_PATH
only:
- merge_requests
script:
- 'curl --fail --request POST --form token=$WEB_TRIGGER_TOKEN --form ref=main --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"'
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