Skip to content

Commit 7363d2e

Browse files
committed
ci: audit npm packages
1 parent caa99a6 commit 7363d2e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

vars/runJenkinsPipeline.groovy

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,12 @@ def call(){
253253
}
254254
steps{
255255
catchError(buildResult: 'SUCCESS', message: 'Audit NPM found issues', stageResult: 'UNSTABLE') {
256-
sh 'npm audit --json > npm-audit.json'
256+
sh 'npm audit --json > logs/npm-audit.json'
257+
}
258+
}
259+
post{
260+
always{
261+
recordIssues(tools: [npmAudit(pattern: 'logs/npm-audit.json')])
257262
}
258263
}
259264
}

0 commit comments

Comments
 (0)