【问题标题】:Using Jenkins Artifactory Plugin to Publish Build Info But Not Deploy Artifacts使用 Jenkins Artifactory 插件发布构建信息但不部署工件
【发布时间】:2016-11-03 00:38:17
【问题描述】:

我们正在考虑将 Jenkins Artifactory 插件与 Gradle 集成一起使用,主要用于其许可证检查功能。在我们的例子中,我们不需要这个插件来发布任何工件到 Artifactory,只需要构建信息和许可证检查信息。有没有办法配置插件来做到这一点?不管我做什么,它似乎总是在 Gradle 中运行 artifactoryPublish 任务。

【问题讨论】:

    标签: plugins jenkins gradle build artifactory


    【解决方案1】:

    如果您使用 Artifactory Gradle 插件,请在 DSL 的 defaults {} 闭包中将 publishArtifacts 标志设置为 false

    如果您没有明确使用 Artifactory Gradle 插件,请取消选中“将工件发布到 Artifactory”标志。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-05-19
      • 2016-09-23
      • 1970-01-01
      • 2016-04-19
      • 1970-01-01
      • 1970-01-01
      • 2021-02-02
      • 1970-01-01
      相关资源
      最近更新 更多