If a build is configured to notify BitBucket when the build starts, and the build is then aborted, the BitBucket build status remains as 'In Progress'.

      If another build of the same project is started for the same commit, a new build is started in BitBucket, but the status remains as 'In Progress.

      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 aborted build as failed, and to overwrite the build status when another project build job starts for the same commit.

          [JENKINS-32940] Aborted builds remain in progress in BitBucket

          Hi andrewmatthews first thanks for your contribution. Your suggestion is really good and make totally sense, therefore I already implemented what you suggested and created a pull request as well and will be released very soon.

          Greetings

          Antonio Mansilla added a comment - Hi andrewmatthews first thanks for your contribution. Your suggestion is really good and make totally sense, therefore I already implemented what you suggested and created a pull request as well and will be released very soon. Greetings

          Code changed in jenkins
          User: Antonio Mansilla
          Path:
          src/main/java/org/jenkinsci/plugins/bitbucket/BitbucketBuildStatusNotifier.java
          src/main/java/org/jenkinsci/plugins/bitbucket/model/BitbucketBuildStatus.java
          http://jenkins-ci.org/commit/bitbucket-build-status-notifier-plugin/223807242da4a7259e92fa57fee460f673f8c32c
          Log:
          [Fix JENKINS-32940] Update bitbucket status resource if prev build was aborted

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Antonio Mansilla Path: src/main/java/org/jenkinsci/plugins/bitbucket/BitbucketBuildStatusNotifier.java src/main/java/org/jenkinsci/plugins/bitbucket/model/BitbucketBuildStatus.java http://jenkins-ci.org/commit/bitbucket-build-status-notifier-plugin/223807242da4a7259e92fa57fee460f673f8c32c Log: [Fix JENKINS-32940] Update bitbucket status resource if prev build was aborted

          Code changed in jenkins
          User: Antonio Mansilla
          Path:
          src/main/java/org/jenkinsci/plugins/bitbucket/BitbucketBuildStatusNotifier.java
          src/main/java/org/jenkinsci/plugins/bitbucket/model/BitbucketBuildStatus.java
          http://jenkins-ci.org/commit/bitbucket-build-status-notifier-plugin/15ee3f5d55571e73f85370f0594897aa119c331c
          Log:
          Merge pull request #13 from Flagbit/update-build-status-on-abortion

          [Fix JENKINS-32940] Update bitbucket status resource on build abort

          Compare: https://github.com/jenkinsci/bitbucket-build-status-notifier-plugin/compare/faae72c4f1cb...15ee3f5d5557

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Antonio Mansilla Path: src/main/java/org/jenkinsci/plugins/bitbucket/BitbucketBuildStatusNotifier.java src/main/java/org/jenkinsci/plugins/bitbucket/model/BitbucketBuildStatus.java http://jenkins-ci.org/commit/bitbucket-build-status-notifier-plugin/15ee3f5d55571e73f85370f0594897aa119c331c Log: Merge pull request #13 from Flagbit/update-build-status-on-abortion [Fix JENKINS-32940] Update bitbucket status resource on build abort Compare: https://github.com/jenkinsci/bitbucket-build-status-notifier-plugin/compare/faae72c4f1cb...15ee3f5d5557

            flagbit Antonio Mansilla
            andrewmatthews Andrew Matthews
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: