chore: debug Jenkins
This commit is contained in:
parent
df98cb7b25
commit
d3a95d6e0d
3
Jenkinsfile
vendored
3
Jenkinsfile
vendored
@ -9,7 +9,7 @@ pipeline {
|
|||||||
}
|
}
|
||||||
stage('Scan'){
|
stage('Scan'){
|
||||||
environment {
|
environment {
|
||||||
TRIVY_TEMPLATE = "@${env.WORKSPACE}/html.tpl"
|
TRIVY_TEMPLATE = "@${env.JENKINS_AGENT_WORKDIR}/html.tpl"
|
||||||
TRIVY_FORMAT = "template"
|
TRIVY_FORMAT = "template"
|
||||||
TRIVY_OUTPUT = "reports/trivy.html"
|
TRIVY_OUTPUT = "reports/trivy.html"
|
||||||
}
|
}
|
||||||
@ -18,6 +18,7 @@ pipeline {
|
|||||||
sh 'mkdir -p reports'
|
sh 'mkdir -p reports'
|
||||||
sh 'env'
|
sh 'env'
|
||||||
sh 'make scan'
|
sh 'make scan'
|
||||||
|
sh 'ls -laR reports'
|
||||||
publishHTML target : [
|
publishHTML target : [
|
||||||
allowMissing: true,
|
allowMissing: true,
|
||||||
alwaysLinkToLastBuild: true,
|
alwaysLinkToLastBuild: true,
|
||||||
|
Loading…
Reference in New Issue
Block a user