【问题标题】:owasp - invoke Depenendecy-check in jenkins-dsl-jobowasp - 在 jenkins-dsl-job 中调用 Depenendecy-check
【发布时间】:2022-09-23 02:56:09
【问题描述】:

我如何在 jenkins-job-dsl 中使用调用依赖检查?

我只看到发布 OWASP 依赖项检查结果的示例。 https://jenkinsci.github.io/job-dsl-plugin/#method/javaposse.jobdsl.dsl.helpers.publisher.PublisherContext.dependencyCheck

提前致谢 !

    标签: 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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2020-02-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-06-21
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多