Discussions
Categories
Groups
Help
Home
Q&A
Bitbucket
Why is the required builds merge check still failing after a successful build?
Shevangi
I am attempting to configure a similar setup as mentioned in
https://community.atlassian.com/forums/Bitbucket-questions/Why-is-the-required-builds-merge-check-still-failing-after-a/qaq-p/2230801
.
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",
"url": "
https://jenkins.example.com/job/test/1/
",
"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",
"url": "
https://jenkins.example.com/job/test/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?
Accepted answers
All comments
There are no accepted answers yet
Welcome!
It looks like you're new here. Sign in or register to get started.
Sign In
Register
Quick Links
Unanswered
Groups
Help
Find more posts tagged with
server
bitbucket
required-field
data-center
pull-request
merge
bitbucket-data-center