【发布时间】:2019-07-17 14:22:25
【问题描述】:
我们正在从 Jenkins 管道脚本(Jenkins 2.183,Artifactory Plugin 3.3.1)运行我们的项目构建,并将构建工件上传到 Artifactory。我们现在想从 Artifactory 触发许可证检查和通知邮件。
我们如何使用当前插件触发此检查(最好直接从管道脚本中)?
我们还有一个较旧的 Jenkins 服务器,它部署到同一个 Artifactory 实例。在该服务器中,我们可以触发许可证检查,如下所述:
- https://www.jfrog.com/confluence/display/RTF/License+Control#LicenseControl-BuildServerConfiguration
Artifactory 服务器必须支持许可证检查功能,因为它可以在这个较旧的构建系统上运行,但是对于新的 Jenkins 服务器/Artifactory 插件,这个配置选项似乎不可用,并且插件中没有引用它文档。我在管道 DSL 文档中也找不到任何提及此功能的内容。
在 Artifactory 插件的更新日志中,2018 年 12 月 27 日的更改显示:
Removed deprecated actions and APIs
Removed the following actions/APIs from both UI and code:
1. Bintray Publish Action.
2. License control.
3. Black Duck.
4. JenkinsXArtifactoryBuilderListener.
很遗憾,我找不到任何有关此功能被弃用的原因或应该替换已弃用功能的信息。
【问题讨论】:
标签: jenkins-pipeline artifactory