git - How to clone a Bitbucket repository with Jenkins -
i using redhat linux
- i have created repository in bitbucket demo , have html code that.
- i have install jenkins in system.
what trying clone bitbucket repository jenkins can build project.
steps following is
- creating new job in jenkins.
- giving description project
- in source code management tab selecting git , jenkins ask repository url, , giving url.
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.
seems have removed git clone url provided bitbucket.
update:
for jenkins 2.0 or above
you can find setting under global tool configuration.
Comments
Post a Comment