如何从FinalBuilder中输出将由TeamCity捕获的消息? [英] How can I output messages from FinalBuilder that will be captured by TeamCity?
问题描述
我正在运行TeamCity Professional 4.5.3和FinalBuilder Pro 6; TeamCity使用命令行任务运行FinalBuilder项目。
I'm running TeamCity Professional 4.5.3 and FinalBuilder Pro 6; TeamCity's running the FinalBuilder project using a command-line task.
如何让FinalBuilder将消息打印到构建日志中,以便TeamCity捕获它们? TeamCity文档已足够清楚,但我不能找到任何方法从FinalBuilder中输出所需的值 - 我需要调用 echo
作为DOS命令,或者运行一小段脚本或某事? / p>
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?
推荐答案
使用运行脚本操作(Javascript):
Use the Run Script action (Javascript) :
Action.SendLogMessage("hello team city",stInformation);
这篇关于如何从FinalBuilder中输出将由TeamCity捕获的消息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!