mkdir命令中的jenkins错误

时间:2017-10-12 07:15:30

标签: jenkins jenkins-plugins jenkins-pipeline jenkins-cli

started by user Monitorprov2
Building remotely on slave3 in workspace /home/ubuntu/workspace/test
[WS-CLEANUP] Deleting project workspace...
java.io.IOException: Failed to mkdirs: /home/ubuntu/workspace/test
    at hudson.FilePath.mkdirs(FilePath.java:1171)
    at hudson.model.AbstractProject.checkout(AbstractProject.java:1210)
    at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:566)
    at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
    at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:491)
    at hudson.model.Run.execute(Run.java:1737)
    at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
    at hudson.model.ResourceController.execute(ResourceC`enter code here`ontroller.java:97)
    at hudson.model.Executor.run(Executor.java:419)
Finished: FAILURE

在执行Jenkins作业时遇到此错误,那么问题是什么以及如何解决此问题

1 个答案:

答案 0 :(得分:3)

这可能是由于权限问题造成的,用户jenkins无法在您尝试执行此目录的目录中创建目录。

这是一个类似的问题:Running a Jenkins job with a node parameter fails to mkdirs