Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Release management causing build to fail

I'm trying to configure release management to run with our TFS. Upon building I get an exception and cannot work out how to fix it:

Exception Message: Release build failed (type Exception) Exception Stack Trace: at System.Activities.Statements.Throw.Execute(CodeActivityContext context) at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager) at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)

The releases do not appear on the release management client. So i can only assume it cant reach the release management server? Is there anyway to get more debug information?

I cant find much information on this?

like image 668
Westy10101 Avatar asked Mar 17 '23 16:03

Westy10101


2 Answers

In addition to what Wouter said (Hi Wouter! :)):

  1. Make sure the Release Management client is installed on your build agent. Once it's installed, make sure you've run it and connected it to your RM server. The account you do this as does not matter.
  2. Make sure the Build service account (the account that all of your builds run as) is a Service User in Release Management.
like image 157
Daniel Mann Avatar answered Mar 20 '23 05:03

Daniel Mann


To find out what;s causing the error you can edit your Build Definition and then disable the Release trigger. Then make sure your builds succeeds.

If the build succeeds without triggering a release, you can start a manual release from the RM Client and then select the latest build output that you just created.

This way, you can track the details of your release.

If both succeed, it could be that the account you're running your builder under doesn't have permissions to trigger a release in RM. You should check the account and make sure it can execute tasks on behalf of others.

like image 28
Wouter de Kort Avatar answered Mar 20 '23 06:03

Wouter de Kort