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

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

parent ef618b71df5b
Pipeline #8487 passed with stage
in 4 minutes and 59 seconds
......@@ -37,7 +37,8 @@ trigger-other-pipelines:
- $TRIGGERED_FROM_OTHER_PROJECT
stage: after-tests
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
trigger-readthedocs:
only:
......@@ -48,4 +49,5 @@ trigger-readthedocs:
- $TRIGGERED_FROM_OTHER_PROJECT
stage: after-tests
script:
- curl -X POST -d "token=${READTHEDOCS_TOKEN}" https://readthedocs.org/api/v2/webhook/yams/109442/
# regarding the " everywhere when there is a '%': yaml is extremly weird when % are involved
- curl -X POST -d "token=${READTHEDOCS_TOKEN}" https://readthedocs.org/api/v2/webhook/yams/109442/ -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