Do you maintain Jenkins agents for your jobs? does your Jenkins agents running while in idle?
What if you could start a Jenkins agent for every job you run at Jenkins, and the best part no need to maintain and keep a Jenkins agent like a long-running server.
So how do you automate your jobs?
- Start with installing the EC2 and Cloud plugins in your Jenkins server.
- then configure Jenkins to run jobs only at agents and not on the master.
- start a new job and a new instance will start (I’m using AWS so an instance will be initialized on that EC2 cloud)
- wait for about 5-10 (it varies) until the agent is connected and watch the job run at that specific agent/node.
also you can configure the Cloud plugin to terminate the Jenkins agent once the agent is in idle for “x” amount of time, depends how many jobs you run every hour.
The outcome
If you use this approach you can save on cloud costs and automate jobs
P.S. you can configure spot instances to run as Jenkins agents.
Do you want to automate your Jenkins agents?
I can automate your Jenkins agents for you, contact me today HERE
(Visited 184 times, 1 visits today)