Defines the API used by notifyBitbucket when useBuildsApi is not specified.

Legacy uses the commit-scoped build status endpoint: /rest/build-status/1.0/commits/{commitId}.

Builds API is available in Bitbucket Server and Data Center 7.4 or newer and uses the repository-scoped builds endpoint: /rest/api/latest/projects/{projectKey}/repos/{repositorySlug}/commits/{commitId}/builds.

The Builds API requires bitbucketProjectKey and repositorySlug. It supports additional build information and compatibility with the Required Builds merge check.

A Pipeline can override this default by setting useBuildsApi: true or useBuildsApi: false.

See the Bitbucket Builds API documentation and the Bitbucket API changelog.