I am trying to change the authentication to app password for my account in Jenkins but still it throws a invalid credential error message if I use my app passw.
Hi @Ramesh Kumar and welcome to the community.
An app password should be used in combination with the Bitbucket username of the account for which you generated this app password. I am just mentioning this because I've seen some users have been using the label of the app password instead. The Bitbucket username can be found here https://bitbucket.org/account/settings/ if you are logged in to the account.
If that's ok, the next thing to look into would be the app password permissions, and the correct permissions depend on what Jenkins is doing with these credentials. If it is only cloning/pulling from repos, then Repositories:Read permissions for the app password should be enough. If additional operations are performed, more permissions may be required for the app password. It is not possible to change the permissions for an existing app password, but you can generate a new one.
Is there some log file in Jenkins where you can see what git commands or API calls are executed, and also if there are any additional error messages apart from "invalid credential"?
Kind regards,
Theodora
I can confirm.
Jenkins can now PULL, but it can no longer PUSH to repositories. I have had several repositories automatically pushing to branches based on requirements.
Jenkins can no longer PUSH to those same repositories. It will simply HANG.
The APPPassword I am using works to pull the code down, but it can no longer push the code up to Bitbucket.
I have given the AppPassword account full rights across the board.
I have tried to do this with command line (which worked before), moved over to powershell and even tried Shell commands.
Jenkins can no longer push with these new AppPasswords.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Scott,
If you'd like us to help with your issue, please create a new question via https://community.atlassian.com/t5/forums/postpage/board-id/bitbucket-questions
It's best to have a separate question, as troubleshooting multiple users' issues in the same post can become confusing and make it difficult to follow the post.
You can copy-paste in the new question the content of your previous reply, and it would additionally be useful to include:
Kind regards,
Theodora
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.