Jenkins构建报错:ERROR: Error fetching remote repo ‘origin‘( Permission denied)
ERROR: Error fetching remote repo 'origin'
·
ERROR: Error fetching remote repo ‘origin’( Permission denied)
ERROR: Error fetching remote repo 'origin'
hudson.plugins.git.GitException: Failed to fetch from http://XXXXXX.com/Test/XXXX-exclusive-app-build-scripts.git
at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:862)
at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1129)
at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1160)
at hudson.scm.SCM.checkout(SCM.java:504)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1208)
at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:574)
at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499)
at hudson.model.Run.execute(Run.java:1798)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:429)
Caused by: hudson.plugins.git.GitException: Command "git fetch --tags --progress http://XXXXXX/Test/XXX-exclusive-app-build-scripts.git +refs/heads/*:refs/remotes/origin/*" returned status code 128:
stdout:
stderr: warning: redirecting to https://gitlab.XXXXXX.com/Test/XXXX-exclusive-app-build-scripts.git/
fatal: failed to read object 59e87cd45066e3597a0d1e0cbeccc23efba17e39: Permission denied
fatal: the remote end hung up unexpectedly
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1996)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1715)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:72)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:405)
at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:860)
... 11 more
ERROR: Error fetching remote repo 'origin'
Finished: FAILURE
问题解决:
出现该问题首先需要网上看下日志,从日志中可以看出 Permission denied ,可知是权限修改或权限相关问题引起的,需要我们手动进入jenkins 选择对应流水线的工作空间进行删除,再重新构建即可
更多推荐
已为社区贡献2条内容
所有评论(0)