Commit c8045e3b authored by Simon Knox's avatar Simon Knox

Merge branch 'pipeline-trigger-examples' into 'master'

Add --fail flag to pipeline trigger examples

See merge request gitlab-org/gitlab!77095
parents 62ba2ee9 666c2284
......@@ -45,6 +45,7 @@
%pre
:plain
curl -X POST \
--fail \
-F token=TOKEN \
-F ref=REF_NAME \
#{builds_trigger_url(@project.id)}
......@@ -54,7 +55,7 @@
%pre
:plain
script:
- "curl -X POST -F token=TOKEN -F ref=REF_NAME #{builds_trigger_url(@project.id)}"
- "curl -X POST --fail -F token=TOKEN -F ref=REF_NAME #{builds_trigger_url(@project.id)}"
%h5.gl-mt-3
= _('Use webhook')
......@@ -73,6 +74,7 @@
%pre
:plain
curl -X POST \
--fail \
-F token=TOKEN \
-F "ref=REF_NAME" \
-F "variables[RUN_NIGHTLY_BUILD]=true" \
......
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