After upgrading to 1.600 I am getting build errors on all jobs that has a "Execute shell" build step

      I tried downgrading to 1.599 and everything works there.
      I tried with both sh and bash
      It looks like the shell commands are terminated randomly in the middle of the run

      I tested with a very simple script like :

      sleep 59
      echo "sleep done"

      and got :

      Started by timer
      [EnvInject] - Loading node environment variables.
      Building remotely on cis01.coolsmsc.dk (swarm) in workspace /home/jenkinsslave/workspace/cron - test - test-no-php
      [cron - test - test-no-php] $ /bin/bash -xe /tmp/hudson4904788725429931154.sh
      + sleep 59
      /tmp/hudson4904788725429931154.sh: line 2: 19627 Terminated sleep 59
      Build step 'Execute shell' marked build as failure
      Finished: FAILURE

          [JENKINS-27178] Execute shell is terminated randomly

          Johno Crawford added a comment - Pull request here https://github.com/jenkinsci/jenkins/pull/1590

          Code changed in jenkins
          User: Jesse Glick
          Path:
          changelog.html
          core/src/main/java/hudson/model/Computer.java
          test/src/test/java/hudson/model/NodeTest.java
          http://jenkins-ci.org/commit/jenkins/ef4d1553bf12f5ba8d584491f1c118c8797a3846
          Log:
          JENKINS-27178 Amended merge of #1590.
          (cherry picked from commit 87ab95e7fc30af0d20a2bfe6a977fa2da7d15dba)

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: changelog.html core/src/main/java/hudson/model/Computer.java test/src/test/java/hudson/model/NodeTest.java http://jenkins-ci.org/commit/jenkins/ef4d1553bf12f5ba8d584491f1c118c8797a3846 Log: JENKINS-27178 Amended merge of #1590. (cherry picked from commit 87ab95e7fc30af0d20a2bfe6a977fa2da7d15dba)

          Jesse Glick added a comment -

          Merged, and backported to rc for 1.601.

          Jesse Glick added a comment - Merged, and backported to rc for 1.601.

          francisdb added a comment - - edited

          Just adding this so people end up here:

          (restarting Jenkins is a temporary fix as the argument list grows over time)

          java.io.IOException: Cannot run program "git" (in directory "/var/lib/jenkins/jobs/xxx/workspace"): error=7, Argument list too long
          java.io.IOException: Cannot run program "/bin/sh" (in directory "/var/lib/jenkins/jobs/xxx/workspace"): error=7, Argument list too long
          

          francisdb added a comment - - edited Just adding this so people end up here: (restarting Jenkins is a temporary fix as the argument list grows over time) java.io.IOException: Cannot run program "git" (in directory "/ var /lib/jenkins/jobs/xxx/workspace" ): error=7, Argument list too long java.io.IOException: Cannot run program "/bin/sh" (in directory "/ var /lib/jenkins/jobs/xxx/workspace" ): error=7, Argument list too long

          dogfood added a comment -

          Integrated in jenkins_main_trunk #3997
          JENKINS-27178 Amended merge of #1590. (Revision ef4d1553bf12f5ba8d584491f1c118c8797a3846)

          Result = SUCCESS
          jesse glick : ef4d1553bf12f5ba8d584491f1c118c8797a3846
          Files :

          • core/src/main/java/hudson/model/Computer.java
          • test/src/test/java/hudson/model/NodeTest.java
          • changelog.html

          dogfood added a comment - Integrated in jenkins_main_trunk #3997 JENKINS-27178 Amended merge of #1590. (Revision ef4d1553bf12f5ba8d584491f1c118c8797a3846) Result = SUCCESS jesse glick : ef4d1553bf12f5ba8d584491f1c118c8797a3846 Files : core/src/main/java/hudson/model/Computer.java test/src/test/java/hudson/model/NodeTest.java changelog.html

          The release notes for 1.601 (see http://jenkins-ci.org/changelog) do not mention this ticket. Was the fix released nevertheless?

          Viktor Szathmary added a comment - The release notes for 1.601 (see http://jenkins-ci.org/changelog ) do not mention this ticket. Was the fix released nevertheless?

          Jesse Glick added a comment -

          changelog.html probably got messed up by rc branch madness.

          Jesse Glick added a comment - changelog.html probably got messed up by rc branch madness.

          Daniel Beck added a comment -

          This was logged as JENKINS-21788, a duplicate of this issue.

          Daniel Beck added a comment - This was logged as JENKINS-21788 , a duplicate of this issue.

          Allan Carter added a comment -

          I'm still seeing a similar issue in release 1.637. If I run multiple executors then jenkins randomly sends SIGTERM to all the jobs processes. Am I seeing something new or did this not get integrated?

          Allan Carter added a comment - I'm still seeing a similar issue in release 1.637. If I run multiple executors then jenkins randomly sends SIGTERM to all the jobs processes. Am I seeing something new or did this not get integrated?

          Daniel Beck added a comment -

          allancarter Probably a different issue. Please file a new bug.

          Daniel Beck added a comment - allancarter Probably a different issue. Please file a new bug.

            johno Johno Crawford
            hmn Henrik Nicolaisen
            Votes:
            6 Vote for this issue
            Watchers:
            20 Start watching this issue

              Created:
              Updated:
              Resolved: