From 3bc1c18e1261971932032562fedc190e5bbdb16a Mon Sep 17 00:00:00 2001 From: saadali Date: Sun, 14 Jun 2015 18:45:39 -0700 Subject: [PATCH] Jenkins E2E build should not fail if symlink to junit file already exists. --- hack/jenkins/e2e.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hack/jenkins/e2e.sh b/hack/jenkins/e2e.sh index 9af3bf99ae2..e54f94a0686 100755 --- a/hack/jenkins/e2e.sh +++ b/hack/jenkins/e2e.sh @@ -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 ###