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

1 answer

0 votes

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

Suggest an answer

Log in or Join to answer

Stay in touch

Be the first to know what's trending on Atlassian Community