mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-10-26 08:06:09 +01:00
remove Lifecycle stage
This commit is contained in:
17
Jenkinsfile
vendored
17
Jenkinsfile
vendored
@@ -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') {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user