jenkins - How to make a specific job wait for a slave indefinitely? -


problem :

a task crashes slave, should reboot (sometimes doesn't). if reboot fails, may take week until reboots computer. build failed couldn't archive artifacts.

idea solve (if there better 1 please tell me) :

to have task launch after 1 checks if artifacts failed made (i have way check it), , wait forever until slave becomes available again, archive artifacts.

i know it's possible such every job, cannot find how specific job.

the best solution fix crashes server.

but can add job:

  1. in jenkins create "new item".
  2. make freestyle project.
  3. in "build trigger" section, select "build after other projects built".
  4. here select other job causes slave crash.
  5. afterwards add monitoring-and-restart-script build step.

Comments