Integration of bitbucket server with jenkins

we are trying to integrate jenkins (version2.87) with Bitbucket server (version 4.14.2-x64) on a windows 10 OS machine and there is a proxy machine in LAN .

I can successfully clone this repository from git bash, but in jenkins when we specify the url of the bitbucket repository in jenkins  .it
gives the below following message

Failed to connect to repository  error performing command git.exe ls-remote <repo url> HEAD

2 answers

Your Jenkins has to execute a clone command either on the Jenkins server or on a slave. Either way Jenkins has to have credentials to be able to clone. A ssh key can be added to an bitbucket user account, or to a project or repository 

 

hope this helps

 

Mike

Hi Price,

 

Please verify if you set the git.exe patch in Global Tool Configuration.

You may see the below error under GIT section. So please specify the git.exe location.

ex : C:\Program Files\Git\bin

Error:

There's no such executable git.exe in PATH: C:/IBM/MQ/java/lib, C:/IBM/MQ/java/lib64, C:/opscode/chef/bin, C:/IBM/MQ/bin64, C:/IBM/MQ/bin, C:/IBM/MQ/tools/c/samples/bin, C:/Program Files/Intel/WiFi/bin/, C:/Program Files/Common Files/Intel/WirelessCommon/.

 

Thanks,

Arun

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 12, 2018 in Bitbucket

Do you use any Atlassian products for your personal projects?

After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...

23,240 views 26 12
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you