Dependency-Check Trend graph doesn't appears on DSL pipelines jobs Its works with freestyle jobs.
pipeline {pipeline { agent any options { ansiColor('xterm') buildDiscarder(logRotator(numToKeepStr: '20')) disableConcurrentBuilds() timestamps() } tools { jdk 'openjdk-11' } stages{ stage('Checkout some java source') { steps { git url: 'https://github.com/bmuschko/whats-new-in-java-11.git', branch: 'master' } } stage('maven build') { steps { sh 'mvn clean install -Dmaven.test.skip -X' sh 'ls -alt' sh 'ls -alt target' } } // Enable OWASP Dependecy Vulnerabilities Check stage ('OWASP Dependency-Check Vulnerabilities') { steps { //See the additional arguments options https://jeremylong.github.io/DependencyCheck/dependency-check-cli/arguments.html dependencyCheck additionalArguments: '', odcInstallation: 'owasp-nexus' dependencyCheckPublisher pattern: '**/dependency-check-report.xml' sh 'ls -alt' } } } post { always { //clean up job workspace cleanWs() } } }
My pipeline:
pipeline { agent any options
tools
stages{ stage('Checkout some java source') { steps
}
stage('maven build') { steps
stage ('OWASP Dependency-Check Vulnerabilities') { steps
} post { always
} }