public class GitHubRepository extends VcsRepository<GitHubRepository,GitHubRepositoryProperties>
description, name, oid, parent, repositoryViewer, TYPE
Constructor and Description |
---|
GitHubRepository() |
Modifier and Type | Method and Description |
---|---|
GitHubRepository |
authentication(UserPasswordAuthentication userPasswordAuthentication)
Specifies username/access token authentication.
|
GitHubRepository |
baseUrl(String baseUrl)
Checks base Url.
|
GitHubRepository |
branch(String branch)
Sets branch to check out.
|
protected GitHubRepositoryProperties |
build() |
GitHubRepository |
changeDetection(VcsChangeDetection vcsChangeDetection)
Sets change detection options for this repository.
|
GitHubRepository |
commandTimeout(Duration commandTimeout)
Specifies how much time is given for git commands to finish.
|
GitHubRepository |
commandTimeoutInMinutes(int commandTimeoutMinutes)
Specifies how much time in minutes is given for git commands to finish.
|
GitHubRepository |
defaultChangeDetection()
Resets all change detection options to defaults.
|
GitHubRepository |
fetchWholeRepository(boolean fetchWholeRepository)
Enforces (or not) fetching all remote refs from the repository rather than single branch.
|
GitHubRepository |
lfsEnabled(boolean useLfs)
Enables/disables git lfs support.
|
GitHubRepository |
remoteAgentCacheEnabled(boolean useRemoteAgentCache)
Enables/disables caching repository content on the remote and elastic agents.
|
GitHubRepository |
repository(String repository)
Sets gitHub repository name.
|
GitHubRepository |
shallowClonesEnabled(boolean useShallowClones)
Enables/disables shallow clones when checking out from the repository.
|
GitHubRepository |
submodulesEnabled(boolean useSubmodules)
Enables/disables submodule support.
|
GitHubRepository |
verboseLogs(boolean verboseLogs)
Enables/disables verbose logs from git commands.
|
description, getIdentifier, getName, getOid, humanReadableId, humanReadableType, name, oid, oid, parent, repositoryViewer
public GitHubRepository repository(@NotNull String repository)
repository
- repository name.public GitHubRepository branch(@NotNull String branch)
public GitHubRepository authentication(@NotNull UserPasswordAuthentication userPasswordAuthentication)
public GitHubRepository shallowClonesEnabled(boolean useShallowClones)
public GitHubRepository submodulesEnabled(boolean useSubmodules)
public GitHubRepository remoteAgentCacheEnabled(boolean useRemoteAgentCache)
public GitHubRepository commandTimeout(Duration commandTimeout)
public GitHubRepository commandTimeoutInMinutes(int commandTimeoutMinutes)
public GitHubRepository verboseLogs(boolean verboseLogs)
public GitHubRepository fetchWholeRepository(boolean fetchWholeRepository)
public GitHubRepository lfsEnabled(boolean useLfs)
public GitHubRepository defaultChangeDetection()
public GitHubRepository baseUrl(String baseUrl)
public GitHubRepository changeDetection(@NotNull VcsChangeDetection vcsChangeDetection)
VcsChangeDetection
protected GitHubRepositoryProperties build() throws PropertiesValidationException
build
in class VcsRepository<GitHubRepository,GitHubRepositoryProperties>
PropertiesValidationException
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.