Commit 06a926a9 authored by Laurent Peuch's avatar Laurent Peuch

[gitlab-ci] refactor to use except:variables instead of bash if

parent 9295730dd14
......@@ -18,6 +18,9 @@ py3-from-forge:
allow_failure: true
trigger-other-pipelines:
except:
variables:
- $TRIGGERED_FROM_OTHER_PROJECT
stage: after-tests
script:
- "if [ -z \"${TRIGGERED_FROM_OTHER_PROJECT}\" ]; then curl -X POST -F \"variables[TRIGGERED_FROM_OTHER_PROJECT]=true\" -F token=$RQL_PIPELINE_TRIGGER_TOKEN -F ref=branch/default https://forge.extranet.logilab.fr/api/v4/projects/300/trigger/pipeline; fi"
- curl -X POST -F "variables[TRIGGERED_FROM_OTHER_PROJECT]=true" -F token=$RQL_PIPELINE_TRIGGER_TOKEN -F ref=branch/default https://forge.extranet.logilab.fr/api/v4/projects/300/trigger/pipeline
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment