jenkins可以将其“执行外壳"隐藏吗?运行作业时执行命令? [英] Can jenkins hide its "execute shell" command when running a job?
本文介绍了jenkins可以将其“执行外壳"隐藏吗?运行作业时执行命令?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
例如,如果我将bash abc.sh
放入"execute shell"中,则作业输出将为:
For Example if I put bash abc.sh
in the "execute shell", The job output will be:
+ bash abc.sh
the output of the script
但是我想要的只是此脚本的输出,我可以做些什么来隐藏+ bash abc.sh
吗?
But what I want is only the output of this script, is there anything i can do to hide the + bash abc.sh
?
谢谢.
推荐答案
似乎我找到了答案....
It seems i find the answer....
set +x
<command>
set -x
这解决了我的问题.
这篇关于jenkins可以将其“执行外壳"隐藏吗?运行作业时执行命令?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文