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

Cannot run low numbered builds with xvfb in jenkins 1.597

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Fixed
    • Component/s: xvfb-plugin
    • Labels:
      None
    • Environment:
      Jenkins 1.597
    • Similar Issues:

      Description

      Jenkins 1.597 changed the build ID from being a timestamp to being the build number.

      xvfb-plugin calls Hudson.FilePath.createTempDir() using the build ID as the prefix. The prefix must be at least 3 characters long or there is an exception. For builds with the build number < 100, therefore, the build ID won't be big enough and so will fail the build. Sample stack trace below.

      An ugly workaround would be to keep running the failing builds until you get to build 100, where it should again be successful.

      ERROR: Processing failed due to a bug in the code. Please report this to jenkinsci-users@googlegroups.com
      java.lang.IllegalArgumentException: Prefix string too short
      at java.io.File.createTempFile0(File.java:1844)
      at java.io.File.createTempFile(File.java:1934)
      at hudson.FilePath$18.invoke(FilePath.java:1404)
      at hudson.FilePath$18.invoke(FilePath.java:1401)
      at hudson.FilePath.act(FilePath.java:989)
      at hudson.FilePath.act(FilePath.java:967)
      at hudson.FilePath.createTempDir(FilePath.java:1401)
      at org.jenkinsci.plugins.xvfb.XvfbBuildWrapper.launchXvfb(XvfbBuildWrapper.java:484)
      at org.jenkinsci.plugins.xvfb.XvfbBuildWrapper.setUp(XvfbBuildWrapper.java:594)
      at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:655)
      at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:533)
      at hudson.model.Run.execute(Run.java:1718)
      at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:531)
      at hudson.model.ResourceController.execute(ResourceController.java:89)
      at hudson.model.Executor.run(Executor.java:240)

        Attachments

          Activity

          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Zoran Regvart
          Path:
          src/main/java/org/jenkinsci/plugins/xvfb/XvfbBuildWrapper.java
          http://jenkins-ci.org/commit/xvfb-plugin/1157d4a5bc9e88c39039908d4be192dd6d4cf818
          Log:
          JENKINS-26504 Cannot run low numbered builds with xvfb in jenkins 1.597

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Zoran Regvart Path: src/main/java/org/jenkinsci/plugins/xvfb/XvfbBuildWrapper.java http://jenkins-ci.org/commit/xvfb-plugin/1157d4a5bc9e88c39039908d4be192dd6d4cf818 Log: JENKINS-26504 Cannot run low numbered builds with xvfb in jenkins 1.597
          Hide
          zregvart zregvart added a comment -

          Fixed in version 1.0.15 which should arrive in update center when JSON gets rebuilt, until then you can download the HPI and install it manually from http://repo.jenkins-ci.org/public/org/jenkins-ci/plugins/xvfb/1.0.15/

          Show
          zregvart zregvart added a comment - Fixed in version 1.0.15 which should arrive in update center when JSON gets rebuilt, until then you can download the HPI and install it manually from http://repo.jenkins-ci.org/public/org/jenkins-ci/plugins/xvfb/1.0.15/
          Hide
          jonoprice Jonathan Price added a comment -

          Thanks for the quick turnaround!

          Show
          jonoprice Jonathan Price added a comment - Thanks for the quick turnaround!
          Hide
          zregvart zregvart added a comment -

          Closing old issues

          Show
          zregvart zregvart added a comment - Closing old issues

            People

            Assignee:
            zregvart zregvart
            Reporter:
            jonoprice Jonathan Price
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: