【发布时间】:2020-03-21 19:12:47
【问题描述】:
我一直致力于使用 Jenkins 自动构建一个 maven 项目。 手动,从 Jenkins 中的“开始构建”开始,它工作正常,但是来自 bitbucket webhook: “jenkins_url/bitbucket-hook/”,在提交并推送我的 bitbucket 存储库后,我进入了 Jenkins 的 Bitbucket Hook 记录此错误:
FATAL: hudson.plugins.git.GitException: Command "git ls-remote -h -- https://my_username@bitbucket.org/repo.git/" returned status code 128:
stdout:
stderr: remote: Invalid username or password
fatal: Authentication failed for 'https://bitbucket.org/repo.git/'
hudson.plugins.git.GitException: Command "git ls-remote -h -- https://my_username@bitbucket.org/repo.git/" returned status code 128:
stdout:
stderr: remote: Invalid username or password
fatal: Authentication failed for 'https://bitbucket.org/repo.git/'
我正在使用用户名和密码凭据。
希望你能帮助我。
【问题讨论】: