Leonardo Nicolas
Leonardo Nicolas

Reputation: 352

Jenkins build promotion: How do I schedule a build promotion?

Is it possible to schedule a build promotion?

Upvotes: 3

Views: 1500

Answers (1)

Stuart Whelan
Stuart Whelan

Reputation: 385

The only way I can think of is to create a second upstream job, lets call it the 'Scheduled Promotion Job'

In the Scheduled Promotion job create a promotion which has the promote immediately once the build completes, and schedule it's build to run according to the schedule you want the downstream job to be promoted by.

In the actual downstream build tell it to promote when the following upstream promotions are promoted, and enter the job name of the Scheduled Promotion Job.

To put it another way, tell your build to watch up upstream job for promptions, and put the schedule in the upstream job.

I just tried this with some test projects on my test jenkins server and it worked a treat.

Upvotes: 2

Related Questions