Forums

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

Bitbucket webhooks working only with Repository Refs Updated (Not with Commit)

AlfonsoP November 7, 2018 edited

Hello,

We have a Webhook configured for a repository in Bitbucket.  When a PUSH is made it works perfectly (triggers the webhook) but  no Commit information is sent, overthought Comment events are active (added, edited, deleted). 

Testing connection works. Sending PUSH information works (Actor, Project, Repo, etc.) but there is no way to get Commit information. 

We have tried with another Webhook with only Commit and it also does not work.  Also disabling the first Webhook. Also enabling all of them.

Commits have been done from CLI via Git and also directly at the Bitbucket interface. 

This is the result we get from the Webhook event log: 

Event typeLast  successLast failureSuccessful calls
Repository commit comment addedNever succeededNever failed-
Repository refs updatedYesterday2 days ago23/30 (76%)

 

Any suggestions on what I might be doing wrong?

Many thanks in advance.

 

1 answer

0 votes
Kristy
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 11, 2018

Hi @AlfonsoP,

 

Does your webhook contain a "changes" field as described in the documentation? A push event should contain the information around which ref changed, and what it changed from and to. It does not have information about the commits between the changes for a number of reasons, explained here. If you want the commit details you will need to call the REST API so that Bitbucket can retrieve them from Git.

 

Hope that helps,

Kristy

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, jira cloud certification, managing jira projects, jira project administration, jira cloud exam, atlassian certification, agile project management, jira workflows, jira permissions, jira training, jira cloud skills, atlassian learning

Become a Certified Jira Service Project Expert 🦸🏻‍♂️

Validate your expertise in managing Jira Service Projects for Cloud. Master configuration, optimize workflows, and manage users seamlessly. Earn global 🗺️ recognition and advance your career as a trusted Jira Service management expert.

Get Certified! ✍️
AUG Leaders

Atlassian Community Events