git - How to clone a Bitbucket repository with Jenkins -


i using redhat linux

  1. i have created repository in bitbucket demo , have html code that.
  2. i have install jenkins in system.

what trying clone bitbucket repository jenkins can build project.

steps following is

  1. creating new job in jenkins.
  2. giving description project
  3. in source code management tab selecting git , jenkins ask repository url, , giving url. enter image description here

but jenkins throwing error saying

failed connect repository : error performing command: git ls-remote -h git clone https://username@bitbucket.org/username/java-script.git head

spend around 3 days , not configure instead learned lot jenkins. have tried bitbucket plug-in jenkins not working.

for jenkins 1.5 or greater( till 1.6)

the error getting because in global configuration of jenkins, git path not correct/or not inserted.

that's why jenkins unable run git command.

please go manage jenkins-> configure system settings. check git section , add correct path.

enter image description here seems have removed git clone url provided bitbucket.

update:

for jenkins 2.0 or above

you can find setting under global tool configuration.


Comments

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

android - CollapsingToolbarLayout: position the ExpandedText programmatically -

Listeners to visualise results of load test in JMeter -