Skip to content
Snippets Groups Projects
Verified Commit 14b9fe8b authored by Timm Fitschen's avatar Timm Fitschen
Browse files

PIPELINE: add --fail-with-body to curl command

parent 02247fac
No related branches found
No related tags found
No related merge requests found
Pipeline #31530 failed
......@@ -22,7 +22,7 @@ add-commit:
- AUTHOR_NAME='"author_name":'
- CONTENT='"content":'
- COMMIT_MESSAGE='"commit_message":'
- curl --request PUT --header "$PRIVATE_TOKEN_HEADER $CIPRIVATETOKEN" --header "$CONTENT_TYPE_HEADER application/json" --data "{$BRANCH \"main\", $AUTHOR_EMAIL \"author@example.com\", $AUTHOR_NAME \"Ms C. I. Pipeline\", $CONTENT \"$(cat test.tsv)\", $COMMIT_MESSAGE \"update test.tsv\"}" "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/repository/files/test%2Etsv"
- curl --fail-with-body --request PUT --header "$PRIVATE_TOKEN_HEADER $CIPRIVATETOKEN" --header "$CONTENT_TYPE_HEADER application/json" --data "{$BRANCH \"main\", $AUTHOR_EMAIL \"author@example.com\", $AUTHOR_NAME \"Ms C. I. Pipeline\", $CONTENT \"$(cat test.tsv)\", $COMMIT_MESSAGE \"update test.tsv\"}" "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/repository/files/test%2Etsv"
pages:
rules:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment