Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

POST Commit Build status

Fedir Kompaniiets
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 17, 2018

Hello, 

I can't POST commit build status with bitbucket API.

My request is looks like:

{"state": "FAILED", "key": "TEST", "url": "https://jenkins.com/browse/REPO-MASTER-42"}

I sen POS request to:

https://api.bitbucket.org/2.0/repositories/<user>/<repo>/commit/<coomit_hash>/statuses/build

 

But in respond I can see just:

 

{

  "type": "error",

  "error": {

    "fields": {

      "url": [

        "This field is required."

      ],

      "state": [

        "This field is required.",

        "\"state\" must be one of set(['SUCCESSFUL', 'FAILED', 'INPROGRESS', 'STOPPED'])"

      ],

      "key": [

        "This field is required."

      ]

    },

    "message": "Bad request"

  }

}

 

 

 

I'm not sure what exactly I'm doing wrong.

Any suggestions??

 

Thanks a lot 

1 answer

0 votes
Markus Siemer
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 28, 2018

try "build" as key

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events