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:
commit
72b4e36156
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user