Make script usable from both pipeline and localhost (#3147)

* Make script usable from both pipeline and localhost

* use the new argument --simnet-version=

* dummy, to trigger pipeline one more time

* CI: optimize the script

* No arg for help flag

* CI: comment and unneded parameter

Co-authored-by: Denis P <denis.pisarev@parity.io>
This commit is contained in:
radupopa2010
2021-06-01 16:52:15 +02:00
committed by GitHub
parent 2239b93d31
commit e6881457b8
2 changed files with 190 additions and 42 deletions
+3 -4
View File
@@ -300,8 +300,7 @@ publish-adder-collator-image:
after_script:
- buildah logout "$IMAGE_NAME"
# pass artifacts to the trigger-simnet job
- echo "COLLATOR_IMAGE=$IMAGE_NAME" > ./artifacts/collator.env
- echo "COLLATOR_IMAGE_TAG=$(cat ./artifacts/EXTRATAG)" >> ./artifacts/collator.env
- echo "COLLATOR_IMAGE_TAG=$(cat ./artifacts/EXTRATAG)" > ./artifacts/collator.env
artifacts:
reports:
# this artifact is used in trigger-simnet job
@@ -387,6 +386,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-version=${SIMNET_REF}
allow_failure: true