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

Shebangs should not throw an exception

XMLWordPrintable

      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)

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

              Created:
              Updated:
              Resolved: