@groovy.transform.CompileStatic abstract class AbstractCloudGit extends Object implements CloudGitConfigurator
Base class for implementing common functionality for Gitlab & GitHub.
Type | Name and description |
---|---|
URI |
baseUri |
String |
organisation |
String |
repository |
Constructor and description |
---|
protected AbstractCloudGit
(ProjectOperations po, String name, String baseUri) Constructs a representation of a cloud Git provider |
Type Params | Return Type | Name and description |
---|---|---|
|
protected abstract String |
getArchivePath() Calculates an archive path for the specific repository type. |
|
URI |
getArchiveUri() Obtains the URI for the archive of the repository. |
|
protected String |
getIdentifier() Returns an identifier of an instance in the repository. |
|
String |
getName() Obtains the name of the Git service. |
|
String |
getOrganisation() Get the organisation |
|
String |
getRepository() Get the repository |
|
void |
setBranch(Object branch) Set the branch. |
|
void |
setCommit(Object commit) Set the commit to use. |
|
void |
setOrganisation(Object org) Set the organisation. |
|
void |
setRepository(Object repo) Set the repository |
|
void |
setTag(Object tag) Set the tag. |
|
String |
toString() Content as a string |
Constructs a representation of a cloud Git provider
name
- Name of providerbaseUri
- Base URI to access providerCalculates an archive path for the specific repository type.
Returns an identifier of an instance in the repository.
Get the organisation
Get the repository
Set the branch. Overrides setTag and setCommit.
branch
- Anything convertible using StringTools.stringizeSet the commit to use. Overrides setTag and setBranch.
commit
- Anything convertible using StringTools.stringizeSet the organisation.
org
- Anything convertible using StringTools.stringizeSet the repository
repo
- Anything convertible using StringTools.stringizeSet the tag. Overrides setBranch and setCommit.
tag
- Anything convertible using StringTools.stringizeContent as a string
Groovy Documentation