addRepository

See also: Actions

Description

Add a global or plan repository. If both a name and repository are provided, the name will be used for the Bamboo name and repository will be used for the Bitbucket repository. For a plan repository, you can reference a linked (global) repository. Otherwise a valid repository key or alias is required. Valid aliases are: BITBUCKET, BITBUCKET_CLOUD, BITBUCKET_SERVER, STASH, BCVS, GIT, GITHUB, MERCURIAL, PERFORCE, SUBVERSION. If the credentials parameter is provided the appropriate fields will be added automatically for GIT, Mercurial, and Bitbucket Cloud repositories.

Required Parameters

repository or name

Optional Parameters

plan, repositoryKey, credentials, type, branch, continue, replace, field, field1, value1, field2, value2

Type

Create

Category

Repositories

Output Formats

Replacement Variables

Since Version

Examples

addRepository

Related How To's