【问题标题】:Jenkins Build Failure with WorkspaceJenkins 使用 Workspace 构建失败
【发布时间】:2016-04-26 14:25:35
【问题描述】:

我在构建项目时收到来自 Jenkins 的失败构建消息。我不确定这意味着什么。在我的其他团队成员之一向我们的 SVN 服务器提交新数据之前,此构建已经工作了多次。现在构建不会“识别”工作区。有一个link 有同样的错误,但它最终并没有解决我的问题。

Started by user Chris Parsons
Building in workspace C:\Program Files (x86)\Jenkins\jobs\iLaundry - Installer Builder\workspace
Checking out a fresh workspace because there's no workspace at C:\Program Files (x86)\Jenkins\jobs\iLaundry - Installer Builder\workspace
Cleaning local Directory .
java.nio.file.FileSystemException: C:\Program Files (x86)\Jenkins\jobs\iLaundry - Installer Builder\workspace\.\.svn\wc.db: The process cannot access the file because it is being used by another process.

    at sun.nio.fs.WindowsException.translateToIOException(Unknown Source)
    at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source)
    at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source)
    at sun.nio.fs.WindowsFileSystemProvider.implDelete(Unknown Source)
    at sun.nio.fs.AbstractFileSystemProvider.delete(Unknown Source)
    at java.nio.file.Files.delete(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at hudson.Util.deleteFile(Util.java:239)
    at hudson.Util.deleteRecursive(Util.java:307)
    at hudson.Util.deleteContentsRecursive(Util.java:204)
    at hudson.Util.deleteRecursive(Util.java:298)
    at hudson.Util.deleteContentsRecursive(Util.java:204)
    at hudson.scm.subversion.CheckoutUpdater$1.perform(CheckoutUpdater.java:75)
    at hudson.scm.subversion.WorkspaceUpdater$UpdateTask.delegateTo(WorkspaceUpdater.java:161)
    at hudson.scm.subversion.WorkspaceUpdater$UpdateTask.delegateTo(WorkspaceUpdater.java:169)
    at hudson.scm.subversion.UpdateUpdater$TaskImpl.perform(UpdateUpdater.java:133)
    at hudson.scm.subversion.WorkspaceUpdater$UpdateTask.delegateTo(WorkspaceUpdater.java:161)
    at hudson.scm.SubversionSCM$CheckOutTask.perform(SubversionSCM.java:1004)
    at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:985)
    at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:961)
    at hudson.FilePath.act(FilePath.java:916)
    at hudson.FilePath.act(FilePath.java:889)
    at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:910)
    at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:845)
    at hudson.model.AbstractProject.checkout(AbstractProject.java:1411)
    at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:652)
    at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88)
    at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:557)
    at hudson.model.Run.execute(Run.java:1665)
    at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
    at hudson.model.ResourceController.execute(ResourceController.java:88)
    at hudson.model.Executor.run(Executor.java:246)
Finished: FAILURE

关于我做错了什么有什么建议吗?

【问题讨论】:

    标签: svn jenkins


    【解决方案1】:

    所以我在忙于解决另一个问题时找到了答案。 Jenkins 是在 ${JENKINS_HOME}/Workspace/${ITEM_FULLNAME} 文件夹中构建的,但我正在构建的项目有它自己的工作区,所以我需要做的就是更改目录。而且效果很好。

    【讨论】:

    • 你如何解决这个问题,我也有同样的问题,
    猜你喜欢
    • 2015-12-07
    • 1970-01-01
    • 1970-01-01
    • 2012-12-07
    • 2013-03-12
    • 1970-01-01
    • 2018-03-19
    • 2013-05-23
    • 1970-01-01
    相关资源
    最近更新 更多