"eventKey":"repo:refs_changed" payloads doesnt have exact file change details

srinivasa.rao January 3, 2020

"eventKey":"repo:refs_changed" payloads doesnt have exact file change details

repo:refs_changed payload

https://confluence.atlassian.com/bitbucketserver/event-payload-938025882.html#

  • GIT web hook defines exact change details 

    "commits": [
    {
    "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "username": "web-flow"
    },
    "added": [

    ],
    "removed": [

    ],
    "modified": [
    "development/serverconfig.properties"
    ]
    }
    ]

  • Bit bucket Web Hook 

payload

{
"eventKey":"repo:refs_changed",
"date":"2020-01-03T08:55:16+0000",
"actor":{
"name":"Srinivasa.Rao@maersk.com",
"emailAddress":"Srinivasa.Rao@maersk.com",
"id":1699,
"displayName":"Srinivasa.Rao",
"active":true,
"slug":"srinivasa.rao_maersk.com",
"type":"NORMAL"
},
"repository":{
"slug":"services-env-config",
"id":3334,
"name":"services-env-config",
"scmId":"git",
"state":"AVAILABLE",
"statusMessage":"Available",
"forkable":true,
"project":{
"key":"CUS",
"id":1136,
"name":"CustomsDeclarations",
"public":false,
"type":"NORMAL"
},
"public":false
},
"changes":[
{
"ref":{
"id":"refs/heads/master",
"displayId":"master",
"type":"BRANCH"
},
"refId":"refs/heads/master",
"fromHash":"4074c1edf7623fff8fa3685c7458f18ecdf18c93",
"toHash":"3f3a2ca57c512bcd94b807ce57989b3ec081c957",
"type":"UPDATE"
}
]
}

1 answer

0 votes
Winn Johnston January 11, 2021

How are you able to even access this event key?

"eventKey":"repo:refs_changed"

 

I have a working bamboo jenkins integration but am unable to parse any of the push payload. I have an open question to the community here too https://stackoverflow.com/questions/65621792/how-to-access-bitbucket-payload-from-webhook-integration-with-bamboo-using-bash

 

cheers

-winn

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events