简体   繁体   中英

Checkout Code to remote directory using GIT Plugin in Jenkins

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

Thanks and regards Prashanth

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

詹金斯的贝壳

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"

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM