【发布时间】:2021-02-26 09:11:20
【问题描述】:
我选择构建流水线脚本SCM,我放项目名的时候没有出现项目名。
上面写着:
尝试联系 Bitbucket 服务器时出现问题:提供的凭据无法访问资源
当我尝试输入我的项目名称时。
我已经将名称作为我的 Bitbucket 服务器项目,上面写着:
Enter the name of the Bitbucket Server project containing the repository you want Jenkins to build from. To find a project, start typing. If it doesn't appear in the search results, the credentials that you've chosen may not have read access to it and you'll need to provide different credentials.
但我仍然收到错误消息。
我可以知道如何将源代码从 Bitbucket 服务器部署到 Jenkins 服务器吗?
【问题讨论】:
-
youtube.com/watch?v=0-FugzVYJQU,我尝试遵循这个教程,但在输入项目名称时停留在 3.49 分钟。
-
您是否从 bitbucket (PAT) 生成了您的个人访问令牌并在管理 jenkins 页面中使用它?
-
是的,我确实在 Bitbucket 服务器集成中生成并放入了 Jenkins 配置,但没有放入任何凭据。当我测试连接时。它说:Jenkins 可以连接 Bitbucket Server。但是在尝试将项目名称放入管道脚本 scm 时,尝试联系 Bitbucket Server 时出现问题。
-
您必须在 Jenkins 凭据中添加您的 Bitbucket PAT,然后使用它来连接到 bitbucket,然后它将工作
-
我已经在帖子中添加了步骤,您可以将其标记为答案,以便将来参考的人有所帮助
标签: jenkins bitbucket devops bitbucket-pipelines