我如何在 jenkins-job-dsl 中使用呼叫依賴檢查?

我只看到發布 OWASP 依賴項檢查結果的示例。https://jenkinsci.github.io/job-dsl-plugin/#method/javaposse.jobdsl.dsl.helpers.publisher.PublisherContext.dependencyCheck
提前致謝 !
uj5u.com熱心網友回復:
我自己想通了。
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
轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/510168.html
