当github提交触发构建时,Jenkins autobuild进入循环 [英] Jenkins autobuild goes into a loop when github commit triggers the build

查看:593
本文介绍了当github提交触发构建时,Jenkins autobuild进入循环的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在jenkins中创建了一个webhook,并将它连接到github webhook&服务。



我遇到以下问题构建完成后,将使用版本和标记更新pom.xml。



我已经将构建触发器设置为将更改推送到GitHub时构建,并将其设置为循环,直到我手动停止它为止。



我想知道如何在pom.xml仅作为构建的一部分进行更新时停止构建触发器?


<在源代码管理作业配置节中添加其他行为并选择 Polling忽略来自某些用户的提交并提供Jenkins作业用于检入pom.xml的用户名。您还可以使用 Polling忽略某些路径中的提交并提供pom.xml的路径。


I created a webhook in jenkins and connected it to github webhook & services.

I came upon the following issue When the build is completed, the pom.xml is updated with the version and tag . This triggers build job again and its goes into a loop until, I manually stop it .

I have set the build trigger to "Build when a change is pushed to GitHub"

I would like to find out how to stop the build trigger when the pom.xml is updated only as part of the build?

解决方案

In the source code management job configuration section add Additional Behaviors and select Polling ignores commits from certain users and provide the user name your Jenkins job uses to checkin pom.xml. You can also use Polling ignores commits in certain paths and provide path to pom.xml.

这篇关于当github提交触发构建时,Jenkins autobuild进入循环的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆