-
Notifications
You must be signed in to change notification settings - Fork 0
SCM Bitbucket
Two distinct products behind one provider — pick the variant:
cloud (bitbucket.org) |
server (Data Center) |
|
|---|---|---|
commit_status |
✅ | ✅ |
pr_comment |
✅ (+ mode: upsert) |
✅ (create only — upsert falls back with a warning) |
Cloud — username + app password, or OAuth2:
scm:
bitbucket:
- name: bitbucket
variant: cloud
enabled: true
auth:
username:
secretRef:
name: bb-creds # key: username
app_password:
secretRef:
name: bb-creds # key: app_password
# or oauth2: { client_id, client_secret, token_url }
# grant_type defaults to client_credentials; refresh_token also supportedServer:
- name: bitbucket-dc
variant: server
enabled: true
base_url: https://bitbucket.company.example.com
auth:
secretRef:
name: bb-token # key: token (HTTP access token)scm.provider = instance name; scm.commit-sha; Cloud: scm.repo-workspace (or repo-owner) + scm.repo-name; Server: scm.repo-project + scm.repo-name; scm.pr-number for comments.
pending/running → INPROGRESS, success → SUCCESSFUL, failure/error → FAILED, canceled → STOPPED (Cloud) / FAILED (Server, which has no stopped state). The status key is the scm.context annotation (default tekton-<run-name>).
PR comment bodies are optional templates: inline string, configmapRef: {name, key}, or omitted for the built-in "Build <State> for <RunName>" body. The chart ships bitbucket-comment.tmpl as an opt-in configmapRef example. See Actions → Comment templates are optional.
Getting started
Reference
SCM providers
Notifiers
Running in production
More