Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Invoke process activity not logging any error in log file

I am trying to use Invoke process to invoke an executable from my windows workflow in my TFS 2010 build. But when I am looking at the log file it is not logging any error. I did use WriteBuildMessage and WriteBuildwarning inside my invoke process activity. I also set the filename,workingdirectory etc in activity.

Can someone please point out why it is not logging?

like image 846
alice7 Avatar asked Dec 01 '11 16:12

alice7


1 Answers

You can do something like this:
enter image description here

In this case you have to ensure that Message are set as follows:
enter image description here
enter image description here

With those parameters set as depicted, I catch what you seem to be after.

Furthermore, you can check in the Properties of your InvokeProcess:
Set the Result into a string-variable and then set in a subsequent WriteBuildMessage this string-variable to be the Message. This way, you 'll additionally catch the return of your invoked process.

EDIT
Another common thing that you 've possibly overlooked is the BuildMessageImportance: if it is not set as High, messages do NOT appear under default Logging Verbosity (= Normal). See here for some background.

like image 164
pantelif Avatar answered Sep 21 '22 21:09

pantelif