When I've needed to run something on a freshly booted machine, particularly
as part of a series of jobs, I've generally been able to do that by
partitioning the work into multiple jobs, with the job which must execute
on the newly booted slave being configured to run on the slave.

A single job can't run successfully on the slave node being rebooted
(during the reboot), because, as you note, it will fail the job.  Multiple
jobs allow you to have the job wait for the slave agent to become
available, then it immediately starts the job.

On Thu, Apr 23, 2015 at 12:27 PM Ankit Singhal <ankising...@gmail.com>
wrote:

> Hi
>
> I need some help in solving the reboot problem.
>
> The Workflow is as follows:
>
> 1) Project 1 creates a Windows Installable package.
> 2) Project 2 is called once the Project1 is completed and Package is
> pushed to Slave associated with Project 2.
> 3) Project 2 now runs some commands on Slave 2
>
> Command 1 : Install Package on Slave 2
> Command 2 : Run some commands to enable the software.
> Command 3 : Reboot the machine.
>
> 4) This might break the Job running in Project 2.
> 5) After reboot , we need to run some more commands on Slave 2 to run some
> more tests.
> 6) After tests are completed , the full Job in Project 2 is done.
>
> In nutshell , how to handle the reboot scenario , so that the job is not
> broken in between.
>
> Regards
> Ankit
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/d2f0f06b-5dcf-4875-92b0-30f0c8dbbe04%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-users/d2f0f06b-5dcf-4875-92b0-30f0c8dbbe04%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtHYOSyt3C1V9WLd_nqT0Cb5CZrDrZQU9A6UD%3D5KNrWjTA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to