当提交被推送到Stash时,Jenkins不会触发

时间:2016-03-10 09:35:57

标签: jenkins

当我将提交推送到Stash上的回购时,Jenkins不会触发。当我按下Stash Webhook中的Trigger Jenkins按钮时,Jenkins会在提交进入后开始构建但不会自动构建。我已经浏览了一些材料并在Stash和Jenkins中进行了必要的设置。有没有地方可以开始调试我在推送Stash之后发生了什么?谢谢!

1 个答案:

答案 0 :(得分:0)

我在CI环境中尝试了Webhook插件,但我停止使用它。

我不知道如何调试此插件,但这是我现在正在使用的解决方案。

要在Stash提交中触发Jenkins作业,我使用此免费插件:

https://marketplace.atlassian.com/plugins/de.aeffle.stash.plugin.stash-http-get-post-receive-hook/server/overview

您可以在“设置/挂钩”部分中对其进行配置:

enter image description here

enter image description here

如果要为同一个Git仓库触发不同的作业,可以使用过滤器。

如果你想在Stash中有一个构建按钮,你也可以使用这个插件:

https://marketplace.atlassian.com/plugins/se.bjurr.prnfs.pull-request-notifier-for-stash/server/overview

enter image description here

相关问题