Saloni Ajmera
Saloni Ajmera

Reputation: 11

Jenkins bi-weekly build

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.

Upvotes: 1

Views: 1945

Answers (2)

Appy
Appy

Reputation: 21

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)

Upvotes: 0

Dmitri T
Dmitri T

Reputation: 168002

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.

Upvotes: 3

Related Questions