Get the most out of Bamboo builds using Warewolf for free. In my last blog post I went through (on video) the three step process for running the example build on Warewolf. In this post I’ll go through the 14 step process for using Warewolf as a local Bamboo build agent.
Prerequisites for using Warewolf as a local Bamboo build agent:
- Performed the three steps from my previous blog post.
- Install the Bamboo Server
- You have compiled WarewolfAgent.exe from http://github.com/SalamiArmy/WarewolfBuildAgent
Steps for using Warewolf as a local Bamboo build agent:
1. Start the Create a new plan wizard in Bamboo.
2. Enter some data for Project Name and Plan Name.
3. You can Delete Task as per image. The Warewolf build agent will do this.
7. Enter the path to your compiled WarewolfAgent.exe. (For this example my path is “C:\bamboo-home\Plugins\WarewolfAgent.exe”) and click Add.
8. Enter the path to the example event handler service in this format, with quotes and start with “Workflow:”. It is safer to URL encode the path to the example event handler service like: “Examples/Run%20an%20Example%20Build/Event%20Handler%20-%20Run%20me” .
9. Now enter the Example event handler service query parameters to the end of the path in this format, starting with a question mark ( ? ) and separated with an ampersand ( & ). With URL encoding “C:\Builds” becomes “C%3A%5CBuilds” and “ashley.lewis@example.com” becomes “Ashley.lewis%40example.com” .
10. Click Save and then click Add task.
11. Click the Tests category and then select the MSTest Parser.
12. Enter the local path to the test results .trx file. (This will be relative to what build workspace you pass as a query parameter to the example event handler service, something like: \Workspaces\ExampleBuild\TestResults\*.trx) and click Save.
13. Check the Yes please! box to enable this plan
15. Bamboo will start an initial build. If it runs correctly this is what the build summary should look like after about 30 seconds.
The benefits of using Warewolf as a local Bamboo build agent:
Running local builds with Warewolf agents means not having to define builds with Bamboos workflow editor and rather use Warewolf’s workflow designer. This also avoids Bamboo’s 10 job limit for the starter licence. If you look carefully at the Warewolf Build Agent code you’ll notice you can also pass a hostname other than localhost allowing for running builds on remote Warewolf build agents. This would also avoid Bamboo’s starter licence restrictions on the number of remote agents. This allows you to have as many as you’d like… for free.
So if you are paying a single cent for your build rig, consider this Bamboo as controller with Warewolf agents solution. We developed it because TFS was too expensive. Please leave a comment if this also saves you money or if you’d like to share other how you get more DevOps infrastructure for less.
Leave A Comment?