class GerritSCMProvider
This class implements the Gerrit SCM Provider.
| Modifiers | Name | Description |
|---|---|---|
private java.lang.String |
gerritEndpoint |
|
private java.lang.String |
gerritPermissions |
|
private java.lang.String |
gerritPermissionsWithReview |
|
private int |
gerritPort |
|
private java.lang.String |
gerritUser |
|
private java.lang.String |
scmCodeReviewEnabled |
|
private java.lang.String |
scmGerritCloneUser |
|
private java.lang.String |
scmGerritServerProfile |
|
private java.lang.String |
scmHost |
|
private int |
scmPort |
|
private GerritSCMProtocol |
scmProtocol |
| Constructor and description |
|---|
GerritSCMProvider
(java.lang.String scmHost, int scmPort, GerritSCMProtocol scmProtocol, java.lang.String scmGerritServerProfile, java.lang.String scmGerritCloneUser, java.lang.String scmCodeReviewEnabled, java.lang.String gerritEndpoint, java.lang.String gerritUser, int gerritPort, java.lang.String gerritPermissions, java.lang.String gerritPermissionsWithReview)Constructor for class GerritSCMProvider. |
| 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 |
getScmGerritProfile()Returns a String representation of the Gerrit server profile name. |
|
java.lang.String |
getScmUrl()Return Gerrit 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. |
| 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 GerritSCMProvider.
scmHost - scm url e.g. 10.0.0.1, gerrit.adop.examplescmPort - scm portscmProtocol - scm clone protocolscmGerritProfile - scm Gerrit profilescmGerritCloneUser - scm gerrit clone user. Must be set of the SCM protocol is set to SSH.scmCodeReviewEnabled - true if code reviewed enabled else false.gerritEndpoint - gerrit host endpoint.gerritUser - gerrit API user.gerritPort - gerrit API port.gerritPermissions - gerrit permissions repository name.gerritPermissionsWithReview - gerrit permissions with review repository name.Creates relevant repositories defined by your cartridge in your chosen SCM provider
workspace - Workspace of the cartridge loader jobnamespace - Location in your SCM provider where your repositories will be createdoverwriteRepos - Whether the contents of your created repositories are over-written or notReturn 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.Returns a String representation of the Gerrit server profile name.
Return Gerrit SCM URL.
Return a closure representation of the SCM providers trigger SCM section.
projectName - - project name.repoName - - repository name.branchName - - branch name to trigger.