-
New Feature
-
Resolution: Fixed
-
Major
-
Jenkins on tomcat 7
When executing any command throught SSH I see this in the log:
SSH: EXEC: STDOUT/STDERR from command [## # Some commands here if [ ! -f $bkpSh ] then echo "[ERROR] backup.sh does not exist!" exit 1 fi # ... ] ...
I would like to be able to hide SSH command code. An option to hide code might be set per SSH command or even per Jenkins installation (in the main configuration).
The problem is that I cannot easily use TextFinder (it will find "[ERROR]" no matter what the result is). This also clutters the log in most cases (or at least in my case).
This is really needed!
Its also needed if you want to print enviroment-variables that contains passwords and so on...
I think the best way would be like the "Execute Shell" is doing.
Default it runs with # !/bin/sh -ex Which makes it print all commands its running, if you want to overwrite you simply put # !/bin/sh at the top line.
So your "Exec Command" would like like this:
#!/bin/sh
if [ ! -f $bkpSh ]
then
echo "[ERROR] backup.sh does not exist!"
exit 1
fi