Merge pull request #9784 from saad-ali/jenkinsSymlinkFix

Jenkins E2E build should not fail if symlink to junit file already exists
pull/6/head
Fabio Yeon 2015-06-15 13:37:09 -07:00
commit 3f62e420cb
1 changed files with 2 additions and 1 deletions

View File

@ -227,8 +227,9 @@ fi
# TODO(zml): We have a bunch of legacy Jenkins configs that are
# expecting junit*.xml to be in ${WORKSPACE} root and it's Friday
# 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
ln -s ${junit} ${WORKSPACE}
ln -s -f ${junit} ${WORKSPACE} || true
done
### Clean up ###