Meridio: Archive all in _output and increase timeout
Change-Id: I882d8adb8e67f6f3aaa489516763706cc375cb5d
diff --git a/jjb/nsm/Jenkinsfile.security-scan b/jjb/nsm/Jenkinsfile.security-scan
index 655c6d4..ca9997b 100644
--- a/jjb/nsm/Jenkinsfile.security-scan
+++ b/jjb/nsm/Jenkinsfile.security-scan
@@ -61,7 +61,10 @@
}
stage('Report') {
if (env.DRY_RUN != 'true') {
- archiveArtifacts artifacts: '_output/*', followSymlinks: false
+ try {
+ archiveArtifacts artifacts: '_output/**/*.*', followSymlinks: false
+ } catch (Exception e) {
+ }
def number_of_vulnerabilities = sh(script: 'cat _output/list.txt | grep -v "^$" | awk \'{print $1}\' | sort | uniq | wc -l', returnStdout: true).trim()
def list_of_vulnerabilities = sh(script: 'cat _output/list.txt | grep -v "^$" | awk \'{print $1}\' | sort | uniq | sed \':a;N;$!ba;s/\\n/ ; /g\'', returnStdout: true).trim()