@groovy.transform.CompileStatic abstract class AbstractCloudGit
Base class for implementing common functionality for GitLab & GitHub
Type | Name and description |
---|---|
URI |
baseUri |
String |
organisation |
String |
repository |
Constructor and description |
---|
protected AbstractCloudGit
(String name, String baseUri) Constructs a representation of a cloud Git provider |
Type Params | Return Type | Name and description |
---|---|---|
|
protected 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 |
Calculates 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 org.ysb33r.grolifant.api.StringUtils#stringizeSet the commit to use. Overrides setTag and setBranch.
commit
- Anything convertible using org.ysb33r.grolifant.api.StringUtils#stringizeSet the organisation.
org
- Anything convertible using org.ysb33r.grolifant.api.StringUtils#stringizeSet the repository
repo
- Anything convertible using org.ysb33r.grolifant.api.StringUtils#stringizeSet the tag. Overrides setBranch and setCommit.
tag
- Anything convertible using org.ysb33r.grolifant.api.StringUtils#stringizeContent as a string
Groovy Documentation