From 89f6e1bdd78b19fb61e571f802039af438f651b5 Mon Sep 17 00:00:00 2001 From: Joe Finney Date: Tue, 8 Dec 2015 09:34:47 -0800 Subject: [PATCH] Check in kubernetes-build job configs. --- .../jenkins/job-configs/kubernetes-build.yaml | 65 +++++++++++++++++++ .../kubernetes-update-jenkins-jobs.yaml | 6 +- hack/jenkins/update-jobs.sh | 2 +- 3 files changed, 69 insertions(+), 4 deletions(-) create mode 100644 hack/jenkins/job-configs/kubernetes-build.yaml diff --git a/hack/jenkins/job-configs/kubernetes-build.yaml b/hack/jenkins/job-configs/kubernetes-build.yaml new file mode 100644 index 0000000000000..26c3ee6b08e89 --- /dev/null +++ b/hack/jenkins/job-configs/kubernetes-build.yaml @@ -0,0 +1,65 @@ +- job-template: + name: 'kubernetes-{build}' + description: 'Grab the latest from GitHub, build. Test owner: Build Cop.' + logrotate: + numToKeep: 200 + builders: + - shell: './hack/jenkins/build.sh' + properties: + # Mail Watcher Plugin alerts the specified address whenever a job config is updated or deleted. + - raw: + xml: | + + cloud-kubernetes-team@google.com + + publishers: + - claim-build + - email-ext: + recipients: $DEFAULT_RECIPIENTS, cloud-kubernetes-team@google.com + presend-script: $DEFAULT_PRESEND_SCRIPT + fail: true + fixed: true + send-to: + - culprits + - recipients + - google-cloud-storage: + credentials-id: kubernetes-jenkins + uploads: + - build-log: + log-name: build-log.txt + storage-location: gs://kubernetes-jenkins/logs/$JOB_NAME/$BUILD_NUMBER + share-publicly: true + upload-for-failed-jobs: true + - logparser: + parse-rules: /jenkins-master-data/log_parser_rules.txt + unstable-on-warning: false + fail-on-error: false + scm: + - git: + url: https://github.com/kubernetes/kubernetes + branches: + - '{branch}' + browser: githubweb + browser-url: https://github.com/kubernetes/kubernetes + wipe-workspace: false + skip-tag: true + triggers: + - pollscm: + cron: 'H/2 * * * *' + wrappers: + - timeout: + timeout: 30 + abort: true + - timestamps + +- project: + name: kubernetes-builds + build: + - 'build': + branch: 'master' + - 'build-1.0': + branch: 'release-1.0' + - 'build-1.1': + branch: 'release-1.1' + jobs: + - 'kubernetes-{build}' diff --git a/hack/jenkins/job-configs/kubernetes-update-jenkins-jobs.yaml b/hack/jenkins/job-configs/kubernetes-update-jenkins-jobs.yaml index 86bac456a3393..c5af96c358c81 100644 --- a/hack/jenkins/job-configs/kubernetes-update-jenkins-jobs.yaml +++ b/hack/jenkins/job-configs/kubernetes-update-jenkins-jobs.yaml @@ -1,9 +1,9 @@ - job: name: kubernetes-update-jenkins-jobs - description: "Update Jenkins jobs" + description: 'Update Jenkins jobs' triggers: - - timed: "H/15 * * * *" + - timed: 'H/15 * * * *' builders: - - shell: "curl -fsS https://raw.githubusercontent.com/kubernetes/kubernetes/master/hack/jenkins/update-jobs.sh | /bin/bash -" + - shell: 'curl -fsS https://raw.githubusercontent.com/kubernetes/kubernetes/master/hack/jenkins/update-jobs.sh | /bin/bash -' diff --git a/hack/jenkins/update-jobs.sh b/hack/jenkins/update-jobs.sh index a14a41ede9023..6fdbafb2d46ca 100755 --- a/hack/jenkins/update-jobs.sh +++ b/hack/jenkins/update-jobs.sh @@ -42,4 +42,4 @@ fi docker exec job-builder git checkout master docker exec job-builder git pull -docker exec job-builder jenkins-jobs test ${config_dir} +docker exec job-builder jenkins-jobs update ${config_dir}