我创建了一个空项目,检查"在构建之前启动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)
出了什么问题?
答案 0 :(得分:7)
Xvfb Jenkins插件版本1.0.15修复了此问题。另请参阅https://issues.jenkins-ci.org/browse/JENKINS-26505。