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.
You can type set +x before any command to temporary override that behavior. Of course you will need set -x to start showing them again.
Using Jenkins built-in "Execute shell" you can run commands using unix shell. If you need to run a job cross platform you cannot use the two standard executors provided by Jenkins. You need a "build step" that can be executed both in Windows and in Unix.
It seems i find the answer....
set +x
<command>
set -x
This solves my problem.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With