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:
commit
c85b9fa67d
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user