-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Catch curl upload error when upload fails #892
Conversation
/override metal3-ubuntu-e2e-integration-test-main |
@Sunnatillo: Overrode contexts on behalf of Sunnatillo: metal3-ubuntu-e2e-integration-test-main In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
bb62087
to
df41296
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/approve
jenkins/scripts/artifactory/utils.sh
Outdated
@@ -21,7 +21,8 @@ rt_upload_artifact() { | |||
ANONYMOUS="${3:-1}" | |||
|
|||
_CMD="curl \ | |||
$( ([[ "${ANONYMOUS}" != 1 ]] && echo " -u${RT_USER:?}:${RT_TOKEN:?}") || true) \ | |||
--fail-with-body \ | |||
$( ([[ ""${ANONYMOUS}" -ne 1 ]] && echo " -u${RT_USER:?}:${RT_TOKEN:?}") || true) \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I also now realized how bad this line of code actually is, but let's fix that in another PR.
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: tuminoid The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Also corrects conditions of number comparions. Signed-off-by: Sunnatillo <[email protected]>
df41296
to
972ab7a
Compare
/override metal3-ubuntu-e2e-integration-test-main |
@Sunnatillo: Overrode contexts on behalf of Sunnatillo: metal3-ubuntu-e2e-integration-test-main In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
Jenkins job did not fail when curl upload file failed, it finished successfull eenthough images were not uploaded.
https://jenkins.nordix.org/view/Metal3%20Periodic/job/metal3_periodic_node_image_building/97/consoleFull
This PR fixes this issue.
Also corrects number comparison conditions.