Skip to content

Commit

Permalink
skip clean if aborted before the image build stage in pre-merge (NVID…
Browse files Browse the repository at this point in the history
…IA#992)

Signed-off-by: Peixin Li <pxli@nyu.edu>
  • Loading branch information
pxLi authored and sperlingxx committed Nov 20, 2020
1 parent 89ca4e4 commit 7ae0119
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions jenkins/Jenkinsfile-blossom.premerge
Original file line number Diff line number Diff line change
Expand Up @@ -261,5 +261,8 @@ void uploadDocker(String IMAGE_NAME) {
}

void deleteDockerTempTag(String tag) {
if (!tag?.trim()) { // return if the tag is null or empty
return
}
sh "curl -u $URM_CREDS_USR:$URM_CREDS_PSW -XDELETE https://${ARTIFACTORY_NAME}/artifactory/sw-spark-docker-local/plugin/${tag} || true"
}

0 comments on commit 7ae0119

Please sign in to comment.