16. ThoughtForge.net
Automation with
Cloudstack
• Create new VM’s as required
• Bootstrap VM’s with the necessary
role
• Update firewall rules as necessary
• Scale based on demand
• Automatically rebuild failed
instances
18. ThoughtForge.net
Let’s automate from
Check-in to Production
• Jenkins Build Pipeline plugin manages from
check-in through to production
– Unit tests
– Integration test
– Sonar
– Artifactory
– Acceptance
– Performance
– Live
• Every check-in is release candidate
19. ThoughtForge.net
The must haves
• Set version number and create new git
branch
• Compile and run unit tests with Maven
• Clone workspace for other jobs
• Run integration tests with Maven
• Run sonar analysis
• Publish binary to artifactory
• Failed tests / Inadequate test coverage
/ Sonar alerts break build
20. ThoughtForge.net
Acceptance + Performance
• Python Script
– Create a new server with
Cloudstack API
– Retrieve IP address from
Cloudstack API
• Chef – bootstrap server with
role
• Binaries from artifactory
• Run acceptance tests using maven