Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,6 @@ trigger-simnet:
# simnet project ID
DWNSTRM_ID: 332
script:
# API trigger for a simnet job
- ./scripts/gitlab/trigger_pipeline.sh
# API trigger for a simnet job, argument value is set in the project variables
- ./scripts/gitlab/trigger_pipeline.sh ${SIMNET_REF}
allow_failure: true
10 changes: 7 additions & 3 deletions scripts/gitlab/trigger_pipeline.sh
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
#!/bin/bash

# EXAMPLE USAGE:
# ./trigger_pipeline.sh v5

set -eu

SIMNET_REF=$1

# API trigger another project's pipeline
echo "Triggering Simnet pipeline."
echo "Triggering Simnet pipeline version '${SIMNET_REF}'."

curl --silent \
-X POST \
-F "token=${CI_JOB_TOKEN}" \
-F "ref=v4" `# trigger the pinned version of simnet CI config` \
-F "ref=${SIMNET_REF}" `# trigger the pinned version of Simnet CI config` \
-F "variables[TRGR_PROJECT]=${TRGR_PROJECT}" \
-F "variables[TRGR_REF]=${TRGR_REF}" \
-F "variables[IMAGE_NAME]=${IMAGE_NAME}" \
Expand Down Expand Up @@ -50,4 +55,3 @@ for i in $(seq 1 360); do
fi
sleep 8;
done
# dummy: delete me