• Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • using the latest release: 1.0.3

      here is the error message:

       
      10:44:50 Bitbucket Approve: 409 - Conflict*

      10:44:50 ERROR: Build step failed with exception

      10:44:50*

      java.lang.IllegalStateException: closed*

      10:44:50* at com.squareup.okhttp.internal.http.HttpConnection$FixedLengthSource.read(HttpConnection.java:455)

      10:44:50 at okio.Buffer.writeAll(Buffer.java:594)

      10:44:50 at okio.RealBufferedSource.readByteArray(RealBufferedSource.java:87)

      10:44:50 at com.squareup.okhttp.ResponseBody.bytes(ResponseBody.java:56)

      10:44:50 at com.squareup.okhttp.ResponseBody.string(ResponseBody.java:82)

      10:44:50 at org.jenkinsci.plugins.bitbucket_approve.BitbucketApprover.perform(BitbucketApprover.java:106)

      10:44:50 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)

      10:44:50 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:736)

      10:44:50 at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:682)

      10:44:50 at hudson.model.Build$BuildExecution.post2(Build.java:186)

      10:44:50 at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:627)

      10:44:50 at hudson.model.Run.execute(Run.java:1754)

      10:44:50 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)

      10:44:50 at hudson.model.ResourceController.execute(ResourceController.java:97)

      10:44:50 at hudson.model.Executor.run(Executor.java:419)

      10:44:50 Build step 'Approve commit on Bitbucket' marked build as failure

          [JENKINS-46681] Failure in case of approved commit

          James Dynes added a comment - - edited

           I raised this with Bitbucket
          https://getsupport.atlassian.com/servicedesk/customer/portal/11/BBS-62500

           

          Thank you for contacting Atlassian Support in regards to the issue that you're facing.
          Based on our observation, the error 409 that you're receiving is meant to provide an update that the commit is already approved by the authenticated user.
          Below is the error message which should be included with error code:
          {"type": "error", "error": {"message": "You already approved this commit."}}
          With this status code respond, it would help users to identify whether the authenticated user had approved the commit.
          Hope this explains. 
          Nonetheless, if you wish to have this changes be reverted, we would suggest submitting a request with a link below so that our dev team is aware of it: https://bitbucket.org/site/master/issues
          Please do note that all new features will be implemented according to our policy:
          https://confluence.atlassian.com/display/Support/Implementation+of+New+Features+Policy
          If you need any further assistance, please feel free to let me know.

          James Dynes added a comment - - edited  I raised this with Bitbucket https://getsupport.atlassian.com/servicedesk/customer/portal/11/BBS-62500   Thank you for contacting Atlassian Support in regards to the issue that you're facing. Based on our observation, the error 409 that you're receiving is meant to provide an update that the commit is already approved by the authenticated user. Below is the error message which should be included with error code: {"type": "error", "error": {"message": "You already approved this commit."}} With this status code respond, it would help users to identify whether the authenticated user had approved the commit. Hope this explains.  Nonetheless, if you wish to have this changes be reverted, we would suggest submitting a request with a link below so that our dev team is aware of it: https://bitbucket.org/site/master/issues Please do note that all new features will be implemented according to our policy: https://confluence.atlassian.com/display/Support/Implementation+of+New+Features+Policy If you need any further assistance, please feel free to let me know.

          Link does not work.

          Rohan Kushwaha added a comment - Link does not work.

          James Dynes added a comment -

          Yes, that's why I copied the response above.

          James Dynes added a comment - Yes, that's why I copied the response above.

            bhurling Björn Hurling
            arnoldvakaria Arnold Vakaria
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: