Jekins Windows Deployment

Source: Internet
Author: User
Tags git client

  

1. Install Jenkins

Go to https://jenkins.io/download/, download the Windows Installer package, unzip and run Jenkins.msi to install.

2. Configure Jenkins

(1) Open http://localhost:8080, the first time to open the need to unlock Jenkins, according to the prompt to fill in the password.

  

(2) Install plug-in: Select the recommended plug-in for installing install suggested plugins (including Ant,pipline and other plugins)

(3) Set the user name password, so that Jenkins basic configuration is complete, you can go to the Jenkins Management page.

  

3. Configure Git

(1) Install Git client, generate git SSH key

: Https://git-scm.com/download/win, after successful installation, right click on desktop visible git Bash here, click and execute the following command

CD ~/. ssh       --mkdir ~/If the file does not exist. SSH  [email protected]"ssh-keygen"[email protected] "

Press three times to enter, and the. SSH folder generates ID_RSA and id_rsa.pub two files. The content in Id_rsa is the private key, and the content in Id_rsa.pub is the public key.

(2) Configuring the Git path in Jenkins

Enter Manage Jenkins-〉 on the Jenkins admin page Global Tool configuration, configuring Git and JDK paths

(3) Enter the public key on GitHub: Https://github.com/settings/keys in SSH keys to fill in the contents of Id_rsa.pub

3. New Jenkins Project

New item on Jenkins, then add GitHub's address to the project's configure and create a corresponding user with the key

Click on Buildnow on Jenkins

Jekins Windows Deployment

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.