1

How to setup jenkins job to only run biweekly at 8 AM in the morning.

Considering only the working days, Monday through Friday.

Basically running the build every second Friday.

StephenKing
  • 36,187
  • 11
  • 83
  • 112

2 Answers2

3

You can use the following cron expression

0 8 8-14,22-28 * 5

The format explained looks as:

{Minute} {Hour} {DayOfMonth} {Month} {DayofWeek}

JMeter Jenkins Schedule

You might also want to check out Continuous Integration 101: How to Run JMeter With Jenkins for more information regarding how to set up Jenkins for JMeter tests execution.

Dmitri T
  • 159,985
  • 5
  • 83
  • 133
0

This doesn't work, refer issue JENKINS-19756

However, a workaround that doesn't look good but works, check this answer.

Another workaround, that looks fine but works little erratically:
*0 7 1-7,15-21,29-31 * 1*
"all Mondays in 1st, 3rd and 5th week" (error in this one: if there's a 5th week, it works its next week as well as its the first week of next month)

Appy
  • 21
  • 1