public class BitbucketServerRepository extends VcsRepository<BitbucketServerRepository,BitbucketServerRepositoryProperties>
description, name, oid, parent, repositoryViewer, TYPE
Constructor and Description |
---|
BitbucketServerRepository()
Specifies a Bitbucket Server repository
|
Modifier and Type | Method and Description |
---|---|
BitbucketServerRepository |
branch(String branch)
Sets a branch to check out.
|
protected BitbucketServerRepositoryProperties |
build() |
BitbucketServerRepository |
changeDetection(VcsChangeDetection vcsChangeDetection)
Sets change detection options for this repository.
|
BitbucketServerRepository |
commandTimeout(Duration commandTimeout)
Specifies how much time is given for git commands to finish.
|
BitbucketServerRepository |
commandTimeoutInMinutes(int commandTimeoutMinutes)
Specifies how much time in minutes is given for git commands to finish.
|
BitbucketServerRepository |
defaultChangeDetection()
Resets all change detection options to defaults.
|
BitbucketServerRepository |
fetchWholeRepository(boolean fetchWholeRepository)
Enforces (or not) fetching all remote refs from the repository rather than single branch.
|
BitbucketServerRepository |
lfsEnabled(boolean useLfs)
Enables/disables git lfs support.
|
BitbucketServerRepository |
mirror(BitbucketServerMirror mirror)
Sets mirror to be used for cloning repository.
|
BitbucketServerRepository |
projectKey(String projectKey)
Sets key of Bitbucket Server's project which repository belongs to.
|
BitbucketServerRepository |
remoteAgentCacheEnabled(boolean useRemoteAgentCache)
Enables/disables caching repository content on the remote and elastic agents.
|
BitbucketServerRepository |
repositorySlug(String repositorySlug)
Sets the repository slug.
|
BitbucketServerRepository |
server(ApplicationLink server)
Selects Bitbucket Server instance which hosts this repository.
|
BitbucketServerRepository |
shallowClonesEnabled(boolean useShallowClones)
Enables/disables shallow clones when checking out from the repository.
|
BitbucketServerRepository |
sshCloneUrl(String sshCloneUrl)
Sets repository url that is used for cloning the repository.
|
BitbucketServerRepository |
sshPrivateKey(String sshPrivateKey)
Sets private SSH key of the repository.
|
BitbucketServerRepository |
sshPublicKey(String sshPublicKey)
Sets public SSH key of the repository.
|
BitbucketServerRepository |
submodulesEnabled(boolean useSubmodules)
Enables/disables submodule support.
|
BitbucketServerRepository |
verboseLogs(boolean verboseLogs)
Enables/disables verbose logs from git commands.
|
description, getIdentifier, getName, getOid, humanReadableId, humanReadableType, name, oid, oid, parent, repositoryViewer
public BitbucketServerRepository()
A repository can be global, in which case any changes made to a repository are automatically applied to all plans or jobs that use that repository.
Repository can also be defined in scope of a Plan
, in which case it is only accessible in context of plan it is defined for.
public BitbucketServerRepository server(@NotNull ApplicationLink server)
server
- Bitbucket Server instanceApplicationLink
public BitbucketServerRepository projectKey(@NotNull String projectKey)
public BitbucketServerRepository repositorySlug(@NotNull String repositorySlug)
To find out what is the repository slug of your repository, open it in Bitbucket Server UI and check the URL.
public BitbucketServerRepository sshPublicKey(@NotNull String sshPublicKey)
If specified, a private key should be specified as well.
If not provided, Bamboo will attempt to generate and install new SSH keys into Bamboo Server instance. This property is required when using repository stored Specs feature.
public BitbucketServerRepository sshPrivateKey(@NotNull String sshPrivateKey)
If specified, a public key should be specified as well.
If not provided, Bamboo will attempt to generate and install new SSH keys into Bamboo Server instance. This property is required when using repository stored Specs feature.
public BitbucketServerRepository sshCloneUrl(@NotNull String sshCloneUrl)
public BitbucketServerRepository branch(@NotNull String branch)
public BitbucketServerRepository shallowClonesEnabled(boolean useShallowClones)
public BitbucketServerRepository submodulesEnabled(boolean useSubmodules)
public BitbucketServerRepository remoteAgentCacheEnabled(boolean useRemoteAgentCache)
public BitbucketServerRepository commandTimeout(Duration commandTimeout)
public BitbucketServerRepository commandTimeoutInMinutes(int commandTimeoutMinutes)
public BitbucketServerRepository verboseLogs(boolean verboseLogs)
public BitbucketServerRepository fetchWholeRepository(boolean fetchWholeRepository)
public BitbucketServerRepository lfsEnabled(boolean useLfs)
public BitbucketServerRepository defaultChangeDetection()
public BitbucketServerRepository changeDetection(@NotNull VcsChangeDetection vcsChangeDetection)
VcsChangeDetection
public BitbucketServerRepository mirror(@NotNull BitbucketServerMirror mirror)
protected BitbucketServerRepositoryProperties build()
build
in class VcsRepository<BitbucketServerRepository,BitbucketServerRepositoryProperties>
Copyright © 2018 Atlassian Software Systems Pty Ltd. All rights reserved.
View cookie preferences