Jenkins combined with GitHub continuous integration environment building

Source: Internet
Author: User

As you all know, Jenkins supports distributed deployment, how does it integrate with GitHub for continuous integration? Here's how it's implemented:

  1. To install the application:

    Java, Jenkins, git, maven

    MAVEN is not required for all environments and can be installed according to your actual environment.

  2. Jenkins installation Tutorial Reference http://xunmeng.blog.51cto.com/1092116/1795093;

  3. Install git and maven

    1. Git installs in a simpler way, using Yum to install

    2. Yum install-y git

    3. wget http://mirror.reverse.net/pub/apache/ maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gz

    4. Tar zxvf apache-maven-3.3.9-bin.tar.gz

    5. mv apache-maven-3.3.9/usr/local

    6. echo "Export m2_home=/usr/local/apache-maven-3.0.5 ">>/etc/profile
      Echo" path= $PATH: $JAVA _home/bin: $M 2_home/bin ">>/etc/profile

    7. Export m2_home=/usr/local/apache-maven-3.0.5
      Export m2= $M 2_home/bin
      Export path= $M 2: $PATH
      Echo path=$ PATH: $JAVA _home/bin: $M 2_home/bin ">>/etc/profile
      source/etc/profile

  4. Creates a new Jenkins user in all machines and generates the SSH key for that user.

    1. Useradd Test (This user runs the Jenkins working directory)

    2. Ssh-keygen-t rsa-f ~/.ssh/id_rsa-p "#生成无密码key, set the password in single quotes

  5. Sign in to GitHub to add server KEY

    1. Login github,http://www.github.com

    2. Open setting find the KEY in SSH key,copy id_rsa.pub to GitHub

  6. Test SSH Connection

    1. ssh-t [email protected]

    2. After the login is successful, the hello * * (your github username) will be displayed ..... Omit what's behind

  7. Open the browser, access the Jenkins Master host, and start configuring Jenkins.

  8. The configuration tutorial is not written, because any tutorial is not suitable for all production environments, please leave a message if you need to configure.


This article is from the "Ant Dream" blog, please be sure to keep this source http://xunmeng.blog.51cto.com/1092116/1828690

Jenkins in conjunction with GitHub continuous integration environment build

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.