Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Cisco Webex Teams Integration with on-prem BitBucket Server

Daniel Nicholson October 4, 2018

Hello,

My Company deployed an on-prem BitBucket Server.  We have been trying to integrate it with Cisco Webex Teams to post a message to a space when pull requests are made to our repository.  We are using a Webhook integration from the Cisco Webex Teams AppHub (https://apphub.webex.com/categories/developer-tools/integrations/bitbucket-cisco-systems).  Everything appears to be connected but whenever we send data to the Webhook it does not update the Webex Teams space with the data.  We are at a loss for why this is not working(?)...  We have validated that the webhook works for Cloud BitBucket server but we cannot get this to work for our On-Prem BitBucket server.

 

Any advice would be greatly appreciated.

1 answer

0 votes
Prasanth
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 8, 2018

Hi Daniel

It looks like the link that you have provided is not working or not accessible. Bitbucket cloud and Bitbucket server are different products and instructions for one may not work for other.

Especially the webhook payload, so Cisco Webex Teams config expecting payload from cloud and but getting a different entirely different one from server, then it may not be able to process it. You may also want to check following to get the bottom of the issue

  • Webhooks are not getting triggered from server or not. You can check it with https://requestbin.fullcontact.com/ or something similar.
  • Webhooks not reaching the Cisco Webex, a firewall or outbound proxy config blocking the requests.

Best regards,
Prasanth Thaikkalloor

Daniel Sagayaraj May 19, 2020

@Prasanth , Quick question on the this answer, If the stash is able to post the webhook to the requestbin which is a public site outside the VPN/Proxy, Then it should also be able to reach the Cisco Webex right?  I have a case where the webhook is able to post the request to the requestbin but not to the https://botworkflows.webex.com/. I get the error code as 400 and below is the body of the response 

 

{"error":"INVALID_HOOK"}

 

The webhook URL was copied and pasted that we provided by the BitBucker server bot for the manage command. 

Ramaraja Ramanujan May 25, 2020

@Daniel Sagayaraj 

You are getting 400 error code and the message,

{"error":"INVALID_HOOK"} 

 because you created a new webhook for your repository on Bitbucket Server(formerly known as Stash), copied the webhook URL from the bot workflows page when creating a new notification and pasted it in the URL field of the Bitbucket Server webhook and clicked on ```Test Connection```.

The error is due to the fact that at this point the webhook URL is not created yet.
Hence the message ```INVALID_HOOK```.
Don't worry about testing the connection, simply go ahead and create the webhook on Bitbucket server. Then go to the bot workflows page and save your notification.
Now the webhook would be created and available to receive events.

And that's it! It should now be working


Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events