Forums

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

Bitbucket Webhook is not triggering Jenkins job even webhook returns 200

sharat bhaskar
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 27, 2022

I am using bitbucket cloud and jenkins is running on ec2 instance on the private network. Connection is well established between bitbucket and jenkins as when i run the job manually, the job shows the green status. However when i made the changes in the repo and it gets merged but the webhook is not using my app password and as a result the job is getting failed.

I am getting authentication failed and It's basically asking me to use the app password. I have already created it but still webhook is not using it. I am getting the response 200 in webhook means my webhook is able to reach the jenkins server but i am not sure why i am getting authentication failed.

1 answer

0 votes
Mark C
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 29, 2022

Hi @sharat bhaskar

Welcome to the community.

I understand that you're using Bitbucket Cloud repository Webhooks to integrate to your Jenkins server running on an EC2 instance.
The Webhooks triggers fine but in your Jenkins server, you're getting an authentication error when you made the changes in the repository and it gets merged.

Based on the description and my understanding, the Jenkins server is still picking up your old credentials instead of the App password.
For this, would it be possible for you to try to clear your stored credentials related to Bitbucket Cloud in your EC2 instance and then try to re-authenticate again using your App password?

You can also refer to this community post for more information.

Hope it helps and do let me know how it goes.

Regards,
Mark C

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events