Only delete agent when not succesful (#13865)
authorMatt Mitchell <mmitche@microsoft.com>
Fri, 8 Sep 2017 17:26:37 +0000 (10:26 -0700)
committerGitHub <noreply@github.com>
Fri, 8 Sep 2017 17:26:37 +0000 (10:26 -0700)
Spinup for this agent is unreliable (docker fails to start a lot).  Only delete when the build fails.

netci.groovy

index c628b0d43f739687c4552b36f07338ea64b39c3b..f87086361374bb4ed97438ae4d8340fd2b4e177f 100755 (executable)
@@ -1093,7 +1093,7 @@ def static addTriggers(def job, def branch, def isPR, def architecture, def os,
                     job.with {
                         publishers {
                             azureVMAgentPostBuildAction {
-                                agentPostBuildAction('Delete agent after build execution (when idle).')
+                                agentPostBuildAction('Delete agent if the build was not successful (when idle).')
                             }
                         }
                     }
@@ -1109,7 +1109,7 @@ def static addTriggers(def job, def branch, def isPR, def architecture, def os,
                     job.with {
                         publishers {
                             azureVMAgentPostBuildAction {
-                                agentPostBuildAction('Delete agent after build execution (when idle).')
+                                agentPostBuildAction('Delete agent if the build was not successful (when idle).')
                             }
                         }
                     }