Run upload-to-gcs.sh after upload-finished.sh.

This commit is contained in:
Jeff Grafton 2016-03-23 15:28:06 -07:00
parent 69b3cb36a6
commit 601ecaff0a

View File

@ -13,13 +13,6 @@
publishers:
- postbuildscript:
builders:
# Use our script for build artifacts, since it's more flexible.
- shell: |
if [[ -x ./hack/jenkins/upload-to-gcs.sh ]]; then
./hack/jenkins/upload-to-gcs.sh
else
curl -fsS --retry 3 "https://raw.githubusercontent.com/kubernetes/kubernetes/master/hack/jenkins/upload-to-gcs.sh" | bash -
fi
- shell: |
curl -fsS --retry 3 "https://raw.githubusercontent.com/kubernetes/kubernetes/master/hack/jenkins/upload-finished.sh" > upload-finished.sh
chmod +x upload-finished.sh
@ -47,6 +40,14 @@
condition-best: ABORTED
steps:
- shell: './upload-finished.sh ABORTED'
# Use our script for build artifacts, since it's more flexible.
# Run last since it updates latest-build.txt.
- shell: |
if [[ -x ./hack/jenkins/upload-to-gcs.sh ]]; then
./hack/jenkins/upload-to-gcs.sh
else
curl -fsS --retry 3 "https://raw.githubusercontent.com/kubernetes/kubernetes/master/hack/jenkins/upload-to-gcs.sh" | bash -
fi
script-only-if-succeeded: False
script-only-if-failed: False
# Use the plugin for the build log, since it isn't available on Jenkins slaves.