简体   繁体   English

如何在 jenkins 控制台 output 中查看 shell 脚本日志

[英]How to view shell script logs in jenkins console output

I'm running some shell scripts in a remote server using publish over SSH plugin in jenkins.我正在使用 jenkins 中的 SSH 插件在远程服务器上运行一些 shell 脚本。 In jenkins console I'm only getting if the scripts executed successfully or not.在 jenkins 控制台中,我只会在脚本执行成功与否的情况下获得。 But, I want to get all the logs that the scripts echo in the console但是,我想获取脚本在控制台中回显的所有日志

Any Idea how to configure that?任何想法如何配置?

Try adding -x option for shell script which prints debug logs.尝试为打印调试日志的 shell 脚本添加-x选项。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM