Forums

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

App pass in Jenkins doesn’t work

Ramesh Kumar
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!
March 7, 2022

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.

1 answer

0 votes
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 9, 2022

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

Scott P
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!
March 15, 2022

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.

Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 16, 2022

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:

  • any logs from Jenkins with the exact commands that are executed and their full output (please mask/remove any actual usernames/repo names/workspace-id prior to sharing).
    Without knowing the commands and their output, it's difficult to guess why the operations are failing.
  • it would be useful to have the same (commands+output) when you execute the commands from a command-line application

Kind regards,
Theodora

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events