Jenkins configures windows slave nodes and fetches source code from GIT

1. Jenkins http://10.146.16.141:8080/ Add a slave node and configure it as follows










2. Log in to the slave node, download and install the Windows version JRE from the official website http://www.oracle.com/technetwork/java/javase/downloads/ index.html

3. On the slave node, use IE or firefox to open Jenkins,



and connect successfully after launching the agent




4. On the slave node, install gitbash, and add the SSH public key to gitlab
gitbash configuration
1. git config --global user .name "songlihua"
2. git config --global user.email [email protected]
3. ssh-keygen -t rsa -C "[email protected]"
4. Open id_rsa.pub with software such as Notepad file, and copy the entire content 5. Log in to gitlab-
>profile setting->SSH Key to add the SSH key, and paste the content of the id_rsa.pub file

(Jenkins uses the code from git, this key needs to be obtained from the Jenkins administrator)




6. Log in to Jenkins to create a new job and configure it as follows



7. Build the job immediately and view the running result








Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326696724&siteId=291194637