本文介绍了如何在Artifactory中触发基于新工件的Jenkins?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Artifactory可以用作Jenkins中的"SCM"或源来触发在特定工件部署上的构建吗?

Can Artifactory be used as "SCM" or source in Jenkins to trigger the builds on an particular artifact deploy?

在Artifactory Jenkis插件中看不到任何东西(或错过它)描述(在詹金斯方面)

Don't see (or miss it) anything similar in the Artifactory Jenkis plugin description (and on Jenkins side)

例如,如果只能访问Artifactory存储库而不访问具有二进制文件源代码的SCM,则可能需要这样做.

This could be needed for instance if there is only access to the Artifactory repository and not to the SCM with code the binaries are coming from.

Nexus似乎可以使用这种功能(通过 nexus-webhook-plugin ) .难以置信,Artifactory缺少此功能.

Such functionality looks to be availble for Nexus (via nexus-webhook-plugin). Hard to believe that this feature is missing for Artifactory.

推荐答案

它可能不像钩子那么优雅,但我相信 URLTrigger插件即可满足您的需求.在他们的用例中列出:

It's maybe not as elegant as a hook, but I believe the URLTrigger Plugin will achieve what you're looking for. Listed in their use cases:

它使您可以检查上次修改日期并检查响应的内容以进行更改.

It allows you to check the last modification date and inspect the contents of the response for changes.

您将不得不使用轮询间隔,而不是依靠Artifactory通过钩子通知Jenkins,但根据我的经验,即使在高间隔下进行大量轮询,轮询也相对无害.

You would have to use a polling interval instead of relying on Artifactory to notify Jenkins via a hook, but in my experience polling is relatively innocuous even with lots of polls at high intervals.

这篇关于如何在Artifactory中触发基于新工件的Jenkins?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-12 18:22