[JIRA] (JENKINS-3105) Configuration UI to disable process tree killer selectively

2019-10-07 Thread ma...@slonopotamus.org (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Marat Radchenko edited a comment on  JENKINS-3105  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Configuration UI to disable process tree killer selectively   
 

  
 
 
 
 

 
 It isn't clear what does "selectively" mean from this issue description. Like comments say, it is possible to disable process killing for individual processes. Even when these processes are not run directly by Jenkins. No kind of UI is going to provide such level of selectivity.Also, there's stuff like pipeline scripts that do not provide any kind of UI and instead edited as text. Talking about mspdbsrv.exe, please see JENKINS-9104.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)  
 
 

 
   
 

  
 

  
 

   





-- 
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.133178.1235281001000.2219.1570431780546%40Atlassian.JIRA.


[JIRA] (JENKINS-3105) Configuration UI to disable process tree killer selectively

2019-10-07 Thread ma...@slonopotamus.org (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Marat Radchenko edited a comment on  JENKINS-3105  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Configuration UI to disable process tree killer selectively   
 

  
 
 
 
 

 
 It isn't clear what does "selectively" mean from this issue description. Like comments say, it is possible to disable process killing for individual processes. Even when these processes are not run directly by Jenkins. No kind of UI is going to provide such level of selectivity. Also, there's stuff like pipeline scripts that do not provide any kind of UI and instead edited as text.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)  
 
 

 
   
 

  
 

  
 

   





-- 
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.133178.1235281001000.2202.1570431480383%40Atlassian.JIRA.


[JIRA] (JENKINS-3105) Configuration UI to disable process tree killer selectively

2019-10-07 Thread ma...@slonopotamus.org (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Marat Radchenko resolved as Incomplete  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 It isn't clear what does "selectively" mean from this issue description. Like comments say, it is possible to disable process killing for individual processes. Even when these processes are not run directly by Jenkins. No kind of UI is going to provide such level of selectivity.  
 

  
 
 
 
 

 
 Jenkins /  JENKINS-3105  
 
 
  Configuration UI to disable process tree killer selectively   
 

  
 
 
 
 

 
Change By: 
 Marat Radchenko  
 
 
Status: 
 Open Resolved  
 
 
Resolution: 
 Incomplete  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message 

[JIRA] (JENKINS-3105) Configuration UI to disable process tree killer selectively

2012-04-18 Thread n...@fnxweb.com (JIRA)

[ 
https://issues.jenkins-ci.org/browse/JENKINS-3105?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=161734#comment-161734
 ] 

Neil Bird commented on JENKINS-3105:


As it seems vaguely appropriate, I shall repeat here for interested parties 
what I've just commented on [issue 
#9104|https://issues.jenkins-ci.org/browse/JENKINS-9104?focusedCommentId=161729#comment-161729]
 :

Visual Studio is so ubiquitous that I personally think this could warrant a 
special case built into Jenkins, but anyway this is what we have just started 
doing (before calling devenv but after the MSC setup.bat has been called) to 
work around this (for all Windows builds):

{quote}
:: PITA to keep MSPDBSRV alive
set ORIG_BUILD_ID=%BUILD_ID%
set BUILD_ID=DoNotKillMe
start mspdbsrv -start -spawn
set BUILD_ID=%ORIG_BUILD_ID%
set ORIG_BUILD_ID=
{quote}

It seems, from reading around, that the Jenkins process “tree” killer rummages 
through the *whole* process tree looking for processes with the environment 
variable BUILD_ID set to what Jenkins originally set it to, and killing any it 
finds. The above temporarily changes that to something else (anything, you 
could even just blank it), launches mspdbsrv manually (so it has the altered 
env. var.) and then puts it back (to restore the usual no-resource-leak fix).

When you run mspdbsrv, it seems to immediately exit if there's already an 
appropriate version running, so it doesn't matter having multiple jobs trying 
to kick it off.


 Configuration UI to disable process tree killer selectively
 ---

 Key: JENKINS-3105
 URL: https://issues.jenkins-ci.org/browse/JENKINS-3105
 Project: Jenkins
  Issue Type: Improvement
  Components: other
Affects Versions: current
 Environment: Platform: Sun, OS: Solaris
Reporter: olamy
Priority: Trivial

 Due to fix https://hudson.dev.java.net/issues/show_bug.cgi?id=2729, I can't
 restart my tomcat instance with using a script which worked fine before 1.283.
 My script called fastRestart.sh is :
 PWD=`pwd`
 cd $PWD
 #BUILD_ID=dontKillMe catalina.sh start
 #BUILD_ID=dontKillMe ./startup.sh
 echo $BUILD_ID
 kill -9 `cat ./tomcat.pid`  ./startup.sh
 My hudson job do :
 BUILD_ID=dontKillMe startup.sh  cd
 /local/dotw/tomcat-dev-ota-ah/apache-tomcat-6.0.14/bin  ./fastRestart.sh 
 job console output :
 started
 [workspace] $ /bin/sh -xe
 /local/dotw/tmp/hudson-tmp/hudson3776950102996593394.sh
 BUILD_ID=dontKillMe startup.sh
 + cd /local/dotw/tomcat-dev-ota-ah/apache-tomcat-6.0.14/bin
 + ./fastRestart.sh
 + pwd
 PWD=/local/dotw/tomcat-dev-ota-ah/apache-tomcat-6.0.14/bin
 + cd /local/dotw/tomcat-dev-ota-ah/apache-tomcat-6.0.14/bin
 + echo dontKillMe startup.sh
 dontKillMe startup.sh
 + cat ./tomcat.pid
 + kill -9 9822
 + ./startup.sh
 finished: SUCCESS
 Here the tomcat has been killed and restarted but immediatly stop due to fix 
 for
 2729.
 Is there any other workaround ?
 IMHO we should have a flag when running a script which don't kill child
 processes (to preserve a minimum of backward compatibility and a minimum of
 some jobs/scripts rewriting)
 Thanks
 --
 Olivier

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[JIRA] (JENKINS-3105) Configuration UI to disable process tree killer selectively

2012-03-01 Thread chantiv...@yahoo.fr (JIRA)

[ 
https://issues.jenkins-ci.org/browse/JENKINS-3105?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=159696#comment-159696
 ] 

chanti vlad commented on JENKINS-3105:
--

@mdonohue: I think it _does_ apply to enough users.

Lots of us are using concurrent gmake builds without a problem on linux 
machines, and lots of us want to do just the same for msvc builds under windows.

It would be definitely nice to have a checkbox for a Windows Batch Command 
build step or something like this, because a typical use case is not to kill 
mspdbsrv.exe for simultaneous visual studio builds.

 Configuration UI to disable process tree killer selectively
 ---

 Key: JENKINS-3105
 URL: https://issues.jenkins-ci.org/browse/JENKINS-3105
 Project: Jenkins
  Issue Type: Improvement
  Components: other
Affects Versions: current
 Environment: Platform: Sun, OS: Solaris
Reporter: olamy
Priority: Trivial

 Due to fix https://hudson.dev.java.net/issues/show_bug.cgi?id=2729, I can't
 restart my tomcat instance with using a script which worked fine before 1.283.
 My script called fastRestart.sh is :
 PWD=`pwd`
 cd $PWD
 #BUILD_ID=dontKillMe catalina.sh start
 #BUILD_ID=dontKillMe ./startup.sh
 echo $BUILD_ID
 kill -9 `cat ./tomcat.pid`  ./startup.sh
 My hudson job do :
 BUILD_ID=dontKillMe startup.sh  cd
 /local/dotw/tomcat-dev-ota-ah/apache-tomcat-6.0.14/bin  ./fastRestart.sh 
 job console output :
 started
 [workspace] $ /bin/sh -xe
 /local/dotw/tmp/hudson-tmp/hudson3776950102996593394.sh
 BUILD_ID=dontKillMe startup.sh
 + cd /local/dotw/tomcat-dev-ota-ah/apache-tomcat-6.0.14/bin
 + ./fastRestart.sh
 + pwd
 PWD=/local/dotw/tomcat-dev-ota-ah/apache-tomcat-6.0.14/bin
 + cd /local/dotw/tomcat-dev-ota-ah/apache-tomcat-6.0.14/bin
 + echo dontKillMe startup.sh
 dontKillMe startup.sh
 + cat ./tomcat.pid
 + kill -9 9822
 + ./startup.sh
 finished: SUCCESS
 Here the tomcat has been killed and restarted but immediatly stop due to fix 
 for
 2729.
 Is there any other workaround ?
 IMHO we should have a flag when running a script which don't kill child
 processes (to preserve a minimum of backward compatibility and a minimum of
 some jobs/scripts rewriting)
 Thanks
 --
 Olivier

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[JIRA] (JENKINS-3105) Configuration UI to disable process tree killer selectively

2012-02-07 Thread m_bro...@java.net (JIRA)

[ 
https://issues.jenkins-ci.org/browse/JENKINS-3105?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=158732#comment-158732
 ] 

m_broida edited comment on JENKINS-3105 at 2/7/12 5:43 PM:
---

Details on this workaround work, please?

Does it prevent intentionally killing/aborting a build?

Can a build step in the job just set a BUILD_ID envvar?
Is the specific value dontKillMe required, or will any value work?

Adding a parameter to every one of our many jobs (and new ones) would be a 
hassle, even if users could accept a default value.
Can the BUILD_ID envvar be set in the overall Jenkins configuration to affect 
all Jenkins jobs?
Can the BUILD_ID envvar be set at the OS level to affect all Jenkins jobs?

We have had to restrict many of our jobs to run on nodes with only a single 
executor to ensure that the situation doesn't arise.  A real fix would be most 
helpful.

  was (Author: m_broida):
Details on this workaround work, please?

Can a build step in the job just set a BUILD_ID envvar?
Is the specific value dontKillMe required, or will any value work?

Adding a parameter to every one of our many jobs (and new ones) would be a 
hassle, even if users could accept a default value.
Can the BUILD_ID envvar be set in the overall Jenkins configuration to affect 
all Jenkins jobs?
Can the BUILD_ID envvar be set at the OS level to affect all Jenkins jobs?

We have had to restrict many of our jobs to run on nodes with only a single 
executor to ensure that the situation doesn't arise.  A real fix would be most 
helpful.
  
 Configuration UI to disable process tree killer selectively
 ---

 Key: JENKINS-3105
 URL: https://issues.jenkins-ci.org/browse/JENKINS-3105
 Project: Jenkins
  Issue Type: Improvement
  Components: other
Affects Versions: current
 Environment: Platform: Sun, OS: Solaris
Reporter: olamy
Priority: Trivial

 Due to fix https://hudson.dev.java.net/issues/show_bug.cgi?id=2729, I can't
 restart my tomcat instance with using a script which worked fine before 1.283.
 My script called fastRestart.sh is :
 PWD=`pwd`
 cd $PWD
 #BUILD_ID=dontKillMe catalina.sh start
 #BUILD_ID=dontKillMe ./startup.sh
 echo $BUILD_ID
 kill -9 `cat ./tomcat.pid`  ./startup.sh
 My hudson job do :
 BUILD_ID=dontKillMe startup.sh  cd
 /local/dotw/tomcat-dev-ota-ah/apache-tomcat-6.0.14/bin  ./fastRestart.sh 
 job console output :
 started
 [workspace] $ /bin/sh -xe
 /local/dotw/tmp/hudson-tmp/hudson3776950102996593394.sh
 BUILD_ID=dontKillMe startup.sh
 + cd /local/dotw/tomcat-dev-ota-ah/apache-tomcat-6.0.14/bin
 + ./fastRestart.sh
 + pwd
 PWD=/local/dotw/tomcat-dev-ota-ah/apache-tomcat-6.0.14/bin
 + cd /local/dotw/tomcat-dev-ota-ah/apache-tomcat-6.0.14/bin
 + echo dontKillMe startup.sh
 dontKillMe startup.sh
 + cat ./tomcat.pid
 + kill -9 9822
 + ./startup.sh
 finished: SUCCESS
 Here the tomcat has been killed and restarted but immediatly stop due to fix 
 for
 2729.
 Is there any other workaround ?
 IMHO we should have a flag when running a script which don't kill child
 processes (to preserve a minimum of backward compatibility and a minimum of
 some jobs/scripts rewriting)
 Thanks
 --
 Olivier

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira