Sbspider
Sbspider

Reputation: 399

Jenkins nightly build only on new code

Is it possible to have Jenkins run a nightly build, but to not run the nightly build if there is no new code? For example, most of the days we have new code that would need to be analyzed, but ever so often we don't commit code that day (perhaps the dev did not come in), and I would like to avoid clogging up the artifacts and analysis with the redundant builds.

Upvotes: 1

Views: 586

Answers (1)

LeoLiu
LeoLiu

Reputation: 107

This can definitely be done. Under the job options, there should be a "Poll SCM" option under "Build Triggers".

Here's a video explaining it better: https://www.youtube.com/watch?v=R0gyFokexks

Upvotes: 4

Related Questions