Jenkins-配置Jenkins以轮询SCM中的更改 [英] Jenkins - Configure Jenkins to poll changes in SCM
问题描述
我正在与jenkins一起工作,当svn存储库发生更改时,我想运行maven目标.我已经在图片上加上了当前配置.
I am working with jenkins and I would like to run the maven goals when there is a change in the svn repository. I've attached a picture with my current configuration.
我知道每5分钟检查一次存储库是很疯狂的.我只想在有新更改时才运行它,但是我找不到路.无论如何,它不是在检查存储库.我在做什么错??
I know that checking the repository every 5 min is crazy. I would like to run it only when there is a new change, but I could not find the way. Anyway, it is not checking the repository. What am I doing wrong??
预先感谢
推荐答案
我认为您的cron不正确.根据您的描述,您可能需要将cron计划更改为
I think your cron is not correct. According to what you described, you may need to change cron schedule to
*/5 * * * *
您现在在日程表中输入的内容意味着它将在每小时的5点钟对SCM进行轮询.
What you put in your schedule now mean it will poll the SCM at 5 past of every hour.
这篇关于Jenkins-配置Jenkins以轮询SCM中的更改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!