Is possible for Jenkins to auto start and stop slave nodes

0 votes

I am using a Jenkins master with a slave node in my network.I want to create another node in AWS EC2,a big expensive server. I would like to have a single Jenkins build that will make following changes:

  • Jenkins Master should be able to start slave node.
  • Jenkins node should be able to run the script.
  • Jenkins Master should be able to stop the slave node.

I know I can have three separate builds to do it. I was wondering if it is possible to have this in one build only? Is there any plugin through which I can achieve all the above?

Apr 23, 2018 in Jenkins by Atul
• 10,240 points
6,702 views

2 answers to this question.

0 votes
I have never checked that with Jenkins but if you want you can use Amazon EC2. It can all the above job in one build. I hope this will work for you.
answered Apr 24, 2018 by shubham
• 7,340 points
0 votes

Try Jenkins Plugin called as Slave SetupPlugin.

This plugin prepares slaves for build execution by letting you copy files and execute scripts before the slave gets used.

It also allows you to start and stop slaves on demand from the master node.

answered Aug 6, 2018 by Nilesh
• 7,060 points

Related Questions In Jenkins

+1 vote
3 answers
0 votes
1 answer
+3 votes
7 answers

Is it possible to shift or move jobs between two jenkins servers?

Hi, You can copy Jobs in between your ...READ MORE

answered Dec 16, 2020 in Jenkins by MD
• 95,460 points
45,115 views
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
3,943 views
+2 votes
1 answer
0 votes
1 answer

Why is it displaying Jenkins build failure for Android app

I think you should try this. Try Uninstalling ...READ MORE

answered Apr 12, 2018 in Jenkins by shubham
• 7,340 points
1,706 views
+2 votes
5 answers
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP