Wednesday, 25 September 2013

In Jenkins, can I trigger a downstream job once a day

In Jenkins, can I trigger a downstream job once a day

We've got a Jenkins setup where we do incremental builds on SCM change,
validate and then if this works do a full build (from scratch). This
basically works but we waste time doing full builds during the day that we
don't normally use.
I know we could trigger full builds every night, but many of our branches
won't change for a few days - and then we might get a rush of changes.
Thus building every branch every night is wasteful too.
What I really want is some mechanism where we only do the full builds once
(say at night) if there has been an SCM change and the incremental build
and validate worked - there is no point auto-triggering full builds where
the incremental build and validate failed. Actually just "the incremental
build and validate worked" should suffice - as these normally just run on
SCM change.
Any suggestions? Is there some Jenkins extension that would help with this?

No comments:

Post a Comment