owasp - invoke Depenendecy-check in jenkins-dsl-job

Viewed 14
1 Answers

I figured it out myself.

dependencyCheck {
  odcInstallation('710')
  additionalArguments('--proxyserver x.x.x.x --proxyport 3128')
}

If the API Viewer does not list support for a certain plugin, the dynamic DSL can be used to fill the gap.

Use the embedded API Viewer to explore the available DSL methods. If your Jenkins instance is running at http://localhost:8080, then the API viewer can be opened at http://localhost:8080/plugin/job-dsl/api-viewer/index.html.

Reference:https://github.com/jenkinsci/job-dsl-plugin/wiki/Dynamic-DSL

Related