Skip to content

Commit 1eb9e38

Browse files
author
Paulo Ribeiro
authored
Merge pull request #740 from codacy/doc/update-bitbucket-server-config-DOCS-396
doc: Add Application link instructions for Bitbucket Server 7.20+ DOCS-396 CY-6251
2 parents 95c52b9 + 6ac1a44 commit 1eb9e38

3 files changed

Lines changed: 14 additions & 5 deletions

File tree

docs/configuration/integrations/bitbucket-server.md

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ Follow the instructions below to set up the Codacy Self-hosted integration with
1010

1111
To integrate Codacy with Bitbucket Server, you must create an application link on your Bitbucket Server instance:
1212

13-
1. Since Bitbucket Server uses OAuth1, you need to create a key pair to sign and validate the requests between Codacy and the Bitbucket Server instance.
13+
1. Create a key pair to sign and validate the requests between Codacy and the Bitbucket Server instance.
1414

15-
Create a key pair using the RSA algorithm in the PKCS#8 format by executing the command:
15+
Run the following command to create the key pair using the RSA algorithm in the PKCS#8 format:
1616

1717
```bash
1818
bash <(curl -fsSL https://raw.githubusercontent.com/codacy/chart/master/docs/configuration/integrations/generate-bitbucket-server-secrets.sh)
@@ -24,8 +24,17 @@ To integrate Codacy with Bitbucket Server, you must create an application link o
2424

2525
3. Create a new application link with the URL of your Codacy instance.
2626

27+
!!! important
28+
**If you're using Bitbucket Server 7.20 or later** you must select the application type **Atlassian product** while creating the new application link.
29+
30+
This [forces the integration to use OAuth 1.0](https://confluence.atlassian.com/bitbucketserver/link-to-other-applications-1018764620.html#Linktootherapplications-LinktoAtlassianproductsorexternalapplicationsusingOAuth1.0){: target="_blank"} and is necessary to ensure the compatibility between Codacy and older versions of Bitbucket that only supported OAuth 1.0.
31+
2732
![Bitbucket Server application link](images/bitbucket-server-application-link.png)
2833
34+
If Bitbucket Server may warn you that there was no response from the URL you entered. This is expected, and you can click **Continue** after verifying that the URL is correct.
35+
36+
![No response from Codacy instance URL](images/bitbucket-server-no-response.png)
37+
2938
4. Fill in the fields:
3039
3140
- **Application Name:** Name of the application. For example, `Codacy`.
@@ -35,17 +44,17 @@ To integrate Codacy with Bitbucket Server, you must create an application link o
3544
3645
![Bitbucket Server application link naming](images/bitbucket-server-link-naming.png)
3746
38-
5. After creating the link, click **Edit** to add an incoming authentication.
47+
5. After creating the new application link, click **Edit** to add an incoming authentication.
3948
40-
6. Fill in the fields of the incomming authentication:
49+
6. Fill in the fields of the incoming authentication:
4150
4251
- **Consumer Key:** Enter the `consumerKey` generated previously.
4352
- **Consumer Name:** Name of the consumer. For example, `Codacy`.
4453
- **Public Key:** Enter the `consumerPublicKey` generated previously.
4554
4655
The remaining fields should be left blank.
4756
48-
![Bitbucket Server incomming authentication](images/bitbucket-server-incoming-authentication.png)
57+
![Bitbucket Server incoming authentication](images/bitbucket-server-incoming-authentication.png)
4958
5059
## Configure Bitbucket Server on Codacy
5160
-87.5 KB
Loading
43.3 KB
Loading

0 commit comments

Comments
 (0)