Limit job start time to period

4 views
Skip to first unread message

Igor

unread,
Mar 11, 2016, 1:25:15 AM3/11/16
to Jenkins Users
Hello,
I want to limit a job, to start in the specific time period and just if it was triggered. 
How the best is to do it?

Thanks

Baptiste Mathus

unread,
Mar 11, 2016, 8:14:22 AM3/11/16
to jenkins...@googlegroups.com

Don't know any plugin designed precisely for that.
But if I had to do it, I'd try two ways:
* either have a first step to check the current hour to decide to continue or not
* or have a job dedicated to that, but that would trigger another one conditionally

Advantage of the second one: you'll only have actual executions on the downstream job. With the first you'll have visible builds even if they were stopped at first step.

My 2 cents

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/6c4d2ce0-7818-4015-93db-d428b015394a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages