简体   繁体   English

使用Jenkins中的GIT插件将代码检出到远程目录

[英]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. 是否可以使用Jenkins中的GIT插件将代码签出到远程目录。

Thanks and regards Prashanth 谢谢,并问候Prashanth

This is possible to feed your jenkins build with your git commands 这可以用git命令来喂你的詹金斯构建

詹金斯的贝壳

And this is also done through the git jenkins plugin: https://wiki.jenkins.io/display/JENKINS/Git+Plugin 这也可以通过git jenkins插件完成: 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) 在Jenkins中,如何将项目检出到特定目录(使用GIT)

Hope it will help a lot. 希望对您有所帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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