如何从 Jenkins 构建中触发 Artifactory 许可证检查?
How to trigger Artifactory license check from Jenkins build?
我们运行我们的项目是从 Jenkins 管道脚本(Jenkins 2.183,Artifactory 插件 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.
遗憾的是,我找不到任何关于为什么不推荐使用这个功能或应该用什么来取代不推荐使用的功能的信息。
许可证检查功能已被 Xray 取代。
您可以找到新管道步骤 here (declarative) or here (scripted) 的文档。
我们运行我们的项目是从 Jenkins 管道脚本(Jenkins 2.183,Artifactory 插件 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.
遗憾的是,我找不到任何关于为什么不推荐使用这个功能或应该用什么来取代不推荐使用的功能的信息。
许可证检查功能已被 Xray 取代。
您可以找到新管道步骤 here (declarative) or here (scripted) 的文档。