Jenkins: Windows every bit Slave Node-
Jenkins Master comes amongst the basic installation in addition to you lot tin configure projection every bit per your requirement. Jenkins Master handles all the configuration in addition to task for your build.
Now, sometime you lot demand to stimulate got Slave Windows Jenkins to run projection that actually demand Windows environment to execute to a greater extent than or less script, ascendancy etc.
In Jenkins Master in addition to Slave surround you lot tin configure multiple projection amongst unlike OS environment. Jenkins Master operate JNLP (JAVA Network Launch Protocol) agent to communicate amongst Slave node.
Jenkins Master is to schedule all the hit task in addition to assign Slave node for specific Project. It is easier to stimulate got online in addition to offline slave node every bit per requirement. To avoid manual commencement of JNLP nosotros tin install it every bit a service in addition to Slave node tin easily come upward online afterward a reboot.
Let's commencement setting upward Jenkins Slave on Windows spell Master on Linux.
Prerequisites-
- Jenkins Master on Linux (IP-192.168.102.12)
- Windows Machine - IP 10.0.1.107 (JAVA Must last installed)
- Login to Jenkins Master > Manage Jenkins > Manage Plugins
- At Plugins page pick out Available > inward the filter search - type Windows Slaves > Install without restart
Step 2- Enable the TCP port of JNLP agent
- Login to Jenkins every bit admin
- Manage Jenkins > Configure Global Security
- On the adjacent enshroud select TCP port for JNLP agents > Random > Apply > Save
Step 3- Add Windows node to Master Jenkins.
- Login to Jenkins Master > Manage Jenkins > Manage Nodes
- On adjacent enshroud click on new node > Node Name (i.e. Windows-Agent)
- On the Next Scree fill the node details
- At adjacent Screen click on Launch
- It volition download the file Slave-Agent.jnlp
- Copy slave-agent.jnlp to the Windows machine.
- Before starting agent installation at Windows brand sure, Windows machine stimulate got JAVA installed, If non delight download in addition to install Java.
- Download in addition to install Java from the next link.
http://javadl.oracle.com/webapps/download/AutoDL?BundleId=230542_2f38c3b165be4555a1fa6e98c45e0808
- Once Java installation finished. Go to Java path: C:\Program Files\Java\jre1.8.0_161\bin
- Right click on JAVA.exe executable file in addition to send shortcut to desktop
- Now correct click on Java shortcut available at desktop in addition to modify target.
- Now Right click on Java shortcut at desktop in addition to Launch it.
- At adjacent Screen click Run
- On the Next Page you lot encounter that your agent is instantly connected with Jenkins Master.
- Let's install the Jenkins slaves every bit a service in addition to thus that whenever your Windows machine larn restarted. Slave Agent come upward online automatic.
- To Install Jenkins Slave service - File > Install every bit a service > OK
- Jenkins Slave service installation volition last consummate in addition to you lot volition see jenkinsslave-C__Jenkins in Services console.
- Go to Run > Services.msc
- Let's banking corporation fit Node condition inward the Master Jenkins
Jenkins Windows Slave Node installation procedure completed.
Troubleshooting:
You may sense to a greater extent than or less issues during service installation process.
- If you lot ran into the same upshot spell installing jenkins slave service delight follow the steps.
- Open ascendancy prompt every bit Administrator.
- Change the directory (cd C:\Users\asingh\Desktop) to desktop Java shortcut.
- Run the shortcut - It volition destination the installation.
- After jenkins Slave service successful installation, you lot volition encounter the slaves service inward services console.
- Let's banking corporation fit Node condition inward the Master Jenkins
- Login to Jenkins Master > Manage Jenkins > Manage Nodes
Tidak ada komentar:
Posting Komentar