简体   繁体   中英

Jenkins - BitBucket git push : could not read Password for No such device or address

I was trying to push my commits to bitbucket using shell script in Jenkins .

so I know that I have to provide credentials when running git push command.

I use Jenkins UI way to those thing, not Pipeline.

I have searched to fix this, but i could not find a way to do this using Shell script in Jenkins.

In my research I found , there is bitbucket pluggin that trigger bitbucket push Bitbucket Push And Pull Request Plugin . but I have to setup webhooks for that. So Im running the jenkins inside VPN, so because of that I can't use webhooks where bitbucket cant to sent request to my machine. So I thought, running git push using shell script is the way.

How do I overcome this problem?

You can't use username/password in a script, but you have a lot of solutions. Please read my answer in another thread explains the solutions for working with git into a shell script.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM