set -o nounset ## (set -u) error exit on attempts to deref undefined variable
set -o errexit ## (set -e) error exit if subcommand returns nonzero
+set -o pipefail ## propagate error exit down pipe
+set -o errtrace ## propagate error across time and similar commands
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
echo CLASSPATH=${CLASSPATH}
echo FINDBUGS_HOME=${FINDBUGS_HOME}
-rm cfb.fbp
+if [ -e cfb.fbp ]; then
+ rm cfb.fbp
+fi
+
cat >cfb.fbp <<EOF
<Project projectName="CFB">
<Jar>${WORKSPACE}/bin</Jar>
</Project>
EOF
-cat cfb.fbp
+#cat cfb.fbp
./go.sh -c ${SCRIPT_DIR}/config.properties -d cfb -u cfb -p cfb -f cfb.fbp -n jenkins_${JOB_NAME}_${BUILD_NUMBER} -o ${OUT_FILE}