mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-01-24 00:09:07 +01:00
do not mark build as unstable if iqserver is not able to analyze
This commit is contained in:
8
Jenkinsfile
vendored
8
Jenkinsfile
vendored
@@ -55,7 +55,13 @@ node('docker') {
|
||||
if (isMainBranch()) {
|
||||
|
||||
stage('Lifecycle') {
|
||||
nexusPolicyEvaluation iqApplication: selectedApplication('scm'), iqScanPatterns: [[scanPattern: 'scm-server/target/scm-server-app.zip']], iqStage: 'build'
|
||||
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()}"
|
||||
}
|
||||
}
|
||||
|
||||
stage('Archive') {
|
||||
|
||||
Reference in New Issue
Block a user