Redirecting shell output in Jenkins to a file
<p>I have a job in jenkins which executes many python scripts in a shell:</p>

<pre><code>#!/bin/bash -x
mkdir -p $WORKSPACE/validation/regression
rm -f $WORKSPACE/validation/regression/*.latest

cd $WORKSPACE/PythonTests/src/
# Execute test cases
python tests.py 031 &gt; $WORKSPACE/validation/regression/TP031output_b$BUILD_NUMBER.log
python tests.py 052 &gt; $WORKSPACE/validation/regression/TP052output_b$BUILD_NUMBER.log
python tests.py 060 &gt; $WORKSPACE/validation/regression/TP060output_b$BUILD_NUMBER.log
</code></pre>

<p>My intention is that each script output (which I can see in my terminal if I execute them manually) is stored in a log file with that classic redirection.</p>

<p>It used to work, but now it just creates an empty file. I can't find out what has changed since then.</p>

<p>Any hint?</p>