We use jenkins pipelines and want start migrate to new version of OWASP Dependency-Check plugin, but can't understand new syntax.
So in new version jenkins write: java.lang.NoSuchMethodError: No such DSL method 'dependencyCheckAnalyzer' , we understand this cause.
groovy.lang.MissingPropertyException: No such property: dependency for class: WorkflowScript
Another try:
stage("Dependency Check") {
dependencyCheck datadir: 'dependency-check-data', isFailOnErrorDisabled: true, hintsFile: '', includeCsvReports: false, includeHtmlReports: true, includeJsonReports: false, isAutoupdateDisabled: false, outdir: '', scanpath: '', skipOnScmChange: false, skipOnUpstreamChange: false, suppressionFile: '', zipExtensions: ''
dependencyCheckPublisher canComputeNew: false, defaultEncoding: '', healthy: '', pattern: '', unHealthy: ''
archiveArtifacts allowEmptyArchive: true, artifacts: '**/dependency-check-report.*', onlyIfSuccessful: true
}
ERROR:[DependencyCheck] A Dependency-Check installation was not specified. Please configure the build and specify a Dependency-Check installation to use.
Another try:
stage("Dependency Check") {
dependency-check datadir: 'dependency-check-data', isFailOnErrorDisabled: true, hintsFile: '', includeCsvReports: false, includeHtmlReports: true, includeJsonReports: false, isAutoupdateDisabled: false, outdir: '', scanpath: '', skipOnScmChange: false, skipOnUpstreamChange: false, suppressionFile: '', zipExtensions: ''
dependencyCheckPublisher canComputeNew: false, defaultEncoding: '', healthy: '', pattern: '', unHealthy: ''
archiveArtifacts allowEmptyArchive: true, artifacts: '**/dependency-check-report.*', onlyIfSuccessful: true
}
ERROR:
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
WorkflowScript: 15: expecting '}', found 'datadir' @ line 15, column 26.
dependency-check datadir: 'dependency-check-data', isFailOnErrorDisabled: true, hintsFile: '', includeCsvReports: false, includeHtmlReports: true, includeJsonReports: false, isAutoupdateDisabled: false, outdir: '', scanpath: '', skipOnScmChange: false, skipOnUpstreamChange: false, suppressionFile: '', zipExtensions: ''
And we read
this github description, so we need to just use bash command in our pipeline to start a dependency check?
Maybe someone who use pipelines with dependency check can write examples how to use new version of dependency check with pipelines?