Skip to content
Snippets Groups Projects

passing the correct exit code of the test job to lhcbpr

Merged Maciej Pawel Szymanski requested to merge periodic_exitcode into prepare-for-new-jenkins
1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
+ 2
2
@@ -213,17 +213,17 @@ then
else
OUTPUT_PATH="$LHCBPR_MOCK_OUTPUT_PATH"
fi
RETCODE=$?
popd
PATH=$OLDPATH
RETCODE=$?
date +"%Y-%m-%d %T %z" > end.txt
echo "==> Return code: $RETCODE"
# Gathering the results with LHCbPR
if [ "$RETCODE" = "0" ] ; then
echo "Run OK now gathering the results"
lbpr-collect -r $OUTPUT_PATH -s "`cat start.txt`" -e "`cat end.txt`" -p `hostname` -c `cat platform.txt` --opt-content='{options[content]}' {setup_args} {exec_args} --opt-name='{options[description]}' -l '{handlers}' --app-name='{app_name}' --app-version='{app_version}' --app-version-datetime="{app_version_datetime}" -a
lbpr-collect -r $OUTPUT_PATH -s "`cat start.txt`" -e "`cat end.txt`" -p `hostname` -c `cat platform.txt` --opt-content='{options[content]}' {setup_args} {exec_args} --opt-name='{options[description]}' -l '{handlers}' --app-name='{app_name}' --app-version='{app_version}' --app-version-datetime="{app_version_datetime}" -t $RETCODE -a
else
echo "Non 0 return code - Will NOT gather the results and push to LHCbPR"
fi
Loading