JENKINS-32940 extended the Bitbucket added build status notifier both with handling of aborted builds If a build is configured to notify BitBucket when the build starts, by reporting them as {{FAILED}} and the build is then aborted with complexity surrounding retried builds. However, [ the BitBucket build status remains as 'In Progress' API|https://developer.
This appears to be caused by the unique Jenkins build ID being used in the build key supplied to BitBucket.
It would be preferable to mark an that seems far more appropriate for aborted build as failed builds. In Bitbucket's own CI service, and to overwrite Bitbucket Pipelines, {{STOPPED}} is the build status applied when another project stopping/cancelling/aborting an in-progress build job starts for the same commit.
JENKINS-32940 extended the Bitbucket build status notifier both with handling of aborted builds by reporting them as {{FAILED}} and with complexity surrounding retried builds. However, [the API|https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Busername%7D/%7Brepo_slug%7D/commit/%7Bnode%7D/statuses] supports another state, {{STOPPED}}, that seems far more appropriate for aborted builds. In Bitbucket's own CI service, Bitbucket Pipelines, {{STOPPED}} is the status applied when stopping/cancelling/aborting an in-progress build.