I installed Single Use and removed Post Build.  But upon further 
evaluation, I wonder if my problems were partly my own fault anyway?  In 
the Node Configurations I had:

Availability: Take this agent online when in demand, and offline when idle
In Demand Delay: 0
Idle Delay: 10
Disconnect After Limited Builds: 0
What to do when slave is disconnected: Shutdown and Revert

I wonder if my "Disconnect After Limited Builds = 0" was my problem in the 
first place?

I still suspect that there is a race condition idle window during the 10 
seconds though...


On Friday, November 10, 2017 at 11:13:45 AM UTC-5, john.peterson wrote:

> We have been using PostBuild Script to execute the following command on 
> the remote machine (as Build Steps > Execute Windows Batch Command):
>
> Shutdown  -s  -t:0     (I think I have that correct)
>
> We have to do this to make sure that NO MATTER WHAT our remote PC (VM) is 
> shutdown, otherwise, occasionally, a queued script will begin execution on 
> the already open VM.
>
> How can we do this and NOT use the PostBuild Script plugin?
>
> We were running 1.58 in the past and are just now updating to 2.87
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/5cf38cab-3567-4c59-b085-72aa6dfcb4e9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to