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:
- in jenkins create "new item".
- make freestyle project.
- in "build trigger" section, select "build after other projects built".
- here select other job causes slave crash.
- afterwards add monitoring-and-restart-script build step.
Comments
Post a Comment