首页 文章

Jenkins github用户名密码登录

提问于
浏览
0

我已经安装了Jenkins ver . OSX 10.11.3上的1.653使用标准安装程序并添加了git插件 . 我试图从github创建公共项目的工作,它的工作原理 . 现在我正在尝试使用用户名和密码为私人仓库创建工作但总是失败 . 这是日志:

Started by user anonymous

在工作区/用户/共享/ Jenkins / Home / workspace / MyProject中构建

git rev-parse --is-inside-work-tree #timetime = 10从远程Git存储库获取更改git config remote.origin.url https://github.com/myproject/myproject-android.git#timeout = 10从https://github.com/myproject/myproject-android.git获取上游更改git --version #timeout = 10使用.gitcredentials设置凭据git config --local credential.username vandzi #timeout = 10 git config - -local credential.helper store --file = / Users / Shared / Jenkins / tmp / git428140271294555744.credentials #timeout = 10 git -c core.askpass = true fetch --tags --progress https://github.com/myproject /myproject-android.git refs / heads /:refs / remotes / origin / ERROR:10分钟后超时git config --local --remove-section凭证#timeout = 10错误:获取远程repo'origin'hudson.plugins时出错.git.GitException:无法在hudson.plugins.git.GitSCM上的hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:766)中从https://github.com/myproject/myproject-android.git获取 . retrieveChanges(G itSCM.java:1022)at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1053)at hudson.scm.SCM.checkout(SCM.java:485)at hudson.model.AbstractProject.checkout(AbstractProject.java) :1269)在hudson.model.AbstractBuild $ AbstractBuildExecution.run(AbstractBuild.eava: 529)hudson.model.Run.execute(Run.java:1738)位于hudson的hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)hudson.model.ResourceController.execute(ResourceController.java:98) . model.Executor.run(Executor.java:410)引起:hudson.plugins.git.GitException:命令“git -c core.askpass = true fetch --tags --progress https://github.com/myproject/ myproject-android.git refs / heads /:refs / remotes / origin /“在org.jenkinsci返回状态码143:stdout:stderr:at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1719) . plugins.gitcl orient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1463)org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access $ 300(CliGitAPIImpl.java:63)org.jenkinsci.plugins.gitclient.CliGitAPIImpl $ 1.execute(CliGitAPIImpl.java: 314)at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:764)... 11 more ERROR:null已完成:FAILURE

知道什么可能有问题吗?

1 回答

  • 0

    最后还有 ERROR: null ,对我来说这是超时问题 . 您可以像这样增加克隆和结帐的超时时间:

    • 转到作业配置并找到git部分

    • 添加 - >高级克隆行为 . 在那里你可以指定超时并检查'shallow copy'(更快)

    • 添加 - >高级结帐行为 . 您可以设置退房时间 .

相关问题