Search code examples
jenkinsbuild-triggers

Jenkins : Use "Build after other projects are built" and "Build periodically" at the same time


I have two jobs, p1 and p2.

Conditions that trigger p2:

  1. p1 build is completed

  2. Every Monday

enter image description here

But I know "Build after other projects are built" and "Build periodically" do not trigger at the same time. Is there any way to solve this?


Solution

  • Yes: Make a job p3 than just triggers job p2 when p1 is completed. And schedule p2 to run periodically.