为什么在连接 Bitbucket 和 Jenkins 时不能输入项目名称?

Why I cannot put project name when to connect Bitbucket with Jenkins?

我选择构建流水线脚本SCM,输入我的项目名时没有出现项目名

它说:

Something went wrong when trying to contact Bitbucket Server: Provided credentials cannot access the resource

当我尝试输入我的项目名称时。

我已经将名称命名为我的 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 服务器吗?

要遵循的步骤

  1. 在 bitbucket 中创建个人访问令牌
  2. 在 Jenkins 中为上述个人访问令牌创建凭证
  3. 在 Jenkins 作业配置中,使用 (2) 中的凭据设置用于连接到 bitbucket。