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,220 points
503 views

2 answers to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
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 23, 2018 by shubham
• 6,560 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
• 6,900 points

Related Questions In Jenkins

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

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

There are some Jenkins plugins out there ...READ MORE

answered Oct 25, 2018 in Jenkins by akaash
154 views
0 votes
1 answer

How to construct Maven installation in Jenkins for each Slave node?

I’m assuming that Java and Maven are ...READ MORE

answered Aug 1, 2018 in Jenkins by Sophie may
• 9,250 points
419 views
+13 votes
2 answers
0 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
• 6,560 points
179 views
+2 votes
5 answers

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.