Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TFS, how to get output from post-build?

Tags:

stdout

tfs

I'm using TFS Server 2013 preview to build my web app, and want to call a command line tool after the build.

I'd like to use the "post-build script path" property to do this, rather than customise the build template. It looks like exactly what I want.

The problem is that I don't seem to get anything from stdout or stderr in the build logs.

I've tried redirecting output to a file by adding " > log.txt" to the end of the arguments section but it doesn't help. I'm not sure it can help either, as it's not an argument to be passed into the command line tool.

Any ideas on how I can get the output from the command line?

like image 612
Justin Caldicott Avatar asked Dec 03 '25 11:12

Justin Caldicott


1 Answers

You need to look at the TFS web application to get the diagnostic log output. Full answer is here:

TFS 2013 default template run powershell script and log output

like image 75
Rob Cannon Avatar answered Dec 05 '25 06:12

Rob Cannon