From d3a95d6e0d1976c86acfd2ad727629814691a144 Mon Sep 17 00:00:00 2001 From: Stefan Reimer Date: Thu, 13 Jan 2022 15:17:18 +0100 Subject: [PATCH] chore: debug Jenkins --- Jenkinsfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index f4cc54a..d1e5f2e 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -9,7 +9,7 @@ pipeline { } stage('Scan'){ environment { - TRIVY_TEMPLATE = "@${env.WORKSPACE}/html.tpl" + TRIVY_TEMPLATE = "@${env.JENKINS_AGENT_WORKDIR}/html.tpl" TRIVY_FORMAT = "template" TRIVY_OUTPUT = "reports/trivy.html" } @@ -18,14 +18,15 @@ pipeline { sh 'mkdir -p reports' sh 'env' sh 'make scan' + sh 'ls -laR reports' publishHTML target : [ allowMissing: true, alwaysLinkToLastBuild: true, keepAll: true, reportDir: 'reports', reportFiles: 'trivy.html', - reportName: 'Trivy Scan', - reportTitles: 'Trivy Scan' + reportName: 'TrivyScan', + reportTitles: 'TrivyScan' ] // Scan again and fail on CRITICAL vulns