mirror of https://github.com/k3s-io/k3s
Run upload-to-gcs.sh as a post build script
parent
71018d3af6
commit
33c1f15c21
|
@ -11,6 +11,7 @@
|
||||||
- publisher:
|
- publisher:
|
||||||
name: gcs-uploader
|
name: gcs-uploader
|
||||||
publishers:
|
publishers:
|
||||||
|
# Use the plugin for the build log, since it isn't available on Jenkins slaves.
|
||||||
- google-cloud-storage:
|
- google-cloud-storage:
|
||||||
credentials-id: kubernetes-jenkins
|
credentials-id: kubernetes-jenkins
|
||||||
uploads:
|
uploads:
|
||||||
|
@ -19,6 +20,17 @@
|
||||||
storage-location: gs://kubernetes-jenkins/logs/$JOB_NAME/$BUILD_NUMBER
|
storage-location: gs://kubernetes-jenkins/logs/$JOB_NAME/$BUILD_NUMBER
|
||||||
share-publicly: true
|
share-publicly: true
|
||||||
upload-for-failed-jobs: true
|
upload-for-failed-jobs: true
|
||||||
|
# Use our script for build artifacts, since it's more flexible.
|
||||||
|
- postbuildscript:
|
||||||
|
builders:
|
||||||
|
- 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
|
||||||
|
|
||||||
# Default log parser rules.
|
# Default log parser rules.
|
||||||
- publisher:
|
- publisher:
|
||||||
|
|
|
@ -9,6 +9,8 @@
|
||||||
- mail-watcher
|
- mail-watcher
|
||||||
publishers:
|
publishers:
|
||||||
- claim-build
|
- claim-build
|
||||||
|
- gcs-uploader
|
||||||
|
- log-parser
|
||||||
- email-ext:
|
- email-ext:
|
||||||
recipients: $DEFAULT_RECIPIENTS, cloud-kubernetes-team@google.com
|
recipients: $DEFAULT_RECIPIENTS, cloud-kubernetes-team@google.com
|
||||||
presend-script: $DEFAULT_PRESEND_SCRIPT
|
presend-script: $DEFAULT_PRESEND_SCRIPT
|
||||||
|
@ -17,8 +19,6 @@
|
||||||
send-to:
|
send-to:
|
||||||
- culprits
|
- culprits
|
||||||
- recipients
|
- recipients
|
||||||
- gcs-uploader
|
|
||||||
- log-parser
|
|
||||||
scm:
|
scm:
|
||||||
- git:
|
- git:
|
||||||
url: https://github.com/kubernetes/kubernetes
|
url: https://github.com/kubernetes/kubernetes
|
||||||
|
|
|
@ -5,16 +5,15 @@
|
||||||
daysToKeep: 7
|
daysToKeep: 7
|
||||||
builders:
|
builders:
|
||||||
- shell: |
|
- shell: |
|
||||||
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
|
|
||||||
curl -fsS --retry 3 "https://raw.githubusercontent.com/kubernetes/kubernetes/{branch}/hack/jenkins/e2e.sh" | bash -
|
curl -fsS --retry 3 "https://raw.githubusercontent.com/kubernetes/kubernetes/{branch}/hack/jenkins/e2e.sh" | bash -
|
||||||
properties:
|
properties:
|
||||||
- mail-watcher
|
- mail-watcher
|
||||||
publishers:
|
publishers:
|
||||||
- claim-build
|
- claim-build
|
||||||
- email-ext
|
- junit-publisher
|
||||||
- gcs-uploader
|
- gcs-uploader
|
||||||
- log-parser
|
- log-parser
|
||||||
- junit-publisher
|
- email-ext
|
||||||
triggers:
|
triggers:
|
||||||
- reverse:
|
- reverse:
|
||||||
jobs: '{trigger-job}'
|
jobs: '{trigger-job}'
|
||||||
|
|
Loading…
Reference in New Issue