问题
I'm running TeamCity Professional 4.5.3 and FinalBuilder Pro 6; TeamCity's running the FinalBuilder project using a command-line task.
How do I get FinalBuilder to print messages into the build log, so that TeamCity will capture them? The TeamCity documentation is clear enough but I can't find any way to output the required values from FinalBuilder - do I need to call echo
as a DOS command, or run a tiny snippet of script, or something?
回答1:
Use the Run Script action (Javascript) :
Action.SendLogMessage("hello team city",stInformation);
回答2:
Action.SendLogMessage("Hello World!",stInformation)
来源:https://stackoverflow.com/questions/1010182/how-can-i-output-messages-from-finalbuilder-that-will-be-captured-by-teamcity