I'm using Bamboo to execute mbsbuild tasks. On one task I need to pass a bamboo project variable to an msbuild propertygroup item.
I'm passing the following arguments in the Options parameter for my build task.
/p:Issues="${bamboo.DBChanges}" /target:UpdateDatabase
The target is executed properly, but the Issues item is never set.
Here is where my Issues property group is defined in my script.
<PropertyGroup> <Issues></Issues> </PropertyGroup>
The problem was the <propertygroup> was defined inside of a target and should have been defined globally, or outside of all targets.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.