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
1,081 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 23, 2018 by shubham
• 6,890 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,880 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
3,002 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,870 points
838 views
+13 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 26, 2018 in DevOps & Agile by DragonLord999
• 8,380 points
217 views
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,890 points
267 views
+2 votes
5 answers