commit | f0775fb0bdfb0a18cdfa561c6aec1b15f8fe3988 | [log] [tgz] |
---|---|---|
author | Sergey Reshetnyak <sreshetniak@mirantis.com> | Thu Jun 28 14:54:01 2018 +0400 |
committer | Sergey Reshetnyak <sreshetniak@mirantis.com> | Thu Jun 28 14:54:01 2018 +0400 |
tree | cb4577d9220fe65d08c1f70920fb5f4350916b19 | |
parent | ce730d0247d6ecf6d37a32954617c04ade176956 [diff] |
Return error in promoteDockerArtifact fct when promote failed Change-Id: I0d15952a165afb8b51e3e3a3086905ef13228782 Related-PROD: https://mirantis.jira.com/browse/PROD-21068
diff --git a/src/com/mirantis/mcp/MCPArtifactory.groovy b/src/com/mirantis/mcp/MCPArtifactory.groovy index b272e25..7820135 100644 --- a/src/com/mirantis/mcp/MCPArtifactory.groovy +++ b/src/com/mirantis/mcp/MCPArtifactory.groovy
@@ -280,7 +280,7 @@ passwordVariable: 'ARTIFACTORY_PASSWORD', usernameVariable: 'ARTIFACTORY_LOGIN'] ]) { - sh "bash -c \"curl -u ${ARTIFACTORY_LOGIN}:${ARTIFACTORY_PASSWORD} -H \"Content-Type:application/json\" -X POST -d @${queryFile} ${url}\"" + sh "bash -c \"curl --fail -u ${ARTIFACTORY_LOGIN}:${ARTIFACTORY_PASSWORD} -H \"Content-Type:application/json\" -X POST -d @${queryFile} ${url}\"" } sh "rm -v ${queryFile}" }