Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

"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

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
Community showcase
Published in Bitbucket

📣 Calling Bitbucket Data Center customers to participate in research

Hi everyone, Are you Bitbucket DC customer? If so, we'd love to talk to you! Our team wants to dive deep to understand your long-term plans regarding Bitbucket DC and Atlassian Cloud. Do you plan...

84 views 2 3
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you