Can jenkins hide its “execute shell” command when running a job?

人走茶凉 提交于 2021-02-20 18:54:11

问题


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

But what I want is only the output of this script, is there anything i can do to hide the + bash abc.sh?

Thanks in advance.


回答1:


It seems i find the answer....

set +x
<command>
set -x

This solves my problem.



来源:https://stackoverflow.com/questions/46420241/can-jenkins-hide-its-execute-shell-command-when-running-a-job

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!