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?