重庆建设银行网站首页,郑州一站式网站搭建,云阳做网站,网站管理建设工作报告我的目标是将私有Github存储库拉到Jenkins .以下是一些背景#xff1a;MacOSJenkins在本地托管#xff0c; localhost:8080在Jenkins中安装了Git插件和Github插件 .如果我将存储库转为Public#xff0c;Jenkins的一切都很好 .从命令行#xff0c;我可以使用我在Jenkins中使…我的目标是将私有Github存储库拉到Jenkins .以下是一些背景MacOSJenkins在本地托管 localhost:8080在Jenkins中安装了Git插件和Github插件 .如果我将存储库转为PublicJenkins的一切都很好 .从命令行我可以使用我在Jenkins中使用的相同凭据来执行git clone私有仓库 .但是当我把它变成私人并将它用作詹金斯的来源时它就被打破了 .错误是Building in workspace /Users/Shared/Jenkins/Home/jobs/TestFramework/workspace /usr/bin/git rev-parse --is-inside-work-tree # timeout10Fetching changes from the remote Git repository /usr/bin/git config remote.origin.url https://github.com/XXXXXXX/testframework.git # timeout10Fetching upstream changes from https://github.com/XXXXXXX/testframework.git /usr/bin/git --version # timeout10using GIT_ASKPASS to set credentials /usr/bin/git fetch --tags --progress https://github.com/XXXXXXX/testframework.git refs/heads/*:refs/remotes/origin/* # timeout5ERROR: Timeout after 5 minutesERROR: Error fetching remote repo originhudson.plugins.git.GitException: Failed to fetch from https://github.com/XXXXXXX/testframework.gitat hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:806)at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1070)at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1101)at hudson.scm.SCM.checkout(SCM.java:496)at hudson.model.AbstractProject.checkout(AbstractProject.java:1278)at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:604)at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529)at hudson.model.Run.execute(Run.java:1728)at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)at hudson.model.ResourceController.execute(ResourceController.java:98)at hudson.model.Executor.run(Executor.java:405)Caused by: hudson.plugins.git.GitException: Command /usr/bin/git fetch --tags --progress https://github.com/XXXXXXX/testframework.git refs/heads/*:refs/remotes/origin/* returned status code 143:I tried a few suggestions online:ssh-keygen到/Users/shared/jenkins/.ssh/id_rsassh-keygen到/Users/jason/.ssh/id_rsa将相应的id_rsa.pub添加到私有存储库Settings Deploy keys .但仍然没有工作 .