在Jenkins中显示日志文件 [英] Display log file in Jenkins

查看:1217
本文介绍了在Jenkins中显示日志文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在我运行的Jenkins作业的控制台输出中显示日志文件(存在于测试计算机中).
那可能吗? 如果是,我该怎么办?

I need to display a log file (which is present in a test machine), in the console output of a Jenkins job that I run.
Is that possible? If yes, how can I do that?

推荐答案

根据您的要求选择执行Windows批处理命令或执行Shell

Select execute Windows batch command or Execute Shell based on your requirement

然后使用"cat log.file"(Linux) "type log.file"(Windows)显示

then use "cat log.file" (linux) "type log.file" (windows) to display

这篇关于在Jenkins中显示日志文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆