Commit bb6e64f1 authored by Laurent Peuch's avatar Laurent Peuch
Browse files

[gitlab-ci] makes curl fails on bad http code and display it

parent ccda34840bb7
...@@ -25,4 +25,5 @@ trigger-other-pipelines: ...@@ -25,4 +25,5 @@ trigger-other-pipelines:
- $TRIGGERED_FROM_OTHER_PROJECT - $TRIGGERED_FROM_OTHER_PROJECT
stage: after-tests stage: after-tests
script: script:
- 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 # 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 https://forge.extranet.logilab.fr/api/v4/projects/385/trigger/pipeline -w "\nhttp code:"\ "%{http_code}\n" -f
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