|
15 | 15 | * Unlike GitHub, in Bitbucket, [team admins do not have access to forks](https://bitbucket.org/site/master/issues/4828/team-admins-dont-have-read-access-to-forks).
|
16 | 16 | This means that when you have a private repository, or a private fork of a public repository, the team admin will not be able to see the PRs within the fork.
|
17 | 17 |
|
18 |
| -## How-to run and test with Bitbucket Server locally |
| 18 | +## Developers and DevOps notes |
| 19 | + |
| 20 | +Classes under the packages `com.cloudbees.jenkins.plugins.bitbucket.api` is intended to be public api and can be used to extend functionality in other plugins. Changes in the method signature will be marked with @deprecated providing an alternative new signature or class to use. After a reasonable time (about a year) the method could be removed at all. If some methods are not intended to be used then are marked with `@Restricted(NoExternalUse.class)`. |
| 21 | + |
| 22 | +Classes in other packages are not intended to be used outside of this plugin. Signature can be changed in any moment, backward compatibility are no guaranteed. |
| 23 | + |
| 24 | +When implementing a pipeline (scripted or declarative) we encourage the use of symbols instead of using the name (or fully qualified name) of the class. Symbols are safer against possible reorganization of the plugin code (classic examples: renaming the class or moving it to different packages). |
| 25 | + |
| 26 | +Compliant example: |
| 27 | + |
| 28 | +``` |
| 29 | +multibranch: |
| 30 | + branchSource: |
| 31 | + bitbucket: |
| 32 | + repoOwner: 'organization' |
| 33 | + repository: 'repository' |
| 34 | + credentialsId: 'bitbucket-credentials' |
| 35 | + traits: |
| 36 | + - bitbucketBranchDiscovery: |
| 37 | + strategyId: 1 |
| 38 | + - bitbucketSshCheckout: |
| 39 | + credentialsId: 'bitbucket-ssh-credentials' |
| 40 | +``` |
| 41 | + |
| 42 | +Noncompliant code example: |
| 43 | + |
| 44 | +``` |
| 45 | +multibranch: |
| 46 | + branchSource: |
| 47 | + bitbucket: |
| 48 | + repoOwner: 'organization' |
| 49 | + repository: 'repository' |
| 50 | + credentialsId: 'bitbucket-credentials' |
| 51 | + traits: |
| 52 | + - $class: 'BranchDiscoveryTrait' |
| 53 | + strategyId: 1 |
| 54 | + - $class: 'com.cloudbees.jenkins.plugins.bitbucket.SSHCheckoutTrait': |
| 55 | + credentialsId: 'bitbucket-ssh-credentials' |
| 56 | +``` |
| 57 | + |
| 58 | + |
| 59 | + |
| 60 | +## How-to run and test with Bitbucket Server locally (deprecated) |
19 | 61 |
|
20 | 62 | * [Install the Atlassian SDK on Linux or Mac](https://developer.atlassian.com/server/framework/atlassian-sdk/install-the-atlassian-sdk-on-a-linux-or-mac-system/) or [on Windows](https://developer.atlassian.com/server/framework/atlassian-sdk/install-the-atlassian-sdk-on-a-windows-system/)
|
21 | 63 | * To run 5.2.0 server: `atlas-run-standalone -u 6.3.0 --product bitbucket --version 5.2.0 --data-version 5.2.0`
|
0 commit comments