You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bitbucket _Team/Project Folders_ project type can be used to automatically track branches and pull requests in all repositories
65
-
in a Bitbucket Team or Project.
64
+
_Bitbucket Team/Project_ repository source can be used in Organization Folder to automatically track branches and pull requests in all Bitbucket Team or Project repositories.
66
65
67
-
. Create a project of type _Bitbucket Team/Project_. The project name will be proposed automatically as default _Owner_ (or _Team_) name.
66
+
. Create a project of type _Organization Folder_.
68
67
+
69
68
image::images/screenshot-6.png[scaledwidth=90%]
70
69
71
-
. Configure the repository owner (if the proposed value does not match with the actual team or username). It could be:
72
-
.. A Bitbucket Cloud Team name: all repositories in the team are imported as Multibranch projects.
70
+
. Add _Bitbucket Team/Project_ repository source
71
+
. If you configured more than one _Bitbucket Endpoint_, choose the _Server_ and appropriate _Credential_
72
+
. Configure the repository owner. It could be:
73
+
.. A Bitbucket Cloud Workspace ID (slug): all repositories in the workspace are imported as Multibranch projects.
73
74
.. A Bitbucket Server Project ID: all repositories in the project are imported as Multibranch projects. *Note that the project ID needs to be used instead of the project name*.
74
75
.. A regular username: all repositories which the username is owner of are imported.
75
76
+
76
77
image::images/screenshot-8.png[scaledwidth=90%]
77
78
78
-
. Save the configuration and an initial indexing process starts, once it finishes a Multibranch
79
+
. Save the configuration. The initial indexing process starts. Once it finishes, a Multibranch
The configuration of the plugin (for both _Bitbucket Multibranch_ projects and _Bitbucket Team/Project_) has
107
+
The configuration of the plugin (for both _Bitbucket multibranch pipelines_ and _Bitbucket Workspace/Project organization folders_) has
103
108
two credentials to configure:
104
109
105
110
. *Scan Credentials*: Credentials used to access Bitbucket API in order to discover repositories, branches and pull requests.
106
111
If not set then anonymous access is used, so only public repositories, branches and pull requests are discovered and managed.
107
-
Note that the Webhooks auto-register feature requires scan credentials to be set.
108
112
HTTP Basic Authentication, Access Token and OAuth credentials are supported.
109
113
. *Checkout Credentials*: Credentials used to check out sources once the repository, branch or pull request is discovered.
110
114
HTTP Basic Authentication, SSH and OAuth credentials are supported.
111
-
If not set then _Scan Credentials_ are used.
115
+
If not set, then _Scan Credentials_ are used.
112
116
113
117
image::images/screenshot-3.png[scaledwidth=90%]
114
118
115
119
=== Access Token
116
120
117
-
The plugin can make use of an access token (Bitbucket Server only) instead of the standard username/password.
121
+
The plugin can make use of a personal access token (Bitbucket Server only) instead of the standard username/password.
118
122
119
-
First create a new _personal access token_ in Bitbucket as instructed in the https://confluence.atlassian.com/bitbucketserver0716/personal-access-tokens-1086402495.html[Bitbucket Personal Access Tokens Documentation].
123
+
First, create a new _personal access token_ in Bitbucket as instructed in the link:https://confluence.atlassian.com/bitbucketserver080/http-access-tokens-1115142284.html[HTTP access tokens | Bitbucket Data Center and Server 8.0 | Atlassian Documentation].
120
124
At least allow _read_ access for repositories. If you want the plugin to install the webhooks, allow _admin_ access for repositories.
121
125
122
-
Then create new _Secret text credentials_ in Jenkins and enter the Bitbucket personal access token value in the _Secret_ field.
123
-
124
-
When configuring a multi-branch project, add the _Checkout over SSH_ behavior to a branch source, as the token can only be used for the Bitbucket API.
126
+
Then create a new _Username with password_ credential in Jenkins, enter the Bitbucket username (not the email) in the _Username_ field and the created access token in the _Password_ field.
125
127
126
128
=== App Passwords
127
129
128
130
Bitbucket https://community.atlassian.com/t5/Bitbucket-articles/Announcement-Bitbucket-Cloud-account-password-usage-for-Git-over/ba-p/1948231[deprecated usage of Atlassian account password] for Bitbucket API and Git over HTTPS starting from March 1st, 2022 (Bitbucket Cloud only).
129
131
130
132
The plugin can make use of an app password instead of the standard username/password.
131
133
132
-
First create a new _app password_ in Bitbucket as instructed in the https://support.atlassian.com/bitbucket-cloud/docs/app-passwords/[Bitbucket App Passwords Documentation]. At least allow _read_ access for repositories. Also, you may need to allow _read_ and _write_ access for webhooks depending on your pipeline's triggers.
134
+
First, create a new _app password_ in Bitbucket as instructed in the https://support.atlassian.com/bitbucket-cloud/docs/app-passwords/[Bitbucket App Passwords Documentation]. At least allow _read_ access for repositories. Also, you may need to allow _read_ and _write_ access for webhooks depending on your pipeline's triggers.
133
135
134
136
Then create a new _Username with password credentials_ in Jenkins, enter the Bitbucket username (not the email) in the _Username_ field and the created app password in the _Password_ field.
0 commit comments