- clone current repository to your local computer
- run "mvn clean package"
- install resulted *.zip file to teamcity server
- create one or more Openstack machines
- install a standard TeamCity build agent on them, you only need to fill TEAMCITY_SERVER_URL WARNING: you shouldn't start build agent while preparing image
- create images from machines with installed agent.
Fill cloud config with your openstack-instance parameters. Configuration example:
Once you have created a cloud profile in TeamCity with one or several images, TeamCity does a test start for all the new images to discover the environment of the build agents configured on them. If for a queued build there are no regular non-cloud agents available, TeamCity will find a matching cloud image with a compatible agent and start a new instance for the image. After that, a virtual agent acts as a regular agent. You can specify idle time on the agent cloud profile, after which the instance should be terminated or stopped, in case you have an EBS-based instance.
Use Openstack virtual agents as regular build agents