Reputation: 971
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?
Upvotes: 4
Views: 4983
Reputation: 2896
Release build failed (type Exception) happened to me while checking-in one single project. Since the rest of them would check-in fine, I discarded anything related with RM client or any of that.
The real reason was, a step in my release configuration not being able to complete. This project is a windows service, and that service is supposed to start at the end of the deployment process. But the service was crashing at the very first line of code, so it didn't started, and the release was failing. Very tricky, I was onnly able to see it by reading the logs in Release Management.
Upvotes: 0
Reputation: 23434
I would recommend that you change to the vNext release templates. It does not require customisation of the build template as it listens instead to build events.
In 2013.4 you can configure the vNext template. I have a blog post on how to configure the bits: http://nakedalm.com/create-release-management-pipeline-professional-developers/
While I am using VSO and Azure servers for the demo, everything can run locally with 2013.4.
Upvotes: -1
Reputation: 58980
In addition to what Wouter said (Hi Wouter! :)):
Upvotes: 4
Reputation: 39888
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.
Upvotes: 4