public class BitbucketCloudRepository extends VcsRepository<BitbucketCloudRepository,BitbucketCloudRepositoryProperties>
description, name, oid, parent, repositoryViewer, TYPE
Constructor and Description |
---|
BitbucketCloudRepository() |
Modifier and Type | Method and Description |
---|---|
BitbucketCloudRepository |
accountAuthentication(SharedCredentialsIdentifier sharedCredentialsIdentifier)
Selects a previously defined
SharedCredentials to configure account authentication with bitbucket.org |
BitbucketCloudRepository |
accountAuthentication(UserPasswordAuthentication userPasswordAuthentication)
Specifies username/password Bitbucket Cloud account authentication.
|
BitbucketCloudRepository |
branch(String branch)
Sets a branch to check out.
|
protected BitbucketCloudRepositoryProperties |
build() |
BitbucketCloudRepository |
changeDetection(VcsChangeDetection vcsChangeDetection)
Sets change detection options for this repository.
|
BitbucketCloudRepository |
checkoutAuthentication(SharedCredentialsIdentifier sharedCredentialsIdentifier)
Selects a previously defined
SharedCredentials which will be used to checkout repository from Bitbucket Cloud. |
BitbucketCloudRepository |
checkoutAuthentication(SshPrivateKeyAuthentication sshPrivateKeyAuthentication)
Specifies SSH private key which will be used to checkout repository from Bitbucket Cloud.
|
BitbucketCloudRepository |
commandTimeout(Duration commandTimeout)
Specifies how much time is given for git commands to finish.
|
BitbucketCloudRepository |
commandTimeoutInMinutes(int commandTimeoutMinutes)
Specifies how much time in minutes is given for git commands to finish.
|
BitbucketCloudRepository |
defaultChangeDetection()
Resets all change detection options to defaults.
|
BitbucketCloudRepository |
fetchWholeRepository(boolean fetchWholeRepository)
Enforces (or not) fetching all remote refs from the repository rather than single branch.
|
BitbucketCloudRepository |
lfsEnabled(boolean useLfs)
Enables/disables git lfs support.
|
BitbucketCloudRepository |
remoteAgentCacheEnabled(boolean useRemoteAgentCache)
Enables/disables caching repository content on the remote and elastic agents.
|
BitbucketCloudRepository |
repositorySlug(String owner,
String repositorySlug)
Sets the Bitbucket repository slug to checkout.
|
BitbucketCloudRepository |
shallowClonesEnabled(boolean useShallowClones)
Enables/disables shallow clones when checking out from the repository.
|
BitbucketCloudRepository |
submodulesEnabled(boolean useSubmodules)
Enables/disables submodule support.
|
BitbucketCloudRepository |
verboseLogs(boolean verboseLogs)
Enables/disables verbose logs from git commands.
|
description, getIdentifier, getName, getOid, humanReadableId, humanReadableType, name, oid, oid, parent, repositoryViewer
public BitbucketCloudRepository() throws PropertiesValidationException
PropertiesValidationException
public BitbucketCloudRepository repositorySlug(@NotNull String owner, @NotNull String repositorySlug)
Sets the Bitbucket repository slug to checkout. A repository slug is a URL-friendly version of a repository name, automatically generated by Bitbucket Cloud for use in the URL.
This field is required and it must represents existing Bitbucket Cloud repository.
public BitbucketCloudRepository branch(@NotNull String branch)
public BitbucketCloudRepository shallowClonesEnabled(boolean useShallowClones)
Enables/disables shallow clones when checking out from the repository. With shallow clones on, Bamboo fetches the shallowest commit history possible. Do not use if your build depends on full repository history.
Shallow clones are switched off by default.
Option does nothing with Mercurial type of repository.
public BitbucketCloudRepository submodulesEnabled(boolean useSubmodules)
Option does nothing with Mercurial type of repository.
public BitbucketCloudRepository remoteAgentCacheEnabled(boolean useRemoteAgentCache)
Enables/disables caching repository content on the remote and elastic agents. Bamboo uses caching to reduce bandwidth needed when retrieving source code from the repository.
The feature is turned on by default in Git repositories
Option does nothing with Mercurial type of repository.
public BitbucketCloudRepository commandTimeout(Duration commandTimeout)
public BitbucketCloudRepository commandTimeoutInMinutes(int commandTimeoutMinutes)
public BitbucketCloudRepository verboseLogs(boolean verboseLogs)
public BitbucketCloudRepository fetchWholeRepository(boolean fetchWholeRepository)
public BitbucketCloudRepository lfsEnabled(boolean useLfs)
Option does nothing with Mercurial type of repository.
public BitbucketCloudRepository defaultChangeDetection()
public BitbucketCloudRepository changeDetection(VcsChangeDetection vcsChangeDetection)
VcsChangeDetection
public BitbucketCloudRepository accountAuthentication(@NotNull SharedCredentialsIdentifier sharedCredentialsIdentifier)
Selects a previously defined SharedCredentials
to configure account authentication with bitbucket.org
Currently only username/password credentials are supported.
public BitbucketCloudRepository accountAuthentication(@NotNull UserPasswordAuthentication userPasswordAuthentication)
Specifies username/password Bitbucket Cloud account authentication.
The password can be defined in both Bamboo-encrypted and plain format.
public BitbucketCloudRepository checkoutAuthentication(@NotNull SharedCredentialsIdentifier sharedCredentialsIdentifier)
Selects a previously defined SharedCredentials
which will be used to checkout repository from Bitbucket Cloud.
Currently SSH credentials are supported.
If checkout authentication is not configured, the accountAuthentication will be used.
public BitbucketCloudRepository checkoutAuthentication(@NotNull SshPrivateKeyAuthentication sshPrivateKeyAuthentication)
Specifies SSH private key which will be used to checkout repository from Bitbucket Cloud. If checkout authentication is not configured, the accountAuthentication will be used.
The key and passphrase can be defined in both Bamboo-encrypted and plain format.
protected BitbucketCloudRepositoryProperties build() throws PropertiesValidationException
build
in class VcsRepository<BitbucketCloudRepository,BitbucketCloudRepositoryProperties>
PropertiesValidationException
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.