带有 Xvfb 插件的 Jenkins:空构建时出现 "Prefix string too short" 错误
Jenkins with Xvfb plugin: got "Prefix string too short" error on empty build
我创建了一个空项目,检查 "Start Xvfb before the build, and shut it down after.",然后构建因错误而失败。
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.invoke(FilePath.java:1404)
at hudson.FilePath.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 服务器 14.10
- 詹金斯 1.597
- xvfb 插件 1.0.13
- Xvfb 可执行文件路径:/usr/bin/Xvfb
Xvfb Jenkins 插件版本 1.0.15 修复了这个问题。另见 https://issues.jenkins-ci.org/browse/JENKINS-26505。
我创建了一个空项目,检查 "Start Xvfb before the build, and shut it down after.",然后构建因错误而失败。
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.invoke(FilePath.java:1404)
at hudson.FilePath.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 服务器 14.10
- 詹金斯 1.597
- xvfb 插件 1.0.13
- Xvfb 可执行文件路径:/usr/bin/Xvfb
Xvfb Jenkins 插件版本 1.0.15 修复了这个问题。另见 https://issues.jenkins-ci.org/browse/JENKINS-26505。