【发布时间】:2018-06-15 21:28:54
【问题描述】:
我有一个当前部署到 Heroku 的应用程序,我正在尝试连接到 Jenkins,但我收到了这个错误
ERROR: Error fetching remote repo 'Heroku'
hudson.plugins.git.GitException: Failed to fetch from https://git.heroku.com/myApp.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:495)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1276)
at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:560)
at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:485)
at hudson.model.Run.execute(Run.java:1735)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:405)
Caused by: hudson.plugins.git.GitException: Command "git fetch --tags --progress https://git.heroku.com/myApp.git +refs/heads/*:refs/remotes/Heroku/*" returned status code 128:
stdout:
stderr: remote: ! WARNING:
remote: ! Do not authenticate with username and password using git.
remote: ! Run `heroku login` to update your credentials, then retry the git command.
remote: ! See documentation for details: https://devcenter.heroku.com/articles/git#http-git-authentication
fatal: Authentication failed for 'https://git.heroku.com/myApp.git/'
我已经运行了heroku login,当我运行heroku apps --all 时,它会列出我当前的所有应用程序和我的用户名,确认登录成功
【问题讨论】:
标签: git amazon-web-services jenkins heroku deployment