Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-75116

Jenkins build notifications creates a new build state instead of updating the existing one on Bitbucket

      Successful builds after a failed build on the same commit, are send to Jenkins, but do not mark the build in Bitbucket as complete.
      The builds are shown as two individual builds with the failed one sorted higher.

      This appeared after https://issues.jenkins.io/browse/JENKINS-75083

      Happens on Bitbucket Server v8.19.8

       

          [JENKINS-75116] Jenkins build notifications creates a new build state instead of updating the existing one on Bitbucket

          Carsten created issue -

          Nikolas Falco added a comment - - edited

          For bitbucket server we have replace deprecated endpoint with new one. This means that PR started with older plugin version could be recognized by the server as different because we valued the refname attribute.
          By the atlassian documentation refname should not be part of the build status notification but at least on cloud seems to be so, that why it duplicates build status notification (when I test it).
          If this happens also for fresh new PRs than I will investigate otherwise I will close the issue. Let me know.

          EDIT: I suppose this is the cause because new PR post additional informations like build duration that I see in the second build status. Instead the first build status does not have

          Nikolas Falco added a comment - - edited For bitbucket server we have replace deprecated endpoint with new one. This means that PR started with older plugin version could be recognized by the server as different because we valued the refname attribute. By the atlassian documentation refname should not be part of the build status notification but at least on cloud seems to be so, that why it duplicates build status notification (when I test it). If this happens also for fresh new PRs than I will investigate otherwise I will close the issue. Let me know. EDIT: I suppose this is the cause because new PR post additional informations like build duration that I see in the second build status. Instead the first build status does not have
          Nikolas Falco made changes -
          Priority Original: Major [ 3 ] New: Minor [ 4 ]
          Nikolas Falco made changes -
          Link New: This issue is caused by JENKINS-75083 [ JENKINS-75083 ]

          Nikolas Falco added a comment -

          As workaround you can decline the PR and reopen

          Nikolas Falco added a comment - As workaround you can decline the PR and reopen
          Nikolas Falco made changes -
          Summary Original: Successful Build Notifications from Jenkins do not count as success on Bitbucket New: Jenkins build notifications creates a new build state instead of updating the existing one on Bitbucket

          Carsten added a comment -

          Thank You I will check.

          Carsten added a comment - Thank You I will check.

          Carsten added a comment -

          We checked and found actually a hidden manual notification call on our side using the old endpoint.
          I guess that issue was then caused by our code.

          Sorry for the inconvenience and thx for your quick reply.

          Carsten added a comment - We checked and found actually a hidden manual notification call on our side using the old endpoint. I guess that issue was then caused by our code. Sorry for the inconvenience and thx for your quick reply.
          Nikolas Falco made changes -
          Resolution New: Not A Defect [ 7 ]
          Status Original: Open [ 1 ] New: Closed [ 6 ]

            nfalco Nikolas Falco
            sol23 Carsten
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: