Skip to content

Commit 09ddf7c

Browse files
authored
Merge pull request #88603 from mramendi/RHDEVDOCS-6354
RHDEVDOCS 6354 Bitbucket Data Center instead of Server, Bitbucket case fix
2 parents b0359e1 + 9f15429 commit 09ddf7c

5 files changed

+23
-23
lines changed

modules/op-installing-tekton-hub-with-login-and-rating.adoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ You can install {tekton-hub} on your cluster with custom configuration that supp
1515
[discrete]
1616
.Procedure
1717

18-
. Create an OAuth application with your Git repository hosting provider, and note the Client ID and Client Secret. The supported providers are GitHub, GitLab, and BitBucket.
18+
. Create an OAuth application with your Git repository hosting provider, and note the Client ID and Client Secret. The supported providers are GitHub, GitLab, and Bitbucket.
1919

2020
** For a link:https://docs.github.com/en/developers/apps/creating-an-oauth-app[GitHub OAuth application], set the Homepage URL and the Authorization callback URL as `<auth-route>`.
2121

2222
** For a link:https://docs.gitlab.com/ee/integration/oauth_provider.html#user-owned-applications[GitLab OAuth application], set the `REDIRECT_URI` as `<auth-route>/auth/gitlab/callback`.
2323

24-
** For a link:https://support.atlassian.com/bitbucket-cloud/docs/use-oauth-on-bitbucket-cloud[BitBucket OAuth application], set the `Callback URL` as `<auth-route>`.
24+
** For a link:https://support.atlassian.com/bitbucket-cloud/docs/use-oauth-on-bitbucket-cloud[Bitbucket OAuth application], set the `Callback URL` as `<auth-route>`.
2525

2626
. Edit the `<tekton_hub_root>/config/02-api/20-api-secret.yaml` file to include the {tekton-hub} API secrets. For example:
2727
+
@@ -51,8 +51,8 @@ stringData:
5151
<2> The Client Secret from the GitHub OAuth application.
5252
<3> The Client ID from the GitLab OAuth application.
5353
<4> The Client Secret from the GitLab OAuth application.
54-
<5> The Client ID from the BitBucket OAuth application.
55-
<6> The Client Secret from the BitBucket OAuth application.
54+
<5> The Client ID from the Bitbucket OAuth application.
55+
<6> The Client Secret from the Bitbucket OAuth application.
5656
<7> A long, random string used to sign the JSON Web Token (JWT) created for users.
5757
<8> Add the time limit after which the access token expires. For example, `1m`, where m denotes minutes. The supported units of time are seconds (`s`), minutes (`m`), hours (`h`), days (`d`), and weeks (`w`).
5858
<9> Add the time limit after which the refresh token expires. For example, `1m`, where `m` denotes minutes. The supported units of time are seconds (`s`), minutes (`m`), hours (`h`), days (`d`), and weeks (`w`). Ensure that the expiry time set for token refresh is greater than the expiry time set for token access.

modules/op-resolver-git-config-scm.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ You can use Git repository providers that are supported by the `go-scm` library.
1313
* `github.com` and GitHub Enterprise
1414
* `gitlab.com` and self-hosted Gitlab
1515
* Gitea
16-
* BitBucket Server
17-
* BitBucket Cloud
16+
* Bitbucket Data Center
17+
* Bitbucket Cloud
1818
1919
[NOTE]
2020
====
@@ -56,7 +56,7 @@ spec:
5656
<1> The default Git revision to use if none is specified.
5757
<2> The maximum time any single Git clone resolution may take, for example, `1m`, `2s`, `700ms`. {pipelines-title} also enforces a global maximum timeout of 1 minute on all resolution requests.
5858
<3> The SCM provider type.
59-
<4> The base URL for use with the authenticated SCM API. This setting is not required if you are using `github.com`, `gitlab.com`, or BitBucket Cloud.
59+
<4> The base URL for use with the authenticated SCM API. This setting is not required if you are using `github.com`, `gitlab.com`, or Bitbucket Cloud.
6060
<5> The name of the secret that contains the SCM provider API token.
6161
<6> The key within the token secret that contains the token.
6262
<7> The namespace containing the token secret, if not `default`.

modules/op-using-pipelines-as-code-with-bitbucket-server.adoc

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@
33

44
:_mod-docs-content-type: PROCEDURE
55
[id="using-pipelines-as-code-with-bitbucket-server_{context}"]
6-
= Using {pac} with Bitbucket Server
6+
= Using {pac} with Bitbucket Data Center
77

88
[role="_abstract"]
9-
If your organization or project uses Bitbucket Server as the preferred platform, you can use {pac} for your repository with a webhook on Bitbucket Server.
9+
If your organization or project uses Bitbucket Data Center as the preferred platform, you can use {pac} for your repository with a webhook on Bitbucket Data Center.
1010

1111
[discrete]
1212
.Prerequisites
1313

1414
* Ensure that {pac} is installed on the cluster.
1515
16-
* Generate a personal access token as the manager of the project on Bitbucket Server, and save a copy of it in an alternate location.
16+
* Generate a personal access token as the manager of the project on Bitbucket Data Center, and save a copy of it in an alternate location.
1717
+
1818
[NOTE]
1919
====
@@ -31,7 +31,7 @@ If your organization or project uses Bitbucket Server as the preferred platform,
3131
$ echo https://$(oc get route -n openshift-pipelines pipelines-as-code-controller -o jsonpath='{.spec.host}')
3232
----
3333

34-
. On Bitbucket Server, perform the following steps:
34+
. On Bitbucket Data Center, perform the following steps:
3535

3636
.. Use the left navigation pane of your Bitbucket Data Center repository to go to *Repository settings* –> *Webhooks* and click *Add webhook*.
3737

@@ -59,7 +59,7 @@ $ openssl rand -hex 20
5959
+
6060
[source,terminal]
6161
----
62-
$ oc -n target-namespace create secret generic bitbucket-server-webhook-config \
62+
$ oc -n target-namespace create secret generic bitbucket-datacenter-webhook-config \
6363
--from-literal provider.token="<PERSONAL_TOKEN>" \
6464
--from-literal webhook.secret="<WEBHOOK_SECRET>"
6565
----
@@ -77,20 +77,20 @@ metadata:
7777
spec:
7878
url: "https://bitbucket.com/workspace/repo"
7979
git_provider:
80-
url: "https://bitbucket.server.api.url/rest" <1>
80+
url: "https://bitbucket.datacenter.api.url/rest" <1>
8181
user: "<BITBUCKET_USERNAME>" <2>
8282
secret: <3>
83-
name: "bitbucket-server-webhook-config"
83+
name: "bitbucket-datacenter-webhook-config"
8484
key: "provider.token" # Set this if you have a different key in your secret
8585
webhook_secret:
86-
name: "bitbucket-server-webhook-config"
86+
name: "bitbucket-datacenter-webhook-config"
8787
key: "webhook.secret" # Set this if you have a different key for your secret
8888
----
89-
<1> Ensure that you have the right Bitbucket Server API URL without the `/api/v1.0` suffix. Usually, the default install has a `/rest` suffix.
89+
<1> Ensure that you have the right Bitbucket Data Center API URL without the `/api/v1.0` suffix. Usually, the default install has a `/rest` suffix.
9090
<2> You can only reference a user by the `ACCOUNT_ID` in an owner file.
9191
<3> {pac} assumes that the secret referred in the `git_provider.secret` spec and the `Repository` CR is in the same namespace.
9292
+
9393
[NOTE]
9494
====
95-
The `tkn pac create` and `tkn pac bootstrap` commands are not supported on Bitbucket Server.
95+
The `tkn pac create` and `tkn pac bootstrap` commands are not supported on Bitbucket Data Center.
9696
====

pac/about-pipelines-as-code.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ With {pac}, cluster administrators and users with the required privileges can de
2424
* Retrieval of configurations using GitHub blobs and objects API.
2525
* Access Control List (ACL) over a GitHub organization or using a Prow style `OWNERS` file.
2626
* The `tkn pac` CLI plugin for managing bootstrapping and {pac} repositories.
27-
* Support for GitHub App, GitHub Webhook, Bitbucket Server, and Bitbucket Cloud.
27+
* Support for GitHub App, GitHub Webhook, Bitbucket Data Center, and Bitbucket Cloud.

pac/using-pipelines-as-code-repos.adoc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ After installing {pac}, cluster administrators can configure a Git repository ho
1111
* GitHub App
1212
* GitHub Webhook
1313
* GitLab
14-
* Bitbucket Server
14+
* Bitbucket Data Center
1515
* Bitbucket Cloud
1616
1717
[NOTE]
@@ -53,15 +53,15 @@ include::modules/op-using-pipelines-as-code-with-bitbucket-cloud.adoc[leveloffse
5353
5454
.Additional resources
5555
56-
* link:https://support.atlassian.com/bitbucket-cloud/docs/app-passwords/[Creating app password on Bitbucket Cloud]
57-
* link:https://developer.atlassian.com/cloud/bitbucket/bitbucket-api-changes-gdpr/#introducing-atlassian-account-id-and-nicknames[Introducing Altassian Account ID and Nicknames]
56+
* link:https://support.atlassian.com/bitbucket-cloud/docs/app-passwords/[Creating app password on Bitbucket Cloud] (Atlassian documentation)
57+
* link:https://developer.atlassian.com/cloud/bitbucket/bitbucket-api-changes-gdpr/#introducing-atlassian-account-id-and-nicknames[Introducing Altassian Account ID and Nicknames] in the Atlassian documentation
5858
5959
include::modules/op-using-pipelines-as-code-with-bitbucket-server.adoc[leveloffset=+1]
6060
6161
.Additional resources
6262
63-
* link:https://confluence.atlassian.com/bitbucketserver/personal-access-tokens-939515499.html[Creating personal tokens on Bitbucket Server]
64-
* link:https://support.atlassian.com/bitbucket-cloud/docs/manage-webhooks/#Create-webhooks[Creating webhooks on Bitbucket server]
63+
* link:https://confluence.atlassian.com/bitbucketserver/personal-access-tokens-939515499.html[Creating personal tokens on Bitbucket Data Center] (Atlassian documentation)
64+
* link:https://confluence.atlassian.com/bitbucketserver/manage-webhooks-938025878.html[Managing webhooks on Bitbucket Data Center] (Atlassian documentation)
6565
6666
include::modules/op-interfacing-pipelines-as-code-with-custom-certificates.adoc[leveloffset=+1]
6767

0 commit comments

Comments
 (0)