linux - Jenkins 间歇性构建失败

标签 linux git build jenkins

我在 Jenkins 中有一个项目(在 Linux 上运行),它以定义的时间间隔轮询 SCM 并基于新的更改构建。我使用以下控制台输出间歇性地遇到构建失败:

Started by user MyUser User
Building on master in workspace <http://ci.mybuild.com:8080/job/temp-project/ws/>
Checkout:workspace / <http://ci.mybuild.com:8080/job/temp-project/ws/> - hudson.remoting.LocalChannel@5f2c402a
Using strategy: Default
Cloning the remote Git repository
Cloning repository origin
FATAL: hudson/FilePath$11
java.lang.NoClassDefFoundError: hudson/FilePath$11
    at hudson.FilePath.deleteRecursive(FilePath.java:980)
    at hudson.plugins.git.GitAPI.clone(GitAPI.java:211)
    at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:1121)
    at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:1063)
    at hudson.FilePath.act(FilePath.java:851)
    at hudson.FilePath.act(FilePath.java:824)
    at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1063)
    at hudson.model.AbstractProject.checkout(AbstractProject.java:1308)
    at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:676)
    at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88)
    at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:581)
    at hudson.model.Run.execute(Run.java:1516)
    at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
    at hudson.model.ResourceController.execute(ResourceController.java:88)
    at hudson.model.Executor.run(Executor.java:236)

我尝试创建一个具有类似配置的新作业,但第一次构建失败并出现此错误。

有人可以帮我指点一下吗?

最佳答案

查看日志 - deleteRecursive 失败:

...
java.lang.NoClassDefFoundError: hudson/FilePath$11
    at hudson.FilePath.deleteRecursive(FilePath.java:980)
    at hudson.plugins.git.GitAPI.clone(GitAPI.java:211)
...

这可能意味着您的文件系统阻止删除该区域中的文件 -
请检查那里的文件权限(也在文件夹上)。

关于linux - Jenkins 间歇性构建失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13440829/

相关文章:

go - `go build` 不必要地重建

c++ - 在 cmake3 上指定临时构建文件路径

linux - bash,将终端输出重置为以前的样子

git - 删除最后一次提交并推送

javascript - 使用 GitHub API 获取呈现的 html wiki 页面

svn - 使用 git 作为集中式版本服务器

java - Sourceforge 每日构建

linux - 将 jar 模块添加到 geoserver 时出现 osgeolive 权限问题

linux - 何时调用源元素的 set_caps ?

ruby-on-rails - selenium rspec 功能不在 linux 上运行