简体   繁体   中英

Clone git repository in Jenkins is not working

I am trying to connect bitbucket Git repository in Jenkins. I created repository and added two files.

I can see two choices, HTTPS SSH

In my system, I am able to clone my repository by below command,

git clone https://keval1234patel@bitbucket.org/keval1234patel/repo1.git

The problem is, When I give same url in Jenkins, it shows below error,

詹金错误

One more thing I noticed is, In my bitbucket, I don't see clone option as I can see in other articles, I see like below,

HTTPS网址

When I try to brows URL, it shows me 404 error, But same URL is working for clone repository in local system, I unchecked "This is a private repository" checkbox as well. 404

Where do I need to change to integrate my git repository with Jenkins?

Those, who may have same issue, Need to set git.exe path in Jenkins configuration.

While going in the project--> Configure--> set the path of the git correctly.
It should be till the bin and then append git.exe like *\bin\git.exe

In my case, it is

C:\\Program Files\\Git\\bin\\git.exe

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