从Jenkins内部的源代码自动安装Git

从Jenkins内部的源代码自动安装Git,git,jenkins,Git,Jenkins,是否可以使用“全局工具配置”>“Git”>“自动安装”在Jenkins内部配置Git安装 情况是: 我已经在Debian 7服务器上安装了Jenkins 2 Debian 7的最新Git包存储库是1.9.1- 我需要在Git 2.x中添加一些功能 是的,我可以从系统中的源代码安装它,但将来需要额外的管理来更新它,等等。在Jenkins内部更改版本会更清晰 我尝试过这种配置: 但在运行时将其设置为project conf中的“Git可执行文件”后,我得到: ERROR: Error clon

是否可以使用“全局工具配置”>“Git”>“自动安装”在Jenkins内部配置Git安装

情况是:

  • 我已经在Debian 7服务器上安装了Jenkins 2
  • Debian 7的最新Git包存储库是1.9.1-
  • 我需要在Git 2.x中添加一些功能
是的,我可以从系统中的源代码安装它,但将来需要额外的管理来更新它,等等。在Jenkins内部更改版本会更清晰

我尝试过这种配置:

但在运行时将其设置为project conf中的“Git可执行文件”后,我得到:

ERROR: Error cloning remote repo 'origin'
hudson.plugins.git.GitException: Could not init /var/lib/jenkins/jobs/Test_GIT/workspace
    at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$5.execute(CliGitAPIImpl.java:663)
    at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:464)
    at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1042)
    at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1082)
    at hudson.scm.SCM.checkout(SCM.java:495)
    at hudson.model.AbstractProject.checkout(AbstractProject.java:1278)
    at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:604)
    at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
    at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529)
    at hudson.model.Run.execute(Run.java:1720)
    at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
    at hudson.model.ResourceController.execute(ResourceController.java:98)
    at hudson.model.Executor.run(Executor.java:404)
Caused by: hudson.plugins.git.GitException: Error performing command:  init /var/lib/jenkins/jobs/Test_GIT/workspace
    at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1759)
    at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1725)
    at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1721)
    at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand(CliGitAPIImpl.java:1391)
    at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$5.execute(CliGitAPIImpl.java:661)
    ... 12 more
Caused by: java.io.IOException: Cannot run program "" (in directory "/var/lib/jenkins/jobs/Test_GIT/workspace"): error=2, No such file or directory
    at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
    at hudson.Proc$LocalProc.<init>(Proc.java:243)
    at hudson.Proc$LocalProc.<init>(Proc.java:212)
    at hudson.Launcher$LocalLauncher.launch(Launcher.java:815)
    at hudson.Launcher$ProcStarter.start(Launcher.java:381)
    at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1748)
    ... 16 more
Caused by: java.io.IOException: error=2, No such file or directory
    at java.lang.UNIXProcess.forkAndExec(Native Method)
    at java.lang.UNIXProcess.<init>(UNIXProcess.java:248)
    at java.lang.ProcessImpl.start(ProcessImpl.java:134)
    at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
    ... 21 more
ERROR: null
Finished: FAILURE
错误:克隆远程回购“源”时出错
hudson.plugins.git.git异常:无法初始化/var/lib/jenkins/jobs/Test\u git/workspace
位于org.jenkinsci.plugins.gitclient.CliGitAPIImpl$5.execute(CliGitAPIImpl.java:663)
位于org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:464)
位于hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1042)
位于hudson.plugins.git.GitSCM.checkout(GitSCM.java:1082)
在hudson.scm.scm.checkout(scm.java:495)
在hudson.model.AbstractProject.checkout(AbstractProject.java:1278)上
位于hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:604)
位于jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
位于hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529)
在hudson.model.Run.execute(Run.java:1720)
运行(FreeStyleBuild.java:43)
在hudson.model.ResourceController.execute(ResourceController.java:98)
运行(Executor.java:404)
原因:hudson.plugins.git.git异常:执行命令时出错:init/var/lib/jenkins/jobs/Test\u git/workspace
位于org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1759)
位于org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1725)
位于org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1721)
位于org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand(CliGitAPIImpl.java:1391)
位于org.jenkinsci.plugins.gitclient.CliGitAPIImpl$5.execute(CliGitAPIImpl.java:661)
... 还有12个
原因:java.io.IOException:无法运行程序“”(在目录“/var/lib/jenkins/jobs/Test\u GIT/workspace”中):错误=2,没有这样的文件或目录
位于java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
在hudson.Proc$LocalProc.(Proc.java:243)
在hudson.Proc$LocalProc.(Proc.java:212)
位于hudson.Launcher$LocalLauncher.launch(Launcher.java:815)
位于hudson.Launcher$ProcStarter.start(Launcher.java:381)
位于org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1748)
... 还有16个
原因:java.io.IOException:error=2,没有这样的文件或目录
位于java.lang.UNIXProcess.forkAndExec(本机方法)
位于java.lang.UNIXProcess(UNIXProcess.java:248)
在java.lang.ProcessImpl.start(ProcessImpl.java:134)处
位于java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
... 还有21个
错误:null
完成:失败

否。。。。。。。。。。。。。