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

Merge pull request #900 from SAP/ws-logs

whitesourceExecuteScan: Add archiving of new UA log files
This commit is contained in:
Sven Merk 2019-10-15 16:11:17 +02:00 committed by GitHub
commit 492bfd5637
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View File

@ -23,7 +23,10 @@ class WhitesourceConfigurationHelper implements Serializable {
]
}
if(config.verbose)
mapping += [name: 'log.level', value: 'debug']
mapping += [
[name: 'log.level', value: 'debug'],
[name: 'log.files.level', value: 'debug']
]
mapping += [
[name: 'apiKey', value: config.whitesource.orgToken, force: true],

View File

@ -407,6 +407,9 @@ 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/*", allowEmptyArchive: true
}
break
}