0

Is it possible to checkout code to a remote directory using GIT Plugin in Jenkins.

Thanks and regards Prashanth

Prashanth
  • 11
  • 4
  • 1
    Possible duplicate of [In Jenkins, how to checkout a project into a specific directory (using GIT)](https://stackoverflow.com/questions/9767919/in-jenkins-how-to-checkout-a-project-into-a-specific-directory-using-git) – xxxvodnikxxx Apr 27 '18 at 13:19

2 Answers2

0

This is possible to feed your jenkins build with your git commands

shell in  Jenkins

And this is also done through the git jenkins plugin: https://wiki.jenkins.io/display/JENKINS/Git+Plugin

as shown in their example:

Started by user anonymous
Checkout:workspace / C:\Documents and Settings\Administrator\.hudson\jobs\watir\workspace - hudson.remoting.LocalChannel@1a1f370
Last Build : #4
Checkout:workspace / C:\Documents and Settings\Administrator\.hudson\jobs\watir\workspace - hudson.remoting.LocalChannel@1a1f370
Cloning the remote Git repository
Cloning repository origin
$ git clone -o origin git://github.com/bret/watir.git "C:\Documents and Settings\Administrator\.hudson\jobs\watir\workspace"
Luc
  • 1,393
  • 1
  • 6
  • 14
0

I think it's not a big problem. I'm sending you to an earlier article.

In Jenkins, how to checkout a project into a specific directory (using GIT)

Hope it will help a lot.

Macka
  • 20
  • 5