Bitbucket File

Bitbucket file artifacts are references to files stored in Bitbucket . They are generally consumed by stages that read configuration from text files, such as a Deploy Manifest stage.

Fields

FieldExplanation
typeAlways bitbucket/file.
referenceThe full path including filename for retrieval via the Bitbucket API. https://api.bitbucket.org/2.0/repositories/$ORG/$REPO/src/$VERSION/$FILEPATH. For more info, see the documentation here .
nameThe file path within your repo. path/to/file.yml is an example.
versionN/A. Must be specified in reference.
locationN/A

Example

{
  "type": "bitbucket/file",
  "reference": "https://api.bitbucket.org/2.0/repositories/org/repo/src/master/manifests/config.yaml",
  "name": "manifests/config.yaml"
}
Last modified May 4, 2021: more cleanup (0281411)