问题描述:

Is it possible to do conditional build in Jenkins? for example every 5 mins it checks source control for new commits and will only build if there has been changes? we are using git at the moment.

网友答案:

You can set up Jenkins to poll your VCS and build if there are changes but better would be to use a post-commit trigger. 'Polling must die: triggering Jenkins builds from a git hook' will give you the info on setting that up.

网友答案:

I use Build triggers -> Poll SCM and doesn't really see the problem in using that system.

相关阅读:
Top