1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2025-03-03 15:02:35 +02:00

Merge pull request #1070 from SAP/nevskrem-patch-1

whitesourceExecuteScan: Resilience for report generation
This commit is contained in:
Sven Merk 2019-12-16 21:55:04 +01:00 committed by GitHub
commit 72b4e36156
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -476,9 +476,13 @@ private resolveProjectIdentifiers(script, descriptorUtils, config) {
void analyseWhitesourceResults(Map config, WhitesourceRepository repository) {
def pdfName = "whitesource-riskReport.pdf"
repository.fetchReportForProduct(pdfName)
archiveArtifacts artifacts: pdfName
echo "A summary of the Whitesource findings was stored as artifact under the name ${pdfName}"
try {
repository.fetchReportForProduct(pdfName)
archiveArtifacts artifacts: pdfName
echo "A summary of the Whitesource findings was stored as artifact under the name ${pdfName}"
} catch (e) {
echo "[${STEP_NAME}][WARNING] Failed to fetch and archive report ${pdfName}"
}
if(config.whitesource.licensingVulnerabilities) {
def violationCount = fetchViolationCount(config, repository)