带有Xvfb插件的Jenkins:得到"前缀字符串太短"空构建时出错

时间:2015-01-20 16:51:29

标签: jenkins jenkins-plugins xvfb

我创建了一个空项目,检查"在构建之前启动Xvfb,并在之后将其关闭。",并且构建失败并出现错误。

Building in workspace /var/lib/jenkins/jobs/test/workspace
FATAL: Prefix string too short
java.lang.IllegalArgumentException: Prefix string too short
    at java.io.File.createTempFile(File.java:1978)
    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.model.Build$BuildExecution.doRun(Build.java:154)
    at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:533)
    at hudson.model.Run.execute(Run.java:1718)
    at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
    at hudson.model.ResourceController.execute(ResourceController.java:89)
    at hudson.model.Executor.run(Executor.java:240)

出了什么问题?

  • Ubuntu Server 14.10
  • Jenkins 1.597
  • xvfb插件1.0.13
  • Xvfb可执行路径:/ usr / bin / Xvfb

1 个答案:

答案 0 :(得分:7)

Xvfb Jenkins插件版本1.0.15修复了此问题。另请参阅https://issues.jenkins-ci.org/browse/JENKINS-26505