Windows as a slave node
launch the windown instance as a jenkins slave
In windows system no ssh enabled so my jenkins system won't able to connect to windows. jenkins able to connect linux as ssh is enabled in linux.
windows will go jenkins master to connect for this we have to give agent to windows and it will run the agent and since agent is built on the top of Java so we have to install java commands in windows slave. Finally when all things are right then agent will run and windows slave connect to jenkins master.
If you run any agent and windows is going to connect then this type of protocol is known as JNLP/ java web start.
so first connect the windows
when you connect then go to RDP client
their copy the dns and paste it in computer column and copy the username of rdp client and paste it in username column of remote desktop connection. Then decrypt the password and copy and paste in remote desktop connection after clicking connect.
Remote desktop connection is package available in desktop by which we can connect to windows system like for linux their is putty.
three thing we have to do in windows slave:
download JDK
download AGENT
create the workspace
run the agent and connect to master
this is the windows slave that we have connected in local system
first create the new node in jenkins for the windows-slave-node
then click create
create the jenkins workspace folder in windows slave node
copy the path of jenkinsworkspace and paste in the configure of node
here we have change the launch methosd as "launch agent by connecting it to the controller" as windows slave is connecting to master thats why it does not take the input of ip.
check the box of (use websocket)
then save it.
now lets install jdk, agent in windows slave. click on windows offline 64bit
click on install
To install the agent there are many method one of the method will be that jenkins also provide agent to download.
when you click on the link of windows-slave-node1 then it provide the way to download the agent.
so for this copy the url (link address) of that windows node that we have created in jenkins and paste it in windows slave node so that we are able to download agent in windows slave.