How to Install Jenkins Master and Slave on Windows: Step‑by‑Step Guide
Learn how to set up a Jenkins continuous‑integration environment on Windows by installing the master server, configuring security, adding a slave node, installing JRE, and turning the slave agent into a Windows service, complete with screenshots and detailed step‑by‑step instructions.
Jenkins is an extensible continuous integration engine used for automatically building and testing software projects. This guide explains how to install Jenkins master and slave on Windows.
Install master
Download the installer from the official Jenkins website, run it, and follow the “Next” prompts. After installation the default browser opens for initial configuration and plugin installation.
First, perform security verification by entering the password found in a file under the installation directory.
Next, select plugins to install. It is recommended to install the suggested plugins by clicking the large button and wait for the online installation to finish.
After plugins are installed, set up the administrator account and click “Save and Finish”. Finally, click “Start using Jenkins” to reach the Jenkins dashboard.
Master installation is now complete.
Install slave
Configure master‑slave communication
Go to Manage Jenkins → Configure Global Security and enable security. Choose a random TCP port.
Add slave configuration
In Jenkins, navigate to Manage Jenkins → Manage Nodes and click “New Node”. Enter a name, select “Permanent Agent”, and configure the following fields:
Name : node name.
Description : purpose of the node.
# of executors : number of concurrent tasks, usually equal to CPU threads.
Remote root directory : Jenkins root directory on the node.
Labels : labels assigned to the node.
Usage : node usage strategy.
Launch method : for Windows, choose “Launch agent via Java Web Start”.
Availability : policy for keeping the slave online.
Save the configuration.
Install JRE on the slave
Download the latest JRE installer from Oracle’s website and install it on the slave machine.
Install and configure Jenkins slave
Create a directory C:\jenkinsagent on the slave. In the browser, open the previously created node in Jenkins and click “Launch”. Save the generated slave-agent.jnlp file.
Run the JNLP file with administrator privileges; a small program appears indicating a successful connection.
To run the agent as a Windows service, use the “Install as a service” option in the File menu. After installation the program closes and a Windows service is created.
Refresh the slave page in Jenkins; the master‑slave system is now fully set up.
Signed-in readers can open the original source through BestHub's protected redirect.
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
MaGe Linux Operations
Founded in 2009, MaGe Education is a top Chinese high‑end IT training brand. Its graduates earn 12K+ RMB salaries, and the school has trained tens of thousands of students. It offers high‑pay courses in Linux cloud operations, Python full‑stack, automation, data analysis, AI, and Go high‑concurrency architecture. Thanks to quality courses and a solid reputation, it has talent partnerships with numerous internet firms.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
