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

Execute shell FATAL: command execution failed

      When use "Extended Choice Parameter plug-in" together with "JSON parameter type",
      I'll hit the error below for "Exeucte Shell" in "Promotion process / Action".

      When use "Extended Choice Parameter plug-in" together with "Basic Parameter Types",
      then everything is ok.

      Below is the JSON groovy script I'm using:

      import org.boon.Boon;
      
      def jsonEditorOptions = Boon.fromJson(/{
      disable_edit_json: true,
      disable_properties: true,
      no_additional_properties: false,
      disable_collapse: true,
      disable_array_add: false,
      disable_array_delete: false,
      disable_array_reorder: true,
      theme: "bootstrap2",
      iconlib:"bootstrap3",
      
      schema: {
      "type": "object",
      "title": "Coverage Report Generator",
      "properties": {
      	"Report Description": {
      		"type": "string",
      		"propertyOrder": 1,
      		"default": "Description",
      	},
      
      	"Build File": {
      		"type": "string",
      		"propertyOrder": 2,
      		"media" : { "binaryEncoding": "base64" },
      		"options" : { "include_filename": true },
      	},
      
      	"Coverage File": {
      		"type": "string",
      		"propertyOrder": 3,
      		"media" : { "binaryEncoding": "base64" },
      		"options" : { "include_filename": true },
      	},
      
      	"Diff File": {
      		"type": "string",
      		"propertyOrder": 4,
      		"media" : { "binaryEncoding": "base64" },
      		"options" : { "include_filename": true },
      	},
      
      	"Extra Coverage Files": {
      		"type": "array",
      		"propertyOrder": 5,
      		"title": "Extra Coverage Files",
      		"format": "table",
      		"uniqueItems": true,
      		"items": {
      			"type": "object",
      			"title": "Coverage Files",
      			"properties": {
      				"File": {
      					"type": "string",
      					"propertyOrder": 1,
      					"media" : { "binaryEncoding": "base64" },
      					"options" : { "include_filename": true },
      				}
      			}
      		}
      	},
      }
      startval: [ ]
      }/);
      
      return jsonEditorOptions;
      

      Under "Promotion process / Actions",
      I add an action "Execute shell" with commands below:

      #!/bin/bash
      echo "test!!!"
      

      And promotion job is always failed with:

      [Test_Coverage_Report] $ /bin/bash -xe /tmp/hudson4980267768844983951.sh
      FATAL: command execution failed
      java.io.IOException: Cannot run program "/bin/bash" (in directory "/home/devops/jenkins_slave/workspace/ReviewBoard/Test_Coverage_Report"): error=7, Argument list too long
      	at java.lang.ProcessBuilder.start(ProcessBuilder.java:1047)
      	at hudson.Proc$LocalProc.<init>(Proc.java:244)
      	at hudson.Proc$LocalProc.<init>(Proc.java:216)
      	at hudson.Launcher$LocalLauncher.launch(Launcher.java:815)
      	at hudson.Launcher$ProcStarter.start(Launcher.java:381)
      	at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:1148)
      	at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:1113)
      	at hudson.remoting.UserRequest.perform(UserRequest.java:120)
      	at hudson.remoting.UserRequest.perform(UserRequest.java:48)
      	at hudson.remoting.Request$2.run(Request.java:326)
      	at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      	at java.lang.Thread.run(Thread.java:745)
      	at ......remote call to jenkins-slave98(172.18.25.208)(Native Method)
      	at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1416)
      	at hudson.remoting.UserResponse.retrieve(UserRequest.java:220)
      	at hudson.remoting.Channel.call(Channel.java:781)
      	at hudson.Launcher$RemoteLauncher.launch(Launcher.java:928)
      	at hudson.Launcher$ProcStarter.start(Launcher.java:381)
      	at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:95)
      	at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:64)
      	at hudson.plugins.promoted_builds.Promotion$RunnerImpl.build(Promotion.java:405)
      	at hudson.plugins.promoted_builds.Promotion$RunnerImpl.doRun(Promotion.java:347)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)
      	at hudson.model.Run.execute(Run.java:1738)
      	at hudson.model.Run.run(Run.java:1676)
      	at hudson.plugins.promoted_builds.Promotion.run(Promotion.java:286)
      	at hudson.model.ResourceController.execute(ResourceController.java:98)
      	at hudson.model.Executor.run(Executor.java:410)
      Caused by: java.io.IOException: error=7, Argument list too long
      	at java.lang.UNIXProcess.forkAndExec(Native Method)
      	at java.lang.UNIXProcess.<init>(UNIXProcess.java:187)
      	at java.lang.ProcessImpl.start(ProcessImpl.java:130)
      	at java.lang.ProcessBuilder.start(ProcessBuilder.java:1028)
      	at hudson.Proc$LocalProc.<init>(Proc.java:244)
      	at hudson.Proc$LocalProc.<init>(Proc.java:216)
      	at hudson.Launcher$LocalLauncher.launch(Launcher.java:815)
      	at hudson.Launcher$ProcStarter.start(Launcher.java:381)
      	at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:1148)
      	at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:1113)
      	at hudson.remoting.UserRequest.perform(UserRequest.java:120)
      	at hudson.remoting.UserRequest.perform(UserRequest.java:48)
      	at hudson.remoting.Request$2.run(Request.java:326)
      	at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      	at java.lang.Thread.run(Thread.java:745)
      failed build hudson.tasks.Shell@6d29c4a8 SUCCESS
      

          [JENKINS-35480] Execute shell FATAL: command execution failed

          Rick Liu created issue -
          Rick Liu made changes -
          Description Original: Under "Promotion process / Actions",
          I add an action "Execute shell" with commands below:
          {{#!/bin/bash
          echo "test!!!"}}

          And promotion job is always failed with:
          {{[Test_Coverage_Report] $ /bin/bash -xe /tmp/hudson4980267768844983951.sh
          FATAL: command execution failed
          java.io.IOException: Cannot run program "/bin/bash" (in directory "/home/devops/jenkins_slave/workspace/ReviewBoard/Test_Coverage_Report"): error=7, Argument list too long
          at java.lang.ProcessBuilder.start(ProcessBuilder.java:1047)
          at hudson.Proc$LocalProc.<init>(Proc.java:244)
          at hudson.Proc$LocalProc.<init>(Proc.java:216)
          at hudson.Launcher$LocalLauncher.launch(Launcher.java:815)
          at hudson.Launcher$ProcStarter.start(Launcher.java:381)
          at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:1148)
          at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:1113)
          at hudson.remoting.UserRequest.perform(UserRequest.java:120)
          at hudson.remoting.UserRequest.perform(UserRequest.java:48)
          at hudson.remoting.Request$2.run(Request.java:326)
          at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
          at java.util.concurrent.FutureTask.run(FutureTask.java:262)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
          at java.lang.Thread.run(Thread.java:745)
          at ......remote call to jenkins-slave98(172.18.25.208)(Native Method)
          at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1416)
          at hudson.remoting.UserResponse.retrieve(UserRequest.java:220)
          at hudson.remoting.Channel.call(Channel.java:781)
          at hudson.Launcher$RemoteLauncher.launch(Launcher.java:928)
          at hudson.Launcher$ProcStarter.start(Launcher.java:381)
          at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:95)
          at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:64)
          at hudson.plugins.promoted_builds.Promotion$RunnerImpl.build(Promotion.java:405)
          at hudson.plugins.promoted_builds.Promotion$RunnerImpl.doRun(Promotion.java:347)
          at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)
          at hudson.model.Run.execute(Run.java:1738)
          at hudson.model.Run.run(Run.java:1676)
          at hudson.plugins.promoted_builds.Promotion.run(Promotion.java:286)
          at hudson.model.ResourceController.execute(ResourceController.java:98)
          at hudson.model.Executor.run(Executor.java:410)
          Caused by: java.io.IOException: error=7, Argument list too long
          at java.lang.UNIXProcess.forkAndExec(Native Method)
          at java.lang.UNIXProcess.<init>(UNIXProcess.java:187)
          at java.lang.ProcessImpl.start(ProcessImpl.java:130)
          at java.lang.ProcessBuilder.start(ProcessBuilder.java:1028)
          at hudson.Proc$LocalProc.<init>(Proc.java:244)
          at hudson.Proc$LocalProc.<init>(Proc.java:216)
          at hudson.Launcher$LocalLauncher.launch(Launcher.java:815)
          at hudson.Launcher$ProcStarter.start(Launcher.java:381)
          at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:1148)
          at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:1113)
          at hudson.remoting.UserRequest.perform(UserRequest.java:120)
          at hudson.remoting.UserRequest.perform(UserRequest.java:48)
          at hudson.remoting.Request$2.run(Request.java:326)
          at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
          at java.util.concurrent.FutureTask.run(FutureTask.java:262)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
          at java.lang.Thread.run(Thread.java:745)
          failed build hudson.tasks.Shell@6d29c4a8 SUCCESS}}


          New: Under "Promotion process / Actions",
          I add an action "Execute shell" with commands below:
          #!/bin/bash
          echo "test!!!"

          And promotion job is always failed with:
          [Test_Coverage_Report] $ /bin/bash -xe /tmp/hudson4980267768844983951.sh
          FATAL: command execution failed
          java.io.IOException: Cannot run program "/bin/bash" (in directory "/home/devops/jenkins_slave/workspace/ReviewBoard/Test_Coverage_Report"): error=7, Argument list too long
          at java.lang.ProcessBuilder.start(ProcessBuilder.java:1047)
          at hudson.Proc$LocalProc.<init>(Proc.java:244)
          at hudson.Proc$LocalProc.<init>(Proc.java:216)
          at hudson.Launcher$LocalLauncher.launch(Launcher.java:815)
          at hudson.Launcher$ProcStarter.start(Launcher.java:381)
          at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:1148)
          at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:1113)
          at hudson.remoting.UserRequest.perform(UserRequest.java:120)
          at hudson.remoting.UserRequest.perform(UserRequest.java:48)
          at hudson.remoting.Request$2.run(Request.java:326)
          at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
          at java.util.concurrent.FutureTask.run(FutureTask.java:262)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
          at java.lang.Thread.run(Thread.java:745)
          at ......remote call to jenkins-slave98(172.18.25.208)(Native Method)
          at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1416)
          at hudson.remoting.UserResponse.retrieve(UserRequest.java:220)
          at hudson.remoting.Channel.call(Channel.java:781)
          at hudson.Launcher$RemoteLauncher.launch(Launcher.java:928)
          at hudson.Launcher$ProcStarter.start(Launcher.java:381)
          at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:95)
          at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:64)
          at hudson.plugins.promoted_builds.Promotion$RunnerImpl.build(Promotion.java:405)
          at hudson.plugins.promoted_builds.Promotion$RunnerImpl.doRun(Promotion.java:347)
          at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)
          at hudson.model.Run.execute(Run.java:1738)
          at hudson.model.Run.run(Run.java:1676)
          at hudson.plugins.promoted_builds.Promotion.run(Promotion.java:286)
          at hudson.model.ResourceController.execute(ResourceController.java:98)
          at hudson.model.Executor.run(Executor.java:410)
          Caused by: java.io.IOException: error=7, Argument list too long
          at java.lang.UNIXProcess.forkAndExec(Native Method)
          at java.lang.UNIXProcess.<init>(UNIXProcess.java:187)
          at java.lang.ProcessImpl.start(ProcessImpl.java:130)
          at java.lang.ProcessBuilder.start(ProcessBuilder.java:1028)
          at hudson.Proc$LocalProc.<init>(Proc.java:244)
          at hudson.Proc$LocalProc.<init>(Proc.java:216)
          at hudson.Launcher$LocalLauncher.launch(Launcher.java:815)
          at hudson.Launcher$ProcStarter.start(Launcher.java:381)
          at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:1148)
          at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:1113)
          at hudson.remoting.UserRequest.perform(UserRequest.java:120)
          at hudson.remoting.UserRequest.perform(UserRequest.java:48)
          at hudson.remoting.Request$2.run(Request.java:326)
          at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
          at java.util.concurrent.FutureTask.run(FutureTask.java:262)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
          at java.lang.Thread.run(Thread.java:745)
          failed build hudson.tasks.Shell@6d29c4a8 SUCCESS


          Rick Liu made changes -
          Description Original: Under "Promotion process / Actions",
          I add an action "Execute shell" with commands below:
          #!/bin/bash
          echo "test!!!"

          And promotion job is always failed with:
          [Test_Coverage_Report] $ /bin/bash -xe /tmp/hudson4980267768844983951.sh
          FATAL: command execution failed
          java.io.IOException: Cannot run program "/bin/bash" (in directory "/home/devops/jenkins_slave/workspace/ReviewBoard/Test_Coverage_Report"): error=7, Argument list too long
          at java.lang.ProcessBuilder.start(ProcessBuilder.java:1047)
          at hudson.Proc$LocalProc.<init>(Proc.java:244)
          at hudson.Proc$LocalProc.<init>(Proc.java:216)
          at hudson.Launcher$LocalLauncher.launch(Launcher.java:815)
          at hudson.Launcher$ProcStarter.start(Launcher.java:381)
          at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:1148)
          at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:1113)
          at hudson.remoting.UserRequest.perform(UserRequest.java:120)
          at hudson.remoting.UserRequest.perform(UserRequest.java:48)
          at hudson.remoting.Request$2.run(Request.java:326)
          at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
          at java.util.concurrent.FutureTask.run(FutureTask.java:262)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
          at java.lang.Thread.run(Thread.java:745)
          at ......remote call to jenkins-slave98(172.18.25.208)(Native Method)
          at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1416)
          at hudson.remoting.UserResponse.retrieve(UserRequest.java:220)
          at hudson.remoting.Channel.call(Channel.java:781)
          at hudson.Launcher$RemoteLauncher.launch(Launcher.java:928)
          at hudson.Launcher$ProcStarter.start(Launcher.java:381)
          at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:95)
          at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:64)
          at hudson.plugins.promoted_builds.Promotion$RunnerImpl.build(Promotion.java:405)
          at hudson.plugins.promoted_builds.Promotion$RunnerImpl.doRun(Promotion.java:347)
          at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)
          at hudson.model.Run.execute(Run.java:1738)
          at hudson.model.Run.run(Run.java:1676)
          at hudson.plugins.promoted_builds.Promotion.run(Promotion.java:286)
          at hudson.model.ResourceController.execute(ResourceController.java:98)
          at hudson.model.Executor.run(Executor.java:410)
          Caused by: java.io.IOException: error=7, Argument list too long
          at java.lang.UNIXProcess.forkAndExec(Native Method)
          at java.lang.UNIXProcess.<init>(UNIXProcess.java:187)
          at java.lang.ProcessImpl.start(ProcessImpl.java:130)
          at java.lang.ProcessBuilder.start(ProcessBuilder.java:1028)
          at hudson.Proc$LocalProc.<init>(Proc.java:244)
          at hudson.Proc$LocalProc.<init>(Proc.java:216)
          at hudson.Launcher$LocalLauncher.launch(Launcher.java:815)
          at hudson.Launcher$ProcStarter.start(Launcher.java:381)
          at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:1148)
          at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:1113)
          at hudson.remoting.UserRequest.perform(UserRequest.java:120)
          at hudson.remoting.UserRequest.perform(UserRequest.java:48)
          at hudson.remoting.Request$2.run(Request.java:326)
          at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
          at java.util.concurrent.FutureTask.run(FutureTask.java:262)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
          at java.lang.Thread.run(Thread.java:745)
          failed build hudson.tasks.Shell@6d29c4a8 SUCCESS


          New: Under "Promotion process / Actions",
          I add an action "Execute shell" with commands below:
          {code}
          #!/bin/bash
          echo "test!!!"
          {code}


          And promotion job is always failed with:
          {code}
          [Test_Coverage_Report] $ /bin/bash -xe /tmp/hudson4980267768844983951.sh
          FATAL: command execution failed
          java.io.IOException: Cannot run program "/bin/bash" (in directory "/home/devops/jenkins_slave/workspace/ReviewBoard/Test_Coverage_Report"): error=7, Argument list too long
          at java.lang.ProcessBuilder.start(ProcessBuilder.java:1047)
          at hudson.Proc$LocalProc.<init>(Proc.java:244)
          at hudson.Proc$LocalProc.<init>(Proc.java:216)
          at hudson.Launcher$LocalLauncher.launch(Launcher.java:815)
          at hudson.Launcher$ProcStarter.start(Launcher.java:381)
          at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:1148)
          at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:1113)
          at hudson.remoting.UserRequest.perform(UserRequest.java:120)
          at hudson.remoting.UserRequest.perform(UserRequest.java:48)
          at hudson.remoting.Request$2.run(Request.java:326)
          at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
          at java.util.concurrent.FutureTask.run(FutureTask.java:262)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
          at java.lang.Thread.run(Thread.java:745)
          at ......remote call to jenkins-slave98(172.18.25.208)(Native Method)
          at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1416)
          at hudson.remoting.UserResponse.retrieve(UserRequest.java:220)
          at hudson.remoting.Channel.call(Channel.java:781)
          at hudson.Launcher$RemoteLauncher.launch(Launcher.java:928)
          at hudson.Launcher$ProcStarter.start(Launcher.java:381)
          at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:95)
          at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:64)
          at hudson.plugins.promoted_builds.Promotion$RunnerImpl.build(Promotion.java:405)
          at hudson.plugins.promoted_builds.Promotion$RunnerImpl.doRun(Promotion.java:347)
          at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)
          at hudson.model.Run.execute(Run.java:1738)
          at hudson.model.Run.run(Run.java:1676)
          at hudson.plugins.promoted_builds.Promotion.run(Promotion.java:286)
          at hudson.model.ResourceController.execute(ResourceController.java:98)
          at hudson.model.Executor.run(Executor.java:410)
          Caused by: java.io.IOException: error=7, Argument list too long
          at java.lang.UNIXProcess.forkAndExec(Native Method)
          at java.lang.UNIXProcess.<init>(UNIXProcess.java:187)
          at java.lang.ProcessImpl.start(ProcessImpl.java:130)
          at java.lang.ProcessBuilder.start(ProcessBuilder.java:1028)
          at hudson.Proc$LocalProc.<init>(Proc.java:244)
          at hudson.Proc$LocalProc.<init>(Proc.java:216)
          at hudson.Launcher$LocalLauncher.launch(Launcher.java:815)
          at hudson.Launcher$ProcStarter.start(Launcher.java:381)
          at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:1148)
          at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:1113)
          at hudson.remoting.UserRequest.perform(UserRequest.java:120)
          at hudson.remoting.UserRequest.perform(UserRequest.java:48)
          at hudson.remoting.Request$2.run(Request.java:326)
          at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
          at java.util.concurrent.FutureTask.run(FutureTask.java:262)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
          at java.lang.Thread.run(Thread.java:745)
          failed build hudson.tasks.Shell@6d29c4a8 SUCCESS
          {code}

          Ahmed AbouZaid made changes -
          Comment [ I have the same issue.

          {code}
          Installation: apt
          Jenkins: 2.9
          Tomcat: No
          Java: 8 oracle (1.8.0_91)
          System: Ubuntu 14.04.4
          {code} ]
          Rick Liu made changes -
          Component/s New: extended-choice-parameter-plugin [ 16004 ]
          Rick Liu made changes -
          Description Original: Under "Promotion process / Actions",
          I add an action "Execute shell" with commands below:
          {code}
          #!/bin/bash
          echo "test!!!"
          {code}


          And promotion job is always failed with:
          {code}
          [Test_Coverage_Report] $ /bin/bash -xe /tmp/hudson4980267768844983951.sh
          FATAL: command execution failed
          java.io.IOException: Cannot run program "/bin/bash" (in directory "/home/devops/jenkins_slave/workspace/ReviewBoard/Test_Coverage_Report"): error=7, Argument list too long
          at java.lang.ProcessBuilder.start(ProcessBuilder.java:1047)
          at hudson.Proc$LocalProc.<init>(Proc.java:244)
          at hudson.Proc$LocalProc.<init>(Proc.java:216)
          at hudson.Launcher$LocalLauncher.launch(Launcher.java:815)
          at hudson.Launcher$ProcStarter.start(Launcher.java:381)
          at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:1148)
          at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:1113)
          at hudson.remoting.UserRequest.perform(UserRequest.java:120)
          at hudson.remoting.UserRequest.perform(UserRequest.java:48)
          at hudson.remoting.Request$2.run(Request.java:326)
          at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
          at java.util.concurrent.FutureTask.run(FutureTask.java:262)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
          at java.lang.Thread.run(Thread.java:745)
          at ......remote call to jenkins-slave98(172.18.25.208)(Native Method)
          at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1416)
          at hudson.remoting.UserResponse.retrieve(UserRequest.java:220)
          at hudson.remoting.Channel.call(Channel.java:781)
          at hudson.Launcher$RemoteLauncher.launch(Launcher.java:928)
          at hudson.Launcher$ProcStarter.start(Launcher.java:381)
          at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:95)
          at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:64)
          at hudson.plugins.promoted_builds.Promotion$RunnerImpl.build(Promotion.java:405)
          at hudson.plugins.promoted_builds.Promotion$RunnerImpl.doRun(Promotion.java:347)
          at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)
          at hudson.model.Run.execute(Run.java:1738)
          at hudson.model.Run.run(Run.java:1676)
          at hudson.plugins.promoted_builds.Promotion.run(Promotion.java:286)
          at hudson.model.ResourceController.execute(ResourceController.java:98)
          at hudson.model.Executor.run(Executor.java:410)
          Caused by: java.io.IOException: error=7, Argument list too long
          at java.lang.UNIXProcess.forkAndExec(Native Method)
          at java.lang.UNIXProcess.<init>(UNIXProcess.java:187)
          at java.lang.ProcessImpl.start(ProcessImpl.java:130)
          at java.lang.ProcessBuilder.start(ProcessBuilder.java:1028)
          at hudson.Proc$LocalProc.<init>(Proc.java:244)
          at hudson.Proc$LocalProc.<init>(Proc.java:216)
          at hudson.Launcher$LocalLauncher.launch(Launcher.java:815)
          at hudson.Launcher$ProcStarter.start(Launcher.java:381)
          at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:1148)
          at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:1113)
          at hudson.remoting.UserRequest.perform(UserRequest.java:120)
          at hudson.remoting.UserRequest.perform(UserRequest.java:48)
          at hudson.remoting.Request$2.run(Request.java:326)
          at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
          at java.util.concurrent.FutureTask.run(FutureTask.java:262)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
          at java.lang.Thread.run(Thread.java:745)
          failed build hudson.tasks.Shell@6d29c4a8 SUCCESS
          {code}

          New: Under "Promotion process / Actions",
          I add an action "Execute shell" with commands below:
          {code}
          #!/bin/bash
          echo "test!!!"
          {code}


          And promotion job is always failed with:
          {code}
          [Test_Coverage_Report] $ /bin/bash -xe /tmp/hudson4980267768844983951.sh
          FATAL: command execution failed
          java.io.IOException: Cannot run program "/bin/bash" (in directory "/home/devops/jenkins_slave/workspace/ReviewBoard/Test_Coverage_Report"): error=7, Argument list too long
          at java.lang.ProcessBuilder.start(ProcessBuilder.java:1047)
          at hudson.Proc$LocalProc.<init>(Proc.java:244)
          at hudson.Proc$LocalProc.<init>(Proc.java:216)
          at hudson.Launcher$LocalLauncher.launch(Launcher.java:815)
          at hudson.Launcher$ProcStarter.start(Launcher.java:381)
          at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:1148)
          at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:1113)
          at hudson.remoting.UserRequest.perform(UserRequest.java:120)
          at hudson.remoting.UserRequest.perform(UserRequest.java:48)
          at hudson.remoting.Request$2.run(Request.java:326)
          at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
          at java.util.concurrent.FutureTask.run(FutureTask.java:262)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
          at java.lang.Thread.run(Thread.java:745)
          at ......remote call to jenkins-slave98(172.18.25.208)(Native Method)
          at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1416)
          at hudson.remoting.UserResponse.retrieve(UserRequest.java:220)
          at hudson.remoting.Channel.call(Channel.java:781)
          at hudson.Launcher$RemoteLauncher.launch(Launcher.java:928)
          at hudson.Launcher$ProcStarter.start(Launcher.java:381)
          at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:95)
          at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:64)
          at hudson.plugins.promoted_builds.Promotion$RunnerImpl.build(Promotion.java:405)
          at hudson.plugins.promoted_builds.Promotion$RunnerImpl.doRun(Promotion.java:347)
          at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)
          at hudson.model.Run.execute(Run.java:1738)
          at hudson.model.Run.run(Run.java:1676)
          at hudson.plugins.promoted_builds.Promotion.run(Promotion.java:286)
          at hudson.model.ResourceController.execute(ResourceController.java:98)
          at hudson.model.Executor.run(Executor.java:410)
          Caused by: java.io.IOException: error=7, Argument list too long
          at java.lang.UNIXProcess.forkAndExec(Native Method)
          at java.lang.UNIXProcess.<init>(UNIXProcess.java:187)
          at java.lang.ProcessImpl.start(ProcessImpl.java:130)
          at java.lang.ProcessBuilder.start(ProcessBuilder.java:1028)
          at hudson.Proc$LocalProc.<init>(Proc.java:244)
          at hudson.Proc$LocalProc.<init>(Proc.java:216)
          at hudson.Launcher$LocalLauncher.launch(Launcher.java:815)
          at hudson.Launcher$ProcStarter.start(Launcher.java:381)
          at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:1148)
          at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:1113)
          at hudson.remoting.UserRequest.perform(UserRequest.java:120)
          at hudson.remoting.UserRequest.perform(UserRequest.java:48)
          at hudson.remoting.Request$2.run(Request.java:326)
          at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
          at java.util.concurrent.FutureTask.run(FutureTask.java:262)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
          at java.lang.Thread.run(Thread.java:745)
          failed build hudson.tasks.Shell@6d29c4a8 SUCCESS
          {code}



          Rick Liu made changes -
          Description Original: Under "Promotion process / Actions",
          I add an action "Execute shell" with commands below:
          {code}
          #!/bin/bash
          echo "test!!!"
          {code}


          And promotion job is always failed with:
          {code}
          [Test_Coverage_Report] $ /bin/bash -xe /tmp/hudson4980267768844983951.sh
          FATAL: command execution failed
          java.io.IOException: Cannot run program "/bin/bash" (in directory "/home/devops/jenkins_slave/workspace/ReviewBoard/Test_Coverage_Report"): error=7, Argument list too long
          at java.lang.ProcessBuilder.start(ProcessBuilder.java:1047)
          at hudson.Proc$LocalProc.<init>(Proc.java:244)
          at hudson.Proc$LocalProc.<init>(Proc.java:216)
          at hudson.Launcher$LocalLauncher.launch(Launcher.java:815)
          at hudson.Launcher$ProcStarter.start(Launcher.java:381)
          at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:1148)
          at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:1113)
          at hudson.remoting.UserRequest.perform(UserRequest.java:120)
          at hudson.remoting.UserRequest.perform(UserRequest.java:48)
          at hudson.remoting.Request$2.run(Request.java:326)
          at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
          at java.util.concurrent.FutureTask.run(FutureTask.java:262)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
          at java.lang.Thread.run(Thread.java:745)
          at ......remote call to jenkins-slave98(172.18.25.208)(Native Method)
          at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1416)
          at hudson.remoting.UserResponse.retrieve(UserRequest.java:220)
          at hudson.remoting.Channel.call(Channel.java:781)
          at hudson.Launcher$RemoteLauncher.launch(Launcher.java:928)
          at hudson.Launcher$ProcStarter.start(Launcher.java:381)
          at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:95)
          at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:64)
          at hudson.plugins.promoted_builds.Promotion$RunnerImpl.build(Promotion.java:405)
          at hudson.plugins.promoted_builds.Promotion$RunnerImpl.doRun(Promotion.java:347)
          at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)
          at hudson.model.Run.execute(Run.java:1738)
          at hudson.model.Run.run(Run.java:1676)
          at hudson.plugins.promoted_builds.Promotion.run(Promotion.java:286)
          at hudson.model.ResourceController.execute(ResourceController.java:98)
          at hudson.model.Executor.run(Executor.java:410)
          Caused by: java.io.IOException: error=7, Argument list too long
          at java.lang.UNIXProcess.forkAndExec(Native Method)
          at java.lang.UNIXProcess.<init>(UNIXProcess.java:187)
          at java.lang.ProcessImpl.start(ProcessImpl.java:130)
          at java.lang.ProcessBuilder.start(ProcessBuilder.java:1028)
          at hudson.Proc$LocalProc.<init>(Proc.java:244)
          at hudson.Proc$LocalProc.<init>(Proc.java:216)
          at hudson.Launcher$LocalLauncher.launch(Launcher.java:815)
          at hudson.Launcher$ProcStarter.start(Launcher.java:381)
          at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:1148)
          at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:1113)
          at hudson.remoting.UserRequest.perform(UserRequest.java:120)
          at hudson.remoting.UserRequest.perform(UserRequest.java:48)
          at hudson.remoting.Request$2.run(Request.java:326)
          at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
          at java.util.concurrent.FutureTask.run(FutureTask.java:262)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
          at java.lang.Thread.run(Thread.java:745)
          failed build hudson.tasks.Shell@6d29c4a8 SUCCESS
          {code}



          New: When use "*Extended Choice Parameter plug-in*" together with "*JSON parameter type*",
          I'll hit the error below for "*Exeucte Shell*" in "*Promotion process / Action*".

          When use "*Extended Choice Parameter plug-in*" together with "*Basic Parameter Types*",
          then everything is ok.

          Below is the JSON groovy script I'm using:
          {code}
          import org.boon.Boon;

          def jsonEditorOptions = Boon.fromJson(/{
          disable_edit_json: true,
          disable_properties: true,
          no_additional_properties: false,
          disable_collapse: true,
          disable_array_add: false,
          disable_array_delete: false,
          disable_array_reorder: true,
          theme: "bootstrap2",
          iconlib:"bootstrap3",

          schema: {
          "type": "object",
          "title": "Coverage Report Generator",
          "properties": {
          "Report Description": {
          "type": "string",
          "propertyOrder": 1,
          "default": "Description",
          },

          "Build File": {
          "type": "string",
          "propertyOrder": 2,
          "media" : { "binaryEncoding": "base64" },
          "options" : { "include_filename": true },
          },

          "Coverage File": {
          "type": "string",
          "propertyOrder": 3,
          "media" : { "binaryEncoding": "base64" },
          "options" : { "include_filename": true },
          },

          "Diff File": {
          "type": "string",
          "propertyOrder": 4,
          "media" : { "binaryEncoding": "base64" },
          "options" : { "include_filename": true },
          },

          "Extra Coverage Files": {
          "type": "array",
          "propertyOrder": 5,
          "title": "Extra Coverage Files",
          "format": "table",
          "uniqueItems": true,
          "items": {
          "type": "object",
          "title": "Coverage Files",
          "properties": {
          "File": {
          "type": "string",
          "propertyOrder": 1,
          "media" : { "binaryEncoding": "base64" },
          "options" : { "include_filename": true },
          }
          }
          }
          },
          }
          startval: [ ]
          }/);

          return jsonEditorOptions;
          {code}


          Under "Promotion process / Actions",
          I add an action "Execute shell" with commands below:
          {code}
          #!/bin/bash
          echo "test!!!"
          {code}


          And promotion job is always failed with:
          {code}
          [Test_Coverage_Report] $ /bin/bash -xe /tmp/hudson4980267768844983951.sh
          FATAL: command execution failed
          java.io.IOException: Cannot run program "/bin/bash" (in directory "/home/devops/jenkins_slave/workspace/ReviewBoard/Test_Coverage_Report"): error=7, Argument list too long
          at java.lang.ProcessBuilder.start(ProcessBuilder.java:1047)
          at hudson.Proc$LocalProc.<init>(Proc.java:244)
          at hudson.Proc$LocalProc.<init>(Proc.java:216)
          at hudson.Launcher$LocalLauncher.launch(Launcher.java:815)
          at hudson.Launcher$ProcStarter.start(Launcher.java:381)
          at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:1148)
          at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:1113)
          at hudson.remoting.UserRequest.perform(UserRequest.java:120)
          at hudson.remoting.UserRequest.perform(UserRequest.java:48)
          at hudson.remoting.Request$2.run(Request.java:326)
          at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
          at java.util.concurrent.FutureTask.run(FutureTask.java:262)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
          at java.lang.Thread.run(Thread.java:745)
          at ......remote call to jenkins-slave98(172.18.25.208)(Native Method)
          at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1416)
          at hudson.remoting.UserResponse.retrieve(UserRequest.java:220)
          at hudson.remoting.Channel.call(Channel.java:781)
          at hudson.Launcher$RemoteLauncher.launch(Launcher.java:928)
          at hudson.Launcher$ProcStarter.start(Launcher.java:381)
          at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:95)
          at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:64)
          at hudson.plugins.promoted_builds.Promotion$RunnerImpl.build(Promotion.java:405)
          at hudson.plugins.promoted_builds.Promotion$RunnerImpl.doRun(Promotion.java:347)
          at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)
          at hudson.model.Run.execute(Run.java:1738)
          at hudson.model.Run.run(Run.java:1676)
          at hudson.plugins.promoted_builds.Promotion.run(Promotion.java:286)
          at hudson.model.ResourceController.execute(ResourceController.java:98)
          at hudson.model.Executor.run(Executor.java:410)
          Caused by: java.io.IOException: error=7, Argument list too long
          at java.lang.UNIXProcess.forkAndExec(Native Method)
          at java.lang.UNIXProcess.<init>(UNIXProcess.java:187)
          at java.lang.ProcessImpl.start(ProcessImpl.java:130)
          at java.lang.ProcessBuilder.start(ProcessBuilder.java:1028)
          at hudson.Proc$LocalProc.<init>(Proc.java:244)
          at hudson.Proc$LocalProc.<init>(Proc.java:216)
          at hudson.Launcher$LocalLauncher.launch(Launcher.java:815)
          at hudson.Launcher$ProcStarter.start(Launcher.java:381)
          at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:1148)
          at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:1113)
          at hudson.remoting.UserRequest.perform(UserRequest.java:120)
          at hudson.remoting.UserRequest.perform(UserRequest.java:48)
          at hudson.remoting.Request$2.run(Request.java:326)
          at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
          at java.util.concurrent.FutureTask.run(FutureTask.java:262)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
          at java.lang.Thread.run(Thread.java:745)
          failed build hudson.tasks.Shell@6d29c4a8 SUCCESS
          {code}



          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 171782 ] New: JNJira + In-Review [ 184471 ]
          Oleg Nenashev made changes -
          Assignee Original: Oleg Nenashev [ oleg_nenashev ]

            Unassigned Unassigned
            totoroliu Rick Liu
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: