Ryan Burnham
Ryan Burnham

Reputation: 2669

Conditional Builds (when something has changed) in jenkins

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.

Upvotes: 1

Views: 1302

Answers (2)

Arnestig
Arnestig

Reputation: 2350

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

Upvotes: 2

Kirby Todd
Kirby Todd

Reputation: 11566

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.

Upvotes: 2

Related Questions