Hi
Some of my Jenkins jobs run bash shell scripts that are stored in Subversion. The scripts are quite complex and may contain ‘for’ loops:
For example:
for Simulation in $SimulationsList_1
do
cd $SIM_PATH_1/$Simulation
zip -qr $SIM_PATH_1/$Simulation'_'$BUILD_NUMBER *
done
The Jenkins console output for such a loop is quite noisy. For example, the ‘for’ statement is printed in every iteration.
Is there a way of making a script command silent? For example, I would like to make the line containing ‘for’ silent.
Best regards
David
And you can shut up zip completelly with -qq
Garami Gábor
gabor....@hron.me
Skype: hron84
Tel: +36 20 235 9621
Sent from my T-Mobile G2
Ezt a levelet telefonról adták fel, ékezethibákat tartalmazhat.
If the first line of a shell build step starts with hashbang (#!),
then Jenkins will simply drop the script as is into a tmp file and
execute it.
Otherwise Jenkins copies the script into a tmp file and executes it
using /bin/sh -xe /tmp/somefilename
And /bin/sh, is just the shell used by Jenkins by default. You can
change the default under Manage Jenkins -> Configure System.
-- Sami
2012/4/11 Zoltan Gyarmati <zoltan....@blumsoft.eu>: