Set up Windows node in Jenkins

1. Create new Node

This method is only applicable for setting up a node locally and might differ elsewhere.

  1. Login to your Jenkins and go to dashboard
  2. Click on Manage Jenkins and then click on Nodes.
  3. Click on New Node button.
  4. Give your node a name and select Permanent Agent radio button and click on Create.
  5. Create an empty folder on your PC and copy its path and paste it in the Remote root directory.
  6. Give your node label of usemango.
  7. Click on Save.

2. set TCP port for inbound agents

  1. Click on Manage Jenkins and then click on Security.
  2. Scroll down to TCP port for inbound agents.
  3. Select Random from the given options.
  4. Click Apply and then Save.

3. Establishing connection with the Node

  1. Click on Manage Jenkins and then click on Nodes.
  2. Click on the Node you just created in step 1.
  3. Copy the command for windows node by clicking on the copy button.
  4. Open Command prompt in the folder you created in step 1.5 and enter the command you just copied.
  5. Once you see Connected your agent is live.