Jenkins Agent Types: Permanent and Cloud Agents
📖 Scenario: You are setting up a Jenkins server to run automated jobs. Jenkins uses agents (also called nodes) to run these jobs. There are two main types of agents: permanent agents that are always available, and cloud agents that start on demand in the cloud.Understanding how to configure these agents helps you manage your build resources efficiently.
🎯 Goal: Learn to create a permanent Jenkins agent configuration and a cloud agent configuration using Jenkins pipeline syntax. You will define the agents and then run a simple job on each type.
📋 What You'll Learn
Create a permanent agent configuration in Jenkins pipeline
Create a cloud agent configuration in Jenkins pipeline
Use the
agent directive correctly for both typesRun a simple shell command on each agent to verify setup
💡 Why This Matters
🌍 Real World
In real Jenkins setups, permanent agents are often physical or virtual machines always connected to Jenkins. Cloud agents are created on demand in cloud platforms like AWS or Azure to save resources.
💼 Career
Knowing how to configure different agent types helps DevOps engineers optimize build times and resource usage in continuous integration and delivery pipelines.
Progress0 / 4 steps