Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-22641

Jenkins no longer kills running processes after job fails

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Critical
    • Resolution: Fixed
    • core
    • Jenkins 1.553 or later on CentOS 6.3 with Oracle Java 7 JDK

    Description

      Starting at version 1.553, Jenkins no longer seems to kill running processes after a build failure.

      We have several jobs that start a Tomcat instance and run various end-to-end-tests; if the build fails Jenkins doesn't execute the shutdown scripts and we rely on the process killer to clean up the Tomcat instance.

      This can be duplicated more easily by creating a free-form job and adding two shell scripts, the first that starts a simple command such as "nohup sleep 10000 &" and the second "/bin/false". After the job exits the sleep process is still running. Prior to version 1.553, it would be killed.

      There are no log messages to indicate a problem.

      I can reproduce this on CentOS 6, Red Hat EL 5 and Red Hat EL 4, both with a job running on the local master, and on a slave node. Also tested with both 32-bit and 64-bit Oracle Java 7 JDKs.

      We're using the built-in Winstone container.

      Attachments

        Issue Links

          Activity

            toadnik17 Todd Perry created issue -
            danielbeck Daniel Beck made changes -
            Field Original Value New Value
            Labels lts-candidate
            schristou Steven Christou made changes -
            Assignee Steven Christou [ schristou ]
            schristou Steven Christou made changes -
            Assignee Steven Christou [ schristou ]
            jglick Jesse Glick made changes -
            Assignee Steven Christou [ schristou ]
            jglick Jesse Glick made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            jglick Jesse Glick made changes -
            Labels lts-candidate lts-candidate regression
            jglick Jesse Glick made changes -
            Priority Major [ 3 ] Critical [ 2 ]
            scm_issue_link SCM/JIRA link daemon made changes -
            Resolution Fixed [ 1 ]
            Status In Progress [ 3 ] Resolved [ 5 ]
            olivergondza Oliver Gondža made changes -
            Labels lts-candidate regression 1.565.2-fixed regression
            dbogardus Don Bogardus made changes -
            Resolution Fixed [ 1 ]
            Status Resolved [ 5 ] Reopened [ 4 ]
            jglick Jesse Glick made changes -
            Resolution Fixed [ 1 ]
            Status Reopened [ 4 ] Resolved [ 5 ]
            dbogardus Don Bogardus made changes -
            Link This issue depends on JENKINS-26048 [ JENKINS-26048 ]
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 154752 ] JNJira + In-Review [ 195015 ]
            dbogardus Don Bogardus made changes -
            Link This issue is related to JENKINS-28968 [ JENKINS-28968 ]
            markewaite Mark Waite made changes -
            Status Resolved [ 5 ] Closed [ 6 ]

            People

              schristou Steven Christou
              toadnik17 Todd Perry
              Votes:
              12 Vote for this issue
              Watchers:
              23 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: