我目前已部署到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
时,它会列出我当前的所有应用和用户名,确认登录成功
答案 0 :(得分:1)
这取决于您的Jenkins正在运行的登录/本地帐户。
如果它未与相同的帐户一起运行,则无法从您成功的heroku login
命令中受益。