Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jenkins SCM Polling - Biweekly (Every Two Weeks)

Tags:

jenkins

Currently I am polling SCM

H H(0-8) * * 5

Which I intend to mean: poll between midnight and 8am on Friday.

What I would like is to poll every OTHER Friday.

like image 268
edelaney05 Avatar asked Dec 18 '25 01:12

edelaney05


1 Answers

The accepted answer does not work in Jenkins:

Invalid input: "0 0-8 * * 5/2": line 1:12: unexpected token: /

So take a look at this answer (and vote that up in case it helps):

H H 8-14,22-28 * 5

"Run at some hour and some minute (see here for the meaning of H) every Friday (=the 5th day, see here), if that Friday happens to be between day 8-14 or 22-28 of month." Looks good in my local Jenkins, skipping the run on January 31st:

Would last have run at Friday, January 24, 2020 12:39:59 AM UTC; would next run at Friday, February 14, 2020 12:39:59 AM UTC.

like image 186
crusy Avatar answered Dec 19 '25 15:12

crusy



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!