This interfaces defines the specification of an SCMProvider.
| 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 the 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 a closure representation of 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. |
|
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. |
Creates the 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 a closure representation of SCM section.
projectName - - name of the project.repoName - - name of the repository to checkout.branchName - - name of the branch to checkout.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 a closure representation of the SCM providers trigger SCM section.
projectName - - name of the project.repoName - - name of the repository to checkout.branchName - - name of the branch checkout on ref updates.