@groovy.transform.CompileStatic abstract class AbstractCloudGit extends Object implements CloudGitConfigurator
Base class for implementing common functionality for Gitlab & GitHub.
| Type | Name and description |
|---|---|
Provider<URI> |
archiveUriProvider |
String |
name |
| Constructor and description |
|---|
protected AbstractCloudGit
(ConfigCacheSafeOperations 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. |
|
protected String |
getIdentifier()Returns an identifier of an instance in the repository. |
|
protected Provider<String> |
getIdentifierProvider()Returns an identifier of an instance in the repository. |
|
Provider<String> |
getOrganisationProvider()Organisation on Git cloud service |
|
Provider<String> |
getRepositoryProvider()Repository on Git cloud service |
|
void |
setBaseUri(URI uri) |
|
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. @deprecated
Returns an identifier of an instance in the repository.
Organisation on Git cloud service
Repository on Git cloud service
Set the branch. Overrides setTag and setCommit.
branch - Anything convertible using StringTools#stringize#stringizeSet the commit to use. Overrides setTag and setBranch.
commit - Anything convertible using StringTools#stringize#stringizeSet the organisation.
org - Anything convertible using StringTools#stringize#stringizeSet the repository
repo - Anything convertible using StringTools#stringize#stringizeSet the tag. Overrides setBranch and setCommit.
tag - Anything convertible using StringTools#stringize#stringizeContent as a string
Groovy Documentation