金竹多多
Launch Jenkins Slave.cmd File:@echo off
choice /t 5 /d y /n >nul
java -jar c:\slave.jar -jnlpUrl http://ip:8080/computer/SLAVENAME/slave-agent.jnlp
pause
(1)net start “服务名”
(2)xcopy "文件路径","目的地址" /s/e/y
(3)add slaves to the Jenkins:
[*]Install Operation system.
[*]Add password for Admin user and disable login password (http://www.iyunv.net/os/win10/227620.html).
[*]Disable hardware Sleep and auto turn off.
[*]Install Java, Jenkins, .Net framework 4.6, Chrome (include chromedriver) and Java certificates.
[*]Create Slave in Jenkins, it’s OK to copy from exist slaves.
[*]Copy connect Jenkins server bat file to new slave and modify the internal information according to the new slave.
[*]Set the bat file to Start up folder and reboot the slave to make sure the Jenkins server could be connected automated.
[*]Power off the slave and take a snapshot. (name: use a same name for the slave)
页:
[1]