1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2024-12-14 11:03:09 +02:00

Merge pull request #904 from SAP/ws-logs-cp

whitesourceExecuteScan: Transfer logs into workspace to allow archiving
This commit is contained in:
Sven Merk 2019-10-18 09:13:12 +02:00 committed by GitHub
commit c85b9fa67d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -408,8 +408,13 @@ private def triggerWhitesourceScanWithUserKey(script, config, utils, descriptorU
// archive whitesource debug files, if available
archiveArtifacts artifacts: "**/ws-l*", allowEmptyArchive: true
// archive UA log file
archiveArtifacts artifacts: "/var/log/UA/**/*.log", allowEmptyArchive: true
try {
// archive UA log file
sh "cp -Rf --parents /var/log/UA/* ."
archiveArtifacts artifacts: "**/var/log/UA/**/*.log", allowEmptyArchive: true
} catch (e) {
echo "Failed archiving WhiteSource UA logs"
}
}
break
}