Skip to content

feat: Add configurable bitbucket builds api - #467

Open
piotrkochan wants to merge 2 commits into
jenkinsci:release/1.xfrom
piotrkochan:issue-429-configurable-api
Open

feat: Add configurable bitbucket builds api#467
piotrkochan wants to merge 2 commits into
jenkinsci:release/1.xfrom
piotrkochan:issue-429-configurable-api

Conversation

@piotrkochan

@piotrkochan piotrkochan commented Aug 7, 2026

Copy link
Copy Markdown

Adds configurable Bitbucket Builds API support to the existing notifyBitbucket Pipeline step for compatiblity with the Required Builds merge check.

The updated step:

  • supports the repository-scoped Builds API available in Bitbucket 7.4 or newer
  • adds a global Bitbucket build status API setting with Legacy as the default and Builds API (Bitbucket 7.4 or newer) as the alternative
  • allows to override the global setting for each notifyBitbucket invocation with useBuildsApi: true / false
  • requires bitbucketProjectKey and repositorySlug when the Builds API is enabled
  • includes the build parent expected by Required Builds, using the multibranch project path for multibranch jobs and the job path for regular jobs
  • keeps the existing notifyBitbucket step, its configuration options, and the legacy endpoint unchanged when the Builds API is not enabled

PR also adds a Jenkins Pipeline integration test suite and runs it from GitHub Actions

image

Fixes #429 #290

Submitter checklist

  • Make sure you are opening from a topic/feature/bugfix branch (right side) and not your main branch!
  • Ensure that the pull request title represents the desired changelog entry
  • Please describe what you did
  • Link to relevant issues in GitHub or Jira
  • Link to relevant pull requests, esp. upstream and downstream changes
  • Ensure you have provided tests that demonstrate the feature works or the issue is fixed

@piotrkochan
piotrkochan marked this pull request as ready for review August 7, 2026 19:46
@piotrkochan
piotrkochan requested a review from a team as a code owner August 7, 2026 19:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Compatibility with Bitbucket's newly introduced "Required Builds"

1 participant