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

Environment script fails with job name shorter than 3 characters

    Details

    • Similar Issues:

      Description

      Checking out Revision 50ac39d85f0e9904f35306bb67dc9df1c84ad684 (origin/demo14)
      > git config core.sparsecheckout # timeout=10
      > git checkout -f 50ac39d85f0e9904f35306bb67dc9df1c84ad684
      > git rev-list 50ac39d85f0e9904f35306bb67dc9df1c84ad684 # timeout=10
      FATAL: Prefix string too short
      java.lang.IllegalArgumentException: Prefix string too short
      at java.io.File.createTempFile(File.java:1978)
      at hudson.FilePath$17.invoke(FilePath.java:1357)
      at hudson.FilePath$17.invoke(FilePath.java:1347)
      at hudson.FilePath.act(FilePath.java:981)
      at hudson.FilePath.act(FilePath.java:959)
      at hudson.FilePath.createTextTempFile(FilePath.java:1347)
      at com.lookout.jenkins.EnvironmentScript.generateEnvironment(EnvironmentScript.java:104)
      at com.lookout.jenkins.EnvironmentScript.setUp(EnvironmentScript.java:93)
      at hudson.model.Build$BuildExecution.doRun(Build.java:154)
      at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:533)
      at hudson.model.Run.execute(Run.java:1759)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      at hudson.model.ResourceController.execute(ResourceController.java:89)
      at hudson.model.Executor.run(Executor.java:240)

      Can be worked aroung by renaming the job name to be at least 3 characters.

        Attachments

          Activity

          gyuszi Gyorgy Abraham created issue -
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Dawid Malinowski
          Path:
          src/main/java/com/lookout/jenkins/EnvironmentScript.java
          http://jenkins-ci.org/commit/environment-script-plugin/e325a08c81daa202bc60a92bc9592a5a5197884f
          Log:
          JENKINS-30762 - Environment script fails with job name shorter than 3 characters

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Dawid Malinowski Path: src/main/java/com/lookout/jenkins/EnvironmentScript.java http://jenkins-ci.org/commit/environment-script-plugin/e325a08c81daa202bc60a92bc9592a5a5197884f Log: JENKINS-30762 - Environment script fails with job name shorter than 3 characters
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Dawid Malinowski
          Path:
          src/main/java/com/lookout/jenkins/EnvironmentScript.java
          http://jenkins-ci.org/commit/environment-script-plugin/545b348ebc96bddb1dcecce64a1bb99c0f3a16cc
          Log:
          Merge pull request #8 from dawidmalina/JENKINS-30762

          JENKINS-30762 - Environment script fails with job name shorter than 3 characters

          Compare: https://github.com/jenkinsci/environment-script-plugin/compare/01d1d45838f9...545b348ebc96

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Dawid Malinowski Path: src/main/java/com/lookout/jenkins/EnvironmentScript.java http://jenkins-ci.org/commit/environment-script-plugin/545b348ebc96bddb1dcecce64a1bb99c0f3a16cc Log: Merge pull request #8 from dawidmalina/ JENKINS-30762 JENKINS-30762 - Environment script fails with job name shorter than 3 characters Compare: https://github.com/jenkinsci/environment-script-plugin/compare/01d1d45838f9...545b348ebc96
          Hide
          dawidmalina Dawid Malinowski added a comment -

          Your ticket was resolved. Thank you for your feedback.

          Show
          dawidmalina Dawid Malinowski added a comment - Your ticket was resolved. Thank you for your feedback.
          dawidmalina Dawid Malinowski made changes -
          Field Original Value New Value
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          dawidmalina Dawid Malinowski made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          rtyler R. Tyler Croy made changes -
          Workflow JNJira [ 165889 ] JNJira + In-Review [ 209286 ]

            People

            • Assignee:
              dawidmalina Dawid Malinowski
              Reporter:
              gyuszi Gyorgy Abraham
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: