mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 13:37:30 +00:00
Run upload-to-gcs.sh after upload-finished.sh.
This commit is contained in:
parent
69b3cb36a6
commit
601ecaff0a
@ -13,13 +13,6 @@
|
|||||||
publishers:
|
publishers:
|
||||||
- postbuildscript:
|
- postbuildscript:
|
||||||
builders:
|
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: |
|
- shell: |
|
||||||
curl -fsS --retry 3 "https://raw.githubusercontent.com/kubernetes/kubernetes/master/hack/jenkins/upload-finished.sh" > upload-finished.sh
|
curl -fsS --retry 3 "https://raw.githubusercontent.com/kubernetes/kubernetes/master/hack/jenkins/upload-finished.sh" > upload-finished.sh
|
||||||
chmod +x upload-finished.sh
|
chmod +x upload-finished.sh
|
||||||
@ -47,6 +40,14 @@
|
|||||||
condition-best: ABORTED
|
condition-best: ABORTED
|
||||||
steps:
|
steps:
|
||||||
- shell: './upload-finished.sh ABORTED'
|
- 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-succeeded: False
|
||||||
script-only-if-failed: False
|
script-only-if-failed: False
|
||||||
# Use the plugin for the build log, since it isn't available on Jenkins slaves.
|
# Use the plugin for the build log, since it isn't available on Jenkins slaves.
|
||||||
|
Loading…
Reference in New Issue
Block a user