Jenkins E2E build should not fail if symlink to junit file already exists.

This commit is contained in:
saadali 2015-06-14 18:45:39 -07:00
parent 5e5c1d1097
commit 3bc1c18e12

View File

@ -227,8 +227,9 @@ fi
# TODO(zml): We have a bunch of legacy Jenkins configs that are # TODO(zml): We have a bunch of legacy Jenkins configs that are
# expecting junit*.xml to be in ${WORKSPACE} root and it's Friday # expecting junit*.xml to be in ${WORKSPACE} root and it's Friday
# afternoon, so just put the junit report where it's expected. # afternoon, so just put the junit report where it's expected.
# If link already exists, non-zero return code should not cause build to fail.
for junit in ${ARTIFACTS}/junit*.xml; do for junit in ${ARTIFACTS}/junit*.xml; do
ln -s ${junit} ${WORKSPACE} ln -s -f ${junit} ${WORKSPACE} || true
done done
### Clean up ### ### Clean up ###