[JIRA] (JENKINS-46089) ProcessTreeKiller broken in pipeline jobs

2018-08-05 Thread jgl...@cloudbees.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Jesse Glick commented on  JENKINS-46089  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: ProcessTreeKiller broken in pipeline jobs   
 

  
 
 
 
 

 
 Try 

 

sh '''
JENKINS_SERVER_COOKIE=ignore ./gradlew whatever
'''
 

 Maybe it works, maybe not, just a thought.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.10.1#710002-sha1:6efc396)  
 

  
 

   





-- 
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-46089) ProcessTreeKiller broken in pipeline jobs

2018-05-01 Thread magicb...@gmx.de (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Georg Friedrich commented on  JENKINS-46089  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: ProcessTreeKiller broken in pipeline jobs   
 

  
 
 
 
 

 
 Ah, I just found that there already IS the ability to stop Jenkins from killing processes by using the "veto kill process"-feature. You should have mentioned this Oleg Nenashev  As far as I can see this is/was bugged for slave nodes but just got fixed 2 days ago. Unfortunately it missed the 2.119 release but I guess it will be available with 2.120 then. That's really great news, so I will wait patiently for the 2.120 and will create an extension for not killing the Gradle daemons.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)  
 
 

 
   
 

  
 

  
 

   





-- 
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-46089) ProcessTreeKiller broken in pipeline jobs

2018-05-01 Thread magicb...@gmx.de (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Georg Friedrich commented on  JENKINS-46089  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: ProcessTreeKiller broken in pipeline jobs   
 

  
 
 
 
 

 
 I think so too, Oleg Nenashev. Overriding the BUILD_ID environment variable looks very hacky. Unfortunately there is no possibility for Gradle to run the daemons initially. And of course the daemon feature of Gradle will only make sense for "always-on" build nodes, so using it in combination with docker agents is useless. That said: Would it be possible (from an architectural point of view) to disable the ProcessTreeKiller for specific builds instead of using this BUILD_ID hack? I think there are enough reasons here to give users the possibility to do so.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)  
 
 

 
   
 

  
 

  
 

   





-- 
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-46089) ProcessTreeKiller broken in pipeline jobs

2018-05-01 Thread thors...@meinl.bnv-bamberg.de (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Thorsten Meinl commented on  JENKINS-46089  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: ProcessTreeKiller broken in pipeline jobs   
 

  
 
 
 
 

 
 It would be a real shame if this very useful functionality wasn't available in Pipeline jobs. We use it to deploy the full application stack after a build which can then be used for testing and playing around. Since we have many branches it's not feasible to set up environments outside of Jenkins and somehow deploy the build results.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)  
 
 

 
   
 

  
 

  
 

   





-- 
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-46089) ProcessTreeKiller broken in pipeline jobs

2018-05-01 Thread o.v.nenas...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Oleg Nenashev assigned an issue to Unassigned  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-46089  
 
 
  ProcessTreeKiller broken in pipeline jobs   
 

  
 
 
 
 

 
Change By: 
 Oleg Nenashev  
 
 
Assignee: 
 Oleg Nenashev  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)  
 
 

 
   
 

  
 

  
 

   





-- 
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-46089) ProcessTreeKiller broken in pipeline jobs

2018-05-01 Thread o.v.nenas...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Oleg Nenashev commented on  JENKINS-46089  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: ProcessTreeKiller broken in pipeline jobs   
 

  
 
 
 
 

 
 Generally I agree with your diagnosis Georg Friedrich. The feature is documented in a way that it makes impression that it should work in Pipeline. Just because there was no Pipeline in April 2011 when the page was updated last time...  "dont-kill-me" always seemed to be a hack to me. If there are processes which should not be terminated by builds, they should be ideally to be started in another way (e.g. by service, etc.). In the case of Gradlethe daemon could be started automatically outside the Jenkins job (e.g. by VM initialization logic or by a Gradle tool installer). 
 
If Durable Task logic does not support ProcessTreeKiller extension points, this is a bug. 
If it just does not support "dont-kill-me", I think it would be enough to document it. 
  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)  
 
 

 
   
 

  
 

  
 

   





-- 
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-46089) ProcessTreeKiller broken in pipeline jobs

2018-05-01 Thread magicb...@gmx.de (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Georg Friedrich reopened an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-46089  
 
 
  ProcessTreeKiller broken in pipeline jobs   
 

  
 
 
 
 

 
Change By: 
 Georg Friedrich  
 
 
Resolution: 
 Not A Defect  
 
 
Status: 
 Closed Reopened  
 
 
Assignee: 
 Oleg Nenashev  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)  
 
 

 
   
 

  
 

  
 

   





-- 
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-46089) ProcessTreeKiller broken in pipeline jobs

2018-05-01 Thread magicb...@gmx.de (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Georg Friedrich commented on  JENKINS-46089  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: ProcessTreeKiller broken in pipeline jobs   
 

  
 
 
 
 

 
 Hi Sam Van Oort, this is either a bug for FreeStyle projects and therefore also a bug in the documentation, because the documentation page of the ProcessTreeKiller @ https://wiki.jenkins.io/display/JENKINS/ProcessTreeKiller clearly states what you should do when you want to keep a Daemon process alive. Or this is working as intended for FreeStyle projects but is broken for Pipeline builds. Besides there are very good reasons for keeping a process running. E.g. when you are using Gradle for your build environment, Gradle starts a Daemon that make subsequent builds faster. As Jenkins kills all Daemons at the end of each build, it clearly breaks a feature of Gradle. So there have to be a possibility to keep created processes alive. Oleg Nenashev or Jesse Glick maybe one of you can comment on this. Thanks in advance!  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)  
 
 

 
   
 

  
 

  
 

   





-- 
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-46089) ProcessTreeKiller broken in pipeline jobs

2018-04-12 Thread svano...@cloudbees.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Sam Van Oort closed an issue as Not A Defect  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Hi Thorsten, This is Pipeline working as designed – what you're describing would permit the Pipeline to leak processes potentially due to how it's launching them with the shell step. IIUC what you're saying, the fact that it doesn't kill the process in FreeStyle projects would be a bug with Freestyle.   
 

  
 
 
 
 

 
 Jenkins /  JENKINS-46089  
 
 
  ProcessTreeKiller broken in pipeline jobs   
 

  
 
 
 
 

 
Change By: 
 Sam Van Oort  
 
 
Status: 
 Open Closed  
 
 
Resolution: 
 Not A Defect  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this