I need to create a Jenkins agent cloud that runs under Windows virtual machines on Amazon EC2.
My look at this is a simple scenario:
I have few AMI presets, each VM has a specific environment that corresponds to one of my projects. I have few projects to create often enough to support the VM. But some builds will be performed weekly, others -... Jenkins should be able to automatically start the virtual machine when the project needs to be built, and shutdown the VM when the build is complete. I have several BCB projects and many .NET projects, Windows as a slave VM OS is absolutely necessary.
There is no problem preparing a preconfigured AMI where the Jenkins slave is installed and configured. But I have no idea how to manage such subordinate virtual machines from master (start / end them)
I found an Amazon EC2 plugin that can be used to start and shut down virtual machines. But he is also trying to install and run a slave there. Unfortunately, Windows slaves are not yet supported. Is there a way to use pre-configured AMI or enable the Amazon EC2 plug-in installation agent in Windows VM?
I also tried to use TeamCity - it can launch preconfigured AMI windows and build projects there (exactly my scenario). But I need too many virtual machines, and my boss is not ready to pay for licenses (3 free licenses are not enough)
Can I use Jenkins for my script? Are there any other alternatives?
source share