简体   繁体   English

Jenkins与Github集成

[英]Jenkins Integration with Github

I am preety new to both Jenkins and Github. 我对詹金斯(Jenkins)和Github都是陌生的。 I have created an AWS server running Ubuntu 14.04, on which I have installed Jenkins and the JDK for it. 我创建了一个运行Ubuntu 14.04的AWS服务器,并在该服务器上安装了Jenkins和JDK。 I have use the native build to install Jenkins (ie apt-get ). 我已经使用本机版本安装Jenkins(即apt-get )。 I have installed the Github plugins in Jenkins and I am having an Github account having a public repository having a maven project. 我已经在詹金斯(Jenkins)中安装了Github插件,并且我有一个具有公共仓库的Github帐户,该仓库具有一个Maven项目。 But I am having a doubt on whether I need to install Git on the Ubuntu server running Jenkins. 但是我不确定是否需要在运行Jenkins的Ubuntu服务器上安装Git。 In the Github plugin I got an option to install Git automatically. 在Github插件中,我可以选择自动安装Git。 It will be helpfull if I can get some help in building my project using Jenkins. 如果我可以在使用Jenkins的项目中获得一些帮助,这将很有帮助。

There are two options in which you can resolve your issue. 您可以通过两种方法解决问题。 You can install the Git on the server or you can map the plugin installed to the Jenkins system. 您可以在服务器上安装Git,也可以将安装的插件映射到Jenkins系统。

  1. The first option is very straight forward that you just need to install the 'git' package on to the server where you have installed the Jenkins and reload/restart the Jenkins to get the changes in effect. 第一个选择非常简单,您只需将'git'软件包安装到已安装Jenkins的服务器上,然后重新加载/重新启动Jenkins即可生效。

  2. The second option is to map the installed plugin to the Jenkins system. 第二个选项是将已安装的插件映射到Jenkins系统。 You will see all the installed plugins in the directory "/var/lib/jenkins/plugins/". 您将在目录“ / var / lib / jenkins / plugins /”中看到所有已安装的插件。 Go to configure system and in the path to Git executable field. 转到配置系统,然后在Git可执行文件的路径字段中。 Now your Jenkins should be able to init the Git. 现在,您的Jenkins应该可以启动Git了。 Happy git integration!! git集成愉快!

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

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