我正在使用jenkins进行测试并在代码上做些cr。
在jenkins本地主机上,我正在使用传入的项目运行以下命令
cmake --build MyProject/cmake-build-debug --target MyProject -- -j 2
但是我遇到以下错误:
Error: could not load cache
我已经安装了所有依赖项,当我在MyProject文件夹中运行cmake .
时,我会得到:
-- Configuring done
-- Generating done
-- Build files have been written to: /var/jenkins_home/workspace/Main_build/MyProject
我该怎么做才能解决此问题?有什么问题?
谢谢。
编辑:
我正在将控制台输出添加到詹金斯
> git checkout -f f7ee4c3501c93aa34ee31a65c0c19de51d16f908
FATAL: Could not checkout f7ee4c3501c93aa34ee31a65c0c19de51d16f908
hudson.plugins.git.GitException: Command "git checkout -f
f7ee4c3501c93aa34ee31a65c0c19de51d16f908" returned status code 128:
stdout:
stderr: fatal: cannot create directory at 'MyProject/CMakeFiles/3.13.2': Permission denied
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2042)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$900(CliGitAPIImpl.java:72)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$9.execute(CliGitAPIImpl.java:2341)
Caused: hudson.plugins.git.GitException: Could not checkout f7ee4c3501c93aa34ee31a65c0c19de51d16f908
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$9.execute(CliGitAPIImpl.java:2365)
at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1236)
at hudson.scm.SCM.checkout(SCM.java:495)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1276)
at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:560)
at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:485)
at hudson.model.Run.execute(Run.java:1735)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:405)
Finished: FAILURE