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
Copy file name to clipboardExpand all lines: docs/configuration/integrations/bitbucket-server.md
+14-5Lines changed: 14 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,9 +10,9 @@ Follow the instructions below to set up the Codacy Self-hosted integration with
10
10
11
11
To integrate Codacy with Bitbucket Server, you must create an application link on your Bitbucket Server instance:
12
12
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.
14
14
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:
@@ -24,8 +24,17 @@ To integrate Codacy with Bitbucket Server, you must create an application link o
24
24
25
25
3. Create a new application link with the URL of your Codacy instance.
26
26
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
+
27
32

28
33
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
+

37
+
29
38
4. Fill in the fields:
30
39
31
40
- **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
35
44
36
45

37
46
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.
39
48
40
-
6. Fill in the fields of the incomming authentication:
49
+
6. Fill in the fields of the incoming authentication:
41
50
42
51
- **Consumer Key:** Enter the `consumerKey` generated previously.
43
52
- **Consumer Name:** Name of the consumer. For example, `Codacy`.
44
53
- **Public Key:** Enter the `consumerPublicKey` generated previously.
45
54
46
55
The remaining fields should be left blank.
47
56
48
-

57
+

0 commit comments