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
try "build" as key
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.