Commit d5087a1d authored by Laurent Peuch's avatar Laurent Peuch

build: use new gitlab syntax for triggering other pipeline

parent 9579bfbd773
Pipeline #14626 passed with stage
in 1 minute and 1 second
......@@ -32,14 +32,17 @@ check-manifest:
stage: tests
script: tox -e check-manifest
trigger-other-pipelines:
trigger-cubicweb-pipeline:
stage: after-tests
except:
variables:
- $TRIGGERED_FROM_OTHER_PROJECT
script:
# regarding the " everywhere when there is a '%': yaml is extremly weird when % are involved
- 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 -w "\nhttp code:"\ "%{http_code}\n" -f
- $TRIGGERED_FROM_OTHER_PROJECT && $TRIGGERED_FROM_OTHER_PROJECT != "rql"
variables:
TRIGGERED_FROM_OTHER_PROJECT: "rql"
trigger:
project: cubicweb/cubicweb
branch: branch/default
strategy: depend
trigger-readthedocs:
only:
......
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