"eventKey":"repo:refs_changed" payloads doesnt have exact file change details
repo:refs_changed payload
https://confluence.atlassian.com/bitbucketserver/event-payload-938025882.html#
"commits": [
{
"committer": {
"name": "GitHub",
"email": "noreply@github.com",
"username": "web-flow"
},
"added": [
],
"removed": [
],
"modified": [
"development/serverconfig.properties"
]
}
]
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"
}
]
}
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.