1
0
Fork 0

handling missing diff.json

This commit is contained in:
Christian Kühnel 2019-11-18 17:05:15 +01:00
parent 65a9b864d2
commit e2725013d4

View file

@ -75,7 +75,12 @@ pipeline {
// copy console log to result folder
sh "wget -qO console-log.txt http://jenkins-ui.jenkins.svc.cluster.local:8080/job/${JOB_BASE_NAME}/${BUILD_NUMBER}/consoleText"
// keep a copy of the answer from Phabricator for debugging
sh "cp ${DIFF_JSON} ."
sh """
set -eu
if [ -f "${DIFF_JSON}" ]; then
cp ${DIFF_JSON} .
fi
"""
}
/// send results to Phabricator
sh '''