class BitbucketSCMProvider
This class implements the Bitbucket SCM Provider.
Modifiers | Name | Description |
---|---|---|
private java.lang.String |
bitbucketEndpoint |
|
private java.lang.String |
bitbucketEndpointContext |
|
private java.lang.String |
bitbucketPassword |
|
private int |
bitbucketPort |
|
private BitbucketSCMProtocol |
bitbucketProtocol |
|
private java.lang.String |
bitbucketUsername |
|
private int |
scmPort |
|
private BitbucketSCMProtocol |
scmProtocol |
Constructor and description |
---|
BitbucketSCMProvider
(int scmPort, BitbucketSCMProtocol scmProtocol, java.lang.String bitbucketEndpoint, java.lang.String bitbucketEndpointContext, BitbucketSCMProtocol bitbucketProtocol, int bitbucketPort) Constructor for class BitbucketSCMProvider. |
Type Params | Return Type | Name and description |
---|---|---|
|
void |
createScmRepos(java.lang.String workspace, java.lang.String repoNamespace, java.lang.String codeReviewEnabled, java.lang.String overwriteRepos) Creates relevant repositories defined by your cartridge in your chosen SCM provider |
|
groovy.lang.Closure |
get(java.lang.String projectName, java.lang.String repoName, java.lang.String branchName, java.lang.String credentialId, groovy.lang.Closure extras) Return SCM section. |
|
groovy.lang.Closure |
getMultibranch(java.lang.String projectName, java.lang.String repoName, java.lang.String credentialId, groovy.lang.Closure extras) Return a closure representation of the SCM section for multibranch pipelines. |
|
java.lang.String |
getScmUrl() Return Bitbucket SCM URL. |
|
groovy.lang.Closure |
trigger(java.lang.String projectName, java.lang.String repoName, java.lang.String branchName) Return a closure representation of the SCM providers trigger SCM section. |
|
private java.lang.String |
urlEncode(java.lang.String value) Return a url encoded value |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Constructor for class BitbucketSCMProvider.
scmPort
- scm portscmProtocol
- scm clone protocolbitbucketEndpoint
- host url e.g. 10.0.0.1, innersource.accenture.combitbucketEndpointContext
- bitbucket host endpoint context.bitbucketProtocol
- protocol which will be used for HTTP requests.bitbucketPort
- bitbucket API port.Creates relevant repositories defined by your cartridge in your chosen SCM provider
workspace
- Workspace of the cartridge loader jobrepoNamespace
- Location in your SCM provider where your repositories will be createdReturn SCM section.
projectName
- - name of the project.repoName
- - name of the repository to clone.branchName
- - name of branch.credentialId
- - name of the credential in the Jenkins credential
manager to use.extras
- - extra closures to add to the SCM section.Return a closure representation of the SCM section for multibranch pipelines.
projectName
- - name of the project.repoName
- - name of the repository to checkout.credentialId
- - name of the credential in the Jenkins credential
manager to use.extras
- - extra closures to add to the multibranch SCM section.Return Bitbucket SCM URL.
Return a closure representation of the SCM providers trigger SCM section.
projectName
- - project name.repoName
- - repository name.branchName
- - branch name to trigger.Return a url encoded value
value
- string to encode.