按照视频的步骤构建失败
Started by GitLab push by Administrator Running as SYSTEM Building in workspace /var/jenkins_home/workspace/test2 using credential 7691e74a-5d42-4739-9fa3-5835ad29213c Cloning the remote Git repository Cloning repository git@10.11.5.124:root/test-repo2.git > git init /var/jenkins_home/workspace/test2 # timeout=10 Fetching upstream changes from git@10.11.5.124:root/test-repo2.git > git --version # timeout=10 using GIT_SSH to set credentials > git fetch --tags --progress -- git@10.11.5.124:root/test-repo2.git +refs/heads/*:refs/remotes/origin/* # timeout=10 ERROR: Timeout after 10 minutes ERROR: Error cloning remote repo 'origin' hudson.plugins.git.GitException: Command "git fetch --tags --progress -- git@10.11.5.124:root/test-repo2.git +refs/heads/*:refs/remotes/origin/*" returned status code 128: stdout: stderr: Terminated fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2430) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:2044) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$500(CliGitAPIImpl.java:81) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:569) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:798) at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1122) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1167) at hudson.scm.SCM.checkout(SCM.java:505) at hudson.model.AbstractProject.checkout(AbstractProject.java:1206) 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:1856) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:97) at hudson.model.Executor.run(Executor.java:428) ERROR: Error cloning remote repo 'origin' Finished: FAILURE
docker logs 里面显示要密码,一开始我配置了passphrase,还提示需要填passphrase。
it@10.11.5.124's password: Enter passphrase for key '/tmp/jenkins-gitclient-ssh2764777356195957683.key': 2020-05-25 11:20:57.332+0000 [id=107] INFO hudson.model.AsyncPeriodicWork#lambda$doRun$0: Started Periodic background build discarder 2020-05-25 11:20:57.340+0000 [id=107] INFO hudson.model.AsyncPeriodicWork#lambda$doRun$0: Finished Periodic background build discarder. 7 ms 2020-05-25 11:25:22.356+0000 [id=108] INFO c.d.g.webhook.GitLabWebHook#getDynamic: WebHook called with url: /project/test 2020-05-25 11:25:27.269+0000 [id=108] INFO c.d.g.t.h.AbstractWebHookTriggerHandler#handle: test triggered for push. Enter passphrase for key '/var/jenkins_home/workspace/test@tmp/jenkins-gitclient-ssh4855780073703917439.key': git@10.11.5.124's password: Enter passphrase for key '/tmp/jenkins-gitclient-ssh8020213631056284308.key': git@10.11.5.124's password: git@10.11.5.124's password: 2020-05-25 11:41:56.057+0000 [id=63] INFO c.d.g.webhook.GitLabWebHook#getDynamic: WebHook called with url: /project/test2 2020-05-25 11:41:56.136+0000 [id=63] INFO c.d.g.t.h.AbstractWebHookTriggerHandler#handle: test2 triggered for push. git@10.11.5.124's password:
passphrase我按照视频的步骤配置了的,请问这可能是哪里错了?
31
收起
正在回答 回答被采纳积分+1
2回答
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧
0 星