Commit a3730b19 authored by Laurent Peuch's avatar Laurent Peuch

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

parent 599c3db1ac7
Pipeline #9269 passed with stage
in 2 minutes and 24 seconds
......@@ -23,4 +23,5 @@ trigger-other-pipelines:
- $TRIGGERED_FROM_OTHER_PROJECT
stage: after-tests
script:
- 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
# 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=$RQL_PIPELINE_TRIGGER_TOKEN -F ref=branch/default https://forge.extranet.logilab.fr/api/v4/projects/300/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