Udostępnij za pośrednictwem


Release Management Update 2 fails

If you are using the out of the box Release Management build templates with Team Foundation Server 2013 Update 2 and Release Management Update 2 you may in certain circumstances get a variety of errors and your build will not deploy. These errors can be generic like “Exception Message: Release build failed (type Exception)” to “Exception Message: Values must be bound to a non-null expression before ForEach activity 'Process each ConfigurationsToRelease' can be used.” There are several other errors which may appear as well.

It isn’t you!

It appears as though the wrong Release Management process template was shipped in the box with RM Update 2. The RM Update 2 build templates, by default are in the folder C:\Program Files (x86)\Microsoft Visual Studio 12.0\Release Management. Do NOT use the build templates from this folder. Instead, download the good templates from here:

https://blogs.msdn.com/b/visualstudioalm/archive/2013/12/09/how-to-modify-the-build-process-template-to-use-the-option-trigger-release-from-build.aspx

Now that that’s out of the way, how do you tell which template you are currently using? That’s easy. Edit your build definition and go to the Process tab. Scroll to the bottom of the screen and you’ll see one of the two views:

ReleaseSection

The Release section shown on the right is the out of the box build template. The one on the left is the good template which can be downloaded from the URL above.

The next problem is going to be the Configurations to Release. It appears as though we found a bug in the template which the team is now aware of. If you try to do the build without filling in the Configurations To Build or the Configurations To Release section of the build process, the deploy will fail with the second error message shown above. In order to make this work, you must specify at least one configuration in the Configurations To Build section even if you only want the default configuration built.

Once you do that, everything will work!

Comments

  • Anonymous
    August 14, 2014
    Hey Jeff I was dealing with that exact problem last night! After downloading the new templates specified above it works. Question though... do the templates in the "C:Program Files (x86)Microsoft Visual Studio 12.0Release Management" folder need to be replaced with the new ones. Also, are there ones available for the Upgrade templates? Jason

  • Anonymous
    August 14, 2014
    Are the ones listed here okay to use? blogs.msdn.com/.../how-to-modify-the-upgradetemplate-xaml-to-enable-releasing-from-a-build.aspx

  • Anonymous
    August 30, 2014
    @Stone9 Sorry for the delay in getting back to you. The ones in the folder do not need to be replaced, just don't use them :) Yes, the ones at the second link will work fine. Leo is actually one of the program managers on the team.

  • Anonymous
    September 03, 2014
    The comment has been removed

  • Anonymous
    September 09, 2014
    Thanks @Glen. I'll fix this post this message. Good catch.

  • Anonymous
    December 28, 2014
    Companies rely on Latitude 40 Consulting to help them realize their business goals with quality custom software built just for them. We help enterprises make the most of their investments by using best-practices methodology to tailor comprehensive business solutions – solutions that can grow as you grow and change as the business changes… without costly re-engineering. This provide maximum return on investment for your custom software investment dollar.

  • Anonymous
    December 04, 2015
    Hi,  I just downloaded the zip and it's showing the file on the right.  Was this fixed or is the download now incorrect? I'm still getting build failures, but Release Management is successful.