【问题标题】:owasp - invoke Depenendecy-check in jenkins-dsl-jobowasp - 在 jenkins-dsl-job 中调用 Depenendecy-check
【发布时间】:2022-09-23 02:56:09
【问题描述】:
标签:
jenkins
owasp
jenkins-job-dsl
【解决方案1】:
我自己想通了。
dependencyCheck {
odcInstallation('710')
additionalArguments('--proxyserver x.x.x.x --proxyport 3128')
}
如果API Viewer 没有列出对某个插件的支持,则可以使用动态 DSL 来填补空白。
使用嵌入式 API 查看器探索可用的 DSL 方法。如果您的 Jenkins 实例在 http://localhost:8080 运行,那么 API 查看器可以在 http://localhost:8080/plugin/job-dsl/api-viewer/index.html 打开。
参考:https://github.com/jenkinsci/job-dsl-plugin/wiki/Dynamic-DSL