Using Warewolf as a local Bamboo build agent

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:

 

Steps for using Warewolf as a local Bamboo build agent:

1. Start the Create a new plan wizard in Bamboo.bamboo create a new plan

2. Enter some data for Project Name and Plan Name.bamboo project and build plan name

 

3. You can Delete Task as per image. The Warewolf build agent will do this.bamboo configure tasks delete task

 

4. Now click Add Task.bamboo configure tasks

 

5.Select the Command task.bamboo command execute

 

6. Click Add new executable.Bamboo add new executable

 

7. Enter the path to your compiled WarewolfAgent.exe. (For this example my path is “C:\bamboo-home\Plugins\WarewolfAgent.exe”) and click Add.bamboo adding new executable

 

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” .bambooo executable arguement

 

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” .bamboo save command configuration

 

10. Click Save and then click Add task.bamboo add task

 

11. Click the Tests category and then select the MSTest Parser.bamboo 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.bamboo mstest parser configuration save

 

13. Check the Yes please! box to enable this planyes please enable plan bamboo

 

14. Click Create.bamboo configure tasks create

 

15. Bamboo will start an initial build. If it runs correctly this is what the build summary should look like after about 30 seconds.warewolf as a local bamboo agent

 

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.

FacebookTwitterLinkedInGoogle+RedditEmail

Leave A Comment?