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

Shebangs should not throw an exception

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Using a shebang produces:

      11:31:45  FATAL: null
      11:31:45  java.lang.UnsupportedOperationException
      11:31:45  	at java.util.AbstractList.add(AbstractList.java:148)
      11:31:45  	at java.util.AbstractList.add(AbstractList.java:108)
      11:31:45  	at com.lookout.jenkins.EnvironmentScript.buildCommandLine(EnvironmentScript.java:130)
      11:31:45  	at com.lookout.jenkins.EnvironmentScript.setUp(EnvironmentScript.java:65)
      11:31:45  	at hudson.model.Build$BuildExecution.doRun(Build.java:154)
      11:31:45  	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499)
      11:31:45  	at hudson.model.Run.execute(Run.java:1488)
      11:31:45  	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      11:31:45  	at hudson.model.ResourceController.execute(ResourceController.java:88)
      11:31:45  	at hudson.model.Executor.run(Executor.java:236)

        Attachments

          Activity

          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Jørgen P. Tjernø
          Path:
          src/main/java/com/lookout/jenkins/EnvironmentScript.java
          src/test/java/com/lookout/jenkins/EnvironmentScriptTest.java
          http://jenkins-ci.org/commit/environment-script-plugin/de70895a626450a9cedf80e3a2f83be67abc65f8
          Log:
          JENKINS-14754 Shebang fix.

          This fixes an exception when using shebangs, and also adds a test for
          this functionality.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jørgen P. Tjernø Path: src/main/java/com/lookout/jenkins/EnvironmentScript.java src/test/java/com/lookout/jenkins/EnvironmentScriptTest.java http://jenkins-ci.org/commit/environment-script-plugin/de70895a626450a9cedf80e3a2f83be67abc65f8 Log: JENKINS-14754 Shebang fix. This fixes an exception when using shebangs, and also adds a test for this functionality.
          Hide
          jorgenpt Jørgen Tjernø added a comment -

          Released as 1.1.2.

          Show
          jorgenpt Jørgen Tjernø added a comment - Released as 1.1.2.

            People

            • Assignee:
              jorgenpt Jørgen Tjernø
              Reporter:
              jorgenpt Jørgen Tjernø
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: