Commit 4b3bf796 authored by Laurent Peuch's avatar Laurent Peuch
Browse files

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

parent cd8880e9707f
...@@ -20,6 +20,9 @@ check-manifest: ...@@ -20,6 +20,9 @@ check-manifest:
script: tox -e check-manifest script: tox -e check-manifest
trigger-other-pipelines: trigger-other-pipelines:
except:
variables:
- $TRIGGERED_FROM_OTHER_PROJECT
stage: after-tests stage: after-tests
script: script:
- "if [ -z \"${TRIGGERED_FROM_OTHER_PROJECT}\" ]; then curl -X POST -F \"variables[TRIGGERED_FROM_OTHER_PROJECT]=true\" -F token=$CUBICWEB_PIPELINE_TRIGGER_TOKEN -F ref=branch/default -F \"variables[TRIGGERED_FROM_OTHER_PROJECT]=true\" https://forge.extranet.logilab.fr/api/v4/projects/385/trigger/pipeline; fi" - curl -X POST -F "variables[TRIGGERED_FROM_OTHER_PROJECT]=true" -F token=$CUBICWEB_PIPELINE_TRIGGER_TOKEN -F ref=branch/default https://forge.extranet.logilab.fr/api/v4/projects/385/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