运维开发网

带有Xvfb插件的Jenkins:在空构建时出现“Prefix string too short”错误

运维开发网 https://www.qedev.com 2020-05-10 15:42 出处:网络 作者:运维开发网整理
我创建了一个空项目,选中“在构建之前启动Xvfb,并在之后将其关闭.”,并且构建失败并出现错误. Building in workspace /var/lib/jenkins/jobs/test/workspace FATAL: Prefix string too short java.lang.IllegalArgumentException: Prefix string too short
我创建了一个空项目,选中“在构建之前启动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

>jenkins1.597

> xvfb插件1.0.13

> Xvfb可执行路径:/usr/bin/Xvfb

Xvfb Jenkins插件版本1.0.15修复了这个问题.另见 https://issues.jenkins-ci.org/browse/JENKINS-26505.
0

精彩评论

暂无评论...
验证码 换一张
取 消