I have tried using access token, generating one and adding to my jenkins, but it gives me error as "cannot read password for username" now what is the reason for this?
I have already tried transferring this repo into different account and trying to pull latest changes from there, but still it refers to original repo and gives me same error
please can anyone help me in this?
You might want to also consider using an integration app like Webhook to Jenkins for Bitbucket which is now available for Cloud! This app from Appfire is easy to set up and will allow you to automatically trigger Jenkins builds when committing or merging code.
Please feel free to reach out to me at Jennifer.Dempsey@appfire.com if I can answer any questions about the app for you. You can also contact our awesome support team to ask questions about the product or request a demo.
Cheers,
Jennifer
Hello @Pradip Solace ,
Thank you for reaching out to Atlassian Community!
From your description and the error message, I suspect the issue is related to how the authentication was setup on the Jenkins side. Since you mentioned to be currently trying with an access token, I would suggest trying basic authentication instead and checking if the issue persists. For that, you would have to configure the credentials in Jenkins as follows:
You can try the suggestion above and let us know how it goes.
Thank you, @Pradip Solace !
Patrik S
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hello @Patrik S
thanks for your reply!
As i can see from your reply you want me to try using username and app password generated from bitbucket.
I have already tried this method, but it still gives me same error
"fatal: could not read Password for: 'https://username@bitbucket.org': No such file or directory".
Is anything related to app authorization has to be implemented for this?
kindly let me know
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Pradip Solace ,
The error message seems to be related to a local configuration on Jenkins.
As you are trying to integrate Bitbucket Cloud with your Jenkins instance, I would suggest using the Bitbucket Jenkins plugin below :
This plugin relies on bitbucket webhooks to receive the events that happen in your repository, such as a new push, to then trigger an event in your Jenkins instance.
Also, the following article has step-by-step instructions on how to setup this integration :
Let me know in case you have any questions.
Thank you, @Pradip Solace !
Patrik S
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.