Forums

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

Why is the required builds merge check still failing after a successful build?

Shevangi
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!
January 8, 2026
However even after following the inputs given in the response. I am not able to add the parent field.
shesh@xxxxx:~$ curl -u shesh:$BIT_PASS   -X POST   -H "Content-Type: application/json"   -d '{
        "key": "TEST-BUILD-1",
        "state": "SUCCESSFUL",
        "description": "Temporary test build status",
        "parent": "TEST-BUILD-PARENT",
        "ref": "refs/heads/develop"
      }'   "https://{url}/rest/build-status/1.0/commits/c11ff6158b956b876fe49fea831ddee954854c56"

shesh@xxxxx:~$ curl -u shesh:$BIT_PASS   "https://{url}/rest/build-status/1.0/commits/c11ff6158b956b876fe49fea831ddee954854c56" | jq .
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   593  100   593    0     0   3615      0 --:--:-- --:--:-- --:--:--  3615
{
  "size": 2,
  "limit": 25,
  "isLastPage": true,
  "values": [
    {
      "state": "SUCCESSFUL",
      "key": "TEST-BUILD-1",
      "description": "Temporary test build status",
      "dateAdded": 1767873534723
    }
//Parent field goes missing. 

With the new Bitbucket endpoint : 
shesh@DKB00000C3NJ114:~$ curl -u shesh:$BIT_PASS "https://{url}/rest/api/latest/projects/{repo}/repos/{slug}/commits/c11ff6158b956b876fe49fea831ddee954854c56/builds" | jq .
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 166 100 166 0 0 1000 0 --:--:-- --:--:-- --:--:-- 1000
{
"errors": [
{
"message": "Please specify a non-blank key smaller than 255 characters",
"exceptionName": "com.atlassian.bitbucket.validation.ArgumentValidationException"
}
]
}

And I think this is the reason for my check not being passed even when the job is completed successfully.
What am I missing to allow the required builds merge check to pass? 

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events