remove Lifecycle stage

This commit is contained in:
Sebastian Sdorra
2020-05-10 21:47:35 +02:00
parent accdccc5b1
commit 0fc0b71c0b

17
Jenkinsfile vendored
View File

@@ -89,20 +89,7 @@ node('docker') {
}
}
if (isMainBranch() || isReleaseBranch()) {
stage('Lifecycle') {
try {
// failBuildOnNetworkError -> so we can catch the exception and neither fail nor make our build unstable
nexusPolicyEvaluation iqApplication: selectedApplication('scm'), iqScanPatterns: [[scanPattern: 'scm-server/target/scm-server-app.zip']], iqStage: 'build', failBuildOnNetworkError: true
} catch (Exception e) {
echo "ERROR: iQ Server policy eval failed. Not marking build unstable for now."
echo "ERROR: iQ Server Exception: ${e.getMessage()}"
}
}
if (isBuildSuccessful()) {
if (isBuildSuccessful() && (isMainBranch() || isReleaseBranch())) {
def commitHash = git.getCommitHash()
def imageVersion = mvn.getVersion()
@@ -197,8 +184,6 @@ node('docker') {
}
}
}
}
}
}