Master-agent architecture
📖 Scenario: You are setting up a Jenkins environment to automate software builds. Jenkins uses a master-agent architecture where the master controls the build process and agents run the build jobs.In this project, you will create a simple Jenkins pipeline script that defines the master and an agent node to run a build step.
🎯 Goal: Build a Jenkins pipeline script that specifies a master and an agent node, then runs a simple shell command on the agent.
📋 What You'll Learn
Create a Jenkins pipeline with a
pipeline blockDefine an
agent with label linuxAdd a
stage named BuildInside the stage, run a shell command
echo "Building on agent"💡 Why This Matters
🌍 Real World
Jenkins pipelines automate software builds and tests by distributing work from the master to multiple agent nodes.
💼 Career
Understanding master-agent architecture is essential for DevOps engineers to set up scalable CI/CD pipelines.
Progress0 / 4 steps