public class BitbucketServerRepository extends VcsRepository<BitbucketServerRepository,BitbucketServerRepositoryProperties>
description, name, oid, parent, project, repositoryViewer, TYPE
Constructor and Description |
---|
BitbucketServerRepository()
Specifies a Bitbucket Server repository
|
Modifier and Type | Method and Description |
---|---|
BitbucketServerRepository |
branch(@NotNull String branch)
Sets a branch to check out.
|
protected BitbucketServerRepositoryProperties |
build() |
BitbucketServerRepository |
changeDetection(@NotNull 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(@NotNull BitbucketServerMirror mirror)
Sets mirror to be used for cloning repository.
|
BitbucketServerRepository |
projectKey(@NotNull 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(@NotNull String repositorySlug)
Sets the repository slug.
|
BitbucketServerRepository |
server(@NotNull 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(@NotNull String sshCloneUrl)
Sets repository url that is used for cloning the repository.
|
BitbucketServerRepository |
sshKeyAppliesToSubmodules(boolean sshKeyAppliesToSubmodules)
Enables/disabled authenticating to submodules with SSH key configured for this repository.
|
BitbucketServerRepository |
sshPrivateKey(@NotNull String sshPrivateKey)
Sets private SSH key of the repository.
|
BitbucketServerRepository |
sshPublicKey(@NotNull 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, project, 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 @NotNull ApplicationLink server)
server
- Bitbucket Server instanceApplicationLink
public BitbucketServerRepository projectKey(@NotNull @NotNull String projectKey)
public BitbucketServerRepository repositorySlug(@NotNull @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 @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 @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 @NotNull String sshCloneUrl)
public BitbucketServerRepository branch(@NotNull @NotNull String branch)
public BitbucketServerRepository shallowClonesEnabled(boolean useShallowClones)
public BitbucketServerRepository submodulesEnabled(boolean useSubmodules)
public BitbucketServerRepository sshKeyAppliesToSubmodules(boolean sshKeyAppliesToSubmodules)
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 @NotNull VcsChangeDetection vcsChangeDetection)
VcsChangeDetection
public BitbucketServerRepository mirror(@NotNull @NotNull BitbucketServerMirror mirror)
protected BitbucketServerRepositoryProperties build()
build
in class VcsRepository<BitbucketServerRepository,BitbucketServerRepositoryProperties>
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.