詹金斯:命令“git rev-parse --is-inside-work-tree”

时间:2014-03-20 02:15:08

标签: git jenkins ubuntu-13.10

我已经在工作区中构建了.git但是在尝试构建我的项目时却遇到了这个错误。

我使用Ubuntu,Jenkins和Git插件2.0.4。

Building in workspace /home/xxxx/Desktop/Jenkins
ERROR: Workspace has a .git repository, but it appears to be corrupt.
hudson.plugins.git.GitException: Command "git rev-parse --is-inside-work-tree" returned status code 128:
stdout: 
stderr: fatal: Not a git repository (or any of the parent directories): .git

    at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1183)
    at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1160)
    at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1156)
    at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand(CliGitAPIImpl.java:972)
    at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand(CliGitAPIImpl.java:982)
    at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.hasGitRepo(CliGitAPIImpl.java:136)
    at hudson.plugins.git.GitAPI.hasGitRepo(GitAPI.java:186)
    at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:830)
    at hudson.plugins.git.GitSCM.checkout(GitSCM.java:878)
...
Cloning the remote Git repository
Cloning repository git://github.com/xxxxx/xxxxx.git
ERROR: Failed to clean the workspace
java.nio.file.AccessDeniedException: /home/xxxx/Desktop/Jenkins/.git
    at sun.nio.fs.UnixException.translateToIOException(UnixException.java:84)
    at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
    at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)

0 个答案:

没有答案