Bitbucket Cloud
kind: bitbucket
On this page
Description
The Bitbucket Cloud scm plugin is used to manage git repositories hosted on Bitbucket Cloud, depending on the stage, it can be used for different purposes
source: Retrieve data from a git repository, such as a file content
condition: Ensure data exist on a git repository, such as a file content
target: Ensure data is up to date on a git repository
Parameters
Name | Type | Description | Required |
---|
CommitMessage
Updatecli uses conventional commits as describe on www.conventionnalcommits.org.
The goal is to add human and machine readable meaning to commit messages
By default, Updatecli generates a commit message using the default type "chore" and split long title message into the body like:
Author: olblak <updatecli@updatecli.io>
Date: Tue May 4 15:41:44 2021 +0200
chore: Update key "dependencies[0].version" from file "charts/jenkins/r...
... equirements.yaml"
Made with ❤️️ by updatecli
Example
# updatecli.yaml
name: "Example with Bitbucket Cloud SCM"
pipelineid: bitbucket/scm
scms:
bitbucket:
kind: bitbucket
spec:
owner: "updatecli"
repository: "updatecli"
branch: main
# {{ if (env "BITBUCKET_TOKEN") }}
token: '{{ env "BITBUCKET_TOKEN" }}'
# {{ else if (and (env "BITBUCKET_USER") (env "BITBUCKET_APP_PASSWORD")) }}
username: '{{ env "BITBUCKET_USER" }}'
password: '{{ env "BITBUCKET_APP_PASSWORD" }}'
# {{ end }}
sources:
source-1:
name: "Source 1"
kind: file
scmid: bitbucket
spec:
file: README.md
conditions:
condition-1:
name: "Condition 1"
kind: file
scmid: bitbucket
spec:
file: README.md
targets:
target-1:
name: "Target 1"
kind: file
scmid: bitbucket
spec:
file: README.md