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