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.
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
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.