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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.