Jenkins / Hudson: How to create periodically only after creating another project

I have a project ( p1) that is created at night. Every Tuesday I want to create a second project ( p2), but only upon successful completion p1. p2relies on a successful build p1, so it p2does not start to run if it does p1not work in this case .

The only way I can do this is to create two identical jobs p1 p1aand p1b:

  • p1a works every day except tuesday
  • p1b starts on tuesday, when it is completed successfully, launches p2

This is a bit of a mess as it creates several versions p1for support, with their own build history, etc.

Does anyone know a better way to do this?

+4
source share
4 answers

You can use the Exception plugin .

  • Configure the same resource string for both tasks (read more on the plugin page)
  • The job p1must be in the night schedule to start earlier than the p2job
  • The task p1should be scheduled only on Tuesdays, to start a little laterp1

, , p2 , "" p1. , , , p2 , , p2 -

.

  • p1 (, , .
  • , .
  • , Trigger/call , p2
+3

, . , -

, script ,

+1

(p2 ).

( ), .

, jobDSL - .

0
0

Source: https://habr.com/ru/post/1532856/


All Articles