[JIRA] (JENKINS-47657) Agent running as Windows service kills all running jobs on reconnect

2019-03-20 Thread fst...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Flemming Steffensen commented on  JENKINS-47657  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Agent running as Windows service kills all running jobs on reconnect   
 

  
 
 
 
 

 
 One of our Win-10 machines were very seriously affected by this, going offline several times per day.  As a workaround, I added a batch script to check the status of the service every 10 minutes, and restarting the service if stopped. The batch is scheduled by Windows Schedule Tasks service, and set to run as a high priority task whenever the computer starts. Note the script must be run by at least a local administrator. I've placed the following code in a file called c:\Jenkins\EnsureJenkinsServiceRunnning.cmd : 

 

@echo off
set "ServiceName=jenkinsslave-C__Jenkins"
for /F "tokens=3 delims=: " %%H in ('sc query "%ServiceName%" ^| findstr " STATE"') DO (
  if /i "%%H" neq "RUNNING" (
   net start "%ServiceName%"
  )
)
 

  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-47657) Agent running as Windows service kills all running jobs on reconnect

2018-11-22 Thread marius.thes...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 m t commented on  JENKINS-47657  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Agent running as Windows service kills all running jobs on reconnect   
 

  
 
 
 
 

 
 For anyone else looking for a workaround, it turns out using SSH with windows works quite well. I installed it as described here and connected the node with "Launch agent via SSH". https://github.com/PowerShell/Win32-OpenSSH/wiki/Install-Win32-OpenSSH  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-47657) Agent running as Windows service kills all running jobs on reconnect

2018-11-20 Thread marius.thes...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 m t commented on  JENKINS-47657  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Agent running as Windows service kills all running jobs on reconnect   
 

  
 
 
 
 

 
 Has anybody found a workaround for this? We have a windows agent that has to run as an unprivileged user and it's quite annoying that it doesn't restart itself when it disconnects. I also don't see a reason for the service to ever restart. It completely breaks the durability of pipeline jobs. JENKINS-27617 may also fix this, but imho not restarting in the first place is a better option. This is with Jenkins 2.152 and the agent running on Windows 10 x64.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.