BourneShellScript.doLaunch (and to a lesser extent WindowsBatchScript) emit a complex and (to the user) irrelevant command the build log. It seems that Launcher provides no way of controlling how the cmds are printed other than masking some arguments. In this case we would like to print the original shell script being run, probably with some comment indicating that it is being wrapped for durability.

          [JENKINS-23027] Quieter launch

          Code changed in jenkins
          User: Jesse Glick
          Path:
          src/main/java/org/jenkinsci/plugins/durabletask/BourneShellScript.java
          src/main/java/org/jenkinsci/plugins/durabletask/WindowsBatchScript.java
          http://jenkins-ci.org/commit/durable-task-plugin/6dc99309d2f242f4606fdcb627b0dcab89d15992
          Log:
          JENKINS-23027 Using Launcher.ProcStarter.quiet when available.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: src/main/java/org/jenkinsci/plugins/durabletask/BourneShellScript.java src/main/java/org/jenkinsci/plugins/durabletask/WindowsBatchScript.java http://jenkins-ci.org/commit/durable-task-plugin/6dc99309d2f242f4606fdcb627b0dcab89d15992 Log: JENKINS-23027 Using Launcher.ProcStarter.quiet when available.

          Code changed in jenkins
          User: Jesse Glick
          Path:
          changelog.html
          core/src/main/java/hudson/Launcher.java
          test/src/test/java/hudson/LauncherTest.java
          http://jenkins-ci.org/commit/jenkins/11ab9be6ef12e6b4b961809131fc72da86af6d72
          Log:
          [FIXED JENKINS-23027] Added Launcher.ProcStarter.quiet option.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: changelog.html core/src/main/java/hudson/Launcher.java test/src/test/java/hudson/LauncherTest.java http://jenkins-ci.org/commit/jenkins/11ab9be6ef12e6b4b961809131fc72da86af6d72 Log: [FIXED JENKINS-23027] Added Launcher.ProcStarter.quiet option.

          dogfood added a comment -

          Integrated in jenkins_main_trunk #3594
          [FIXED JENKINS-23027] Added Launcher.ProcStarter.quiet option. (Revision 11ab9be6ef12e6b4b961809131fc72da86af6d72)

          Result = SUCCESS
          Jesse Glick : 11ab9be6ef12e6b4b961809131fc72da86af6d72
          Files :

          • core/src/main/java/hudson/Launcher.java
          • changelog.html
          • test/src/test/java/hudson/LauncherTest.java

          dogfood added a comment - Integrated in jenkins_main_trunk #3594 [FIXED JENKINS-23027] Added Launcher.ProcStarter.quiet option. (Revision 11ab9be6ef12e6b4b961809131fc72da86af6d72) Result = SUCCESS Jesse Glick : 11ab9be6ef12e6b4b961809131fc72da86af6d72 Files : core/src/main/java/hudson/Launcher.java changelog.html test/src/test/java/hudson/LauncherTest.java

            jglick Jesse Glick
            jglick Jesse Glick
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: