This resource sends a build status payload to bitbucket to signify the status of a commit.
username
: Required. Username to bitbucket account with access to the repository being worked with.password
: Required. Password (or App Password) to bitbucket account with access to the repository being worked with.
no-op function
no-op function
status
: Required. Can be one of[ 'INPROGRESS', 'SUCCESSFUL', 'FAILED', 'STOPPED' ]
project
: Required. Bitbucket repository owner (organization account slug, or user account slug).repository
: Required. Bitbucket repository slug.
resource_types:
- name: bitbucket-build-notification-resource
type: docker-image
source:
repository: mperrotte/bitbucket-build-notification-resource
resources:
- name: build-notify
type: bitbucket-build-notification-resource
source:
username: ((bitbucket-username))
password: ((bitbucket-password))
resources:
- name: pipeline-generator
type: pipeline-resource
source:
target: http://localhost:8080
teams:
- name: main
username: concourse
password: changeme
- name: other_team
username: other_concourse
password: other_changeme
plan:
- get: some-git-resource
- task: build-testing
file: some-git-resource/task/file.yml
on_success:
put: build-notify
params:
status: SUCCESSFUL
project: ((bitbucket-repository-owner))
repository: ((bitbucket-repository-name))
on_failuer:
put: build-notify
params:
status: FAILED
project: ((bitbucket-repository-owner))
repository: ((bitbucket-repository-name))
on_abort:
put: build-notify
params:
status: STOPPED
project: ((bitbucket-repository-owner))
repository: ((bitbucket-repository-name))