Log response body when upsert git tag job fails
What does this MR do?
This MR updates the upsert git tag
job to use the --fail-with-body
curl flag to provide more meaningful output when an error occurs. In the past, if curl encounters a > 400
error, the upsert git tag
job would simply output:
Error while attempting to tag and release new version: curl command failed with exit code 22.
This MR will improve the error output so it includes the response body when a failure occurs
What are the relevant issue numbers?
N/A
Does this MR meet the acceptance criteria?
-
Tests added for this feature/bug Tested in this pipeline:
Error while attempting to tag and release new version: curl command failed with exit code 22. Response body: {"message":"You are not allowed to create this tag as it is protected."}
Edited by Adam Cohen