-
Notifications
You must be signed in to change notification settings - Fork 354
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Developer/DevOps notes to the README.MD
- Loading branch information
Showing
1 changed file
with
43 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,49 @@ | |
* 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). | ||
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. | ||
|
||
## How-to run and test with Bitbucket Server locally | ||
## Developers and DevOps notes | ||
|
||
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)`. | ||
|
||
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. | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
nfalco79
Author
Member
|
||
|
||
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). | ||
|
||
Compliant example: | ||
|
||
``` | ||
multibranch: | ||
branchSource: | ||
bitbucket: | ||
repoOwner: 'organization' | ||
repository: 'repository' | ||
credentialsId: 'bitbucket-credentials' | ||
traits: | ||
- bitbucketBranchDiscovery: | ||
strategyId: 1 | ||
- bitbucketSshCheckout: | ||
credentialsId: 'bitbucket-ssh-credentials' | ||
``` | ||
|
||
Noncompliant code example: | ||
|
||
``` | ||
multibranch: | ||
branchSource: | ||
bitbucket: | ||
repoOwner: 'organization' | ||
repository: 'repository' | ||
credentialsId: 'bitbucket-credentials' | ||
traits: | ||
- $class: 'BranchDiscoveryTrait' | ||
strategyId: 1 | ||
- $class: 'com.cloudbees.jenkins.plugins.bitbucket.SSHCheckoutTrait': | ||
credentialsId: 'bitbucket-ssh-credentials' | ||
``` | ||
|
||
|
||
|
||
## How-to run and test with Bitbucket Server locally (deprecated) | ||
|
||
* [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/) | ||
* To run 5.2.0 server: `atlas-run-standalone -u 6.3.0 --product bitbucket --version 5.2.0 --data-version 5.2.0` |
I filed JENKINS-74987 to request a public API for reading some properties of
com.cloudbees.jenkins.plugins.bitbucket.BitbucketSCMSource
.