From 6bd450ba052ef0fbd27c4c49a14d363cc8d0f3a1 Mon Sep 17 00:00:00 2001 From: Jeff Grafton Date: Mon, 2 Nov 2015 17:34:07 -0800 Subject: [PATCH] Update comment on how to use script --- hack/jenkins/upload-to-gcs.sh | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/hack/jenkins/upload-to-gcs.sh b/hack/jenkins/upload-to-gcs.sh index 79eef11116b..5a8542f34c9 100755 --- a/hack/jenkins/upload-to-gcs.sh +++ b/hack/jenkins/upload-to-gcs.sh @@ -17,10 +17,13 @@ # Source this script in the Jenkins "Execute shell" build action to have all # test artifacts and the console log uploaded at the end of the test run. -# For example, you might use the following line as the first command: -# mkdir -p _tmp/ && curl -fsS --retry 3 -o _tmp/upload-to-gcs.sh \ -# "https://raw.githubusercontent.com/kubernetes/kubernetes/master/hack/jenkins/upload-to-gcs.sh" \ -# && source _tmp/upload-to-gcs.sh +# For example, you might use the following snippet as the first few lines: +# +# if [[ -f ./hack/jenkins/upload-to-gcs.sh ]]; then +# source ./hack/jenkins/upload-to-gcs.sh +# else +# curl -fsS -o upload-to-gcs.sh --retry 3 "https://raw.githubusercontent.com/kubernetes/kubernetes/master/hack/jenkins/upload-to-gcs.sh" && source upload-to-gcs.sh; rm -f upload-to-gcs.sh +# fi # Note that this script requires the Jenkins shell binary to be set to bash, not # the system default (which may be dash on Debian-based systems).