Skip to content

Commit

Permalink
Merge pull request kubernetes#18300 from spxtr/build-job
Browse files Browse the repository at this point in the history
Auto commit by PR queue bot
  • Loading branch information
k8s-merge-robot committed Dec 9, 2015
2 parents 77a5ba6 + 89f6e1b commit 90d5bc1
Show file tree
Hide file tree
Showing 3 changed files with 69 additions and 4 deletions.
65 changes: 65 additions & 0 deletions hack/jenkins/job-configs/kubernetes-build.yaml
Original file line number Diff line number Diff line change
@@ -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: |
<org.jenkinsci.plugins.mailwatcher.WatcherJobProperty plugin="mail-watcher-plugin@1.13">
<watcherAddresses>cloud-kubernetes-team@google.com</watcherAddresses>
</org.jenkinsci.plugins.mailwatcher.WatcherJobProperty>
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}'
6 changes: 3 additions & 3 deletions hack/jenkins/job-configs/kubernetes-update-jenkins-jobs.yaml
Original file line number Diff line number Diff line change
@@ -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 -'
2 changes: 1 addition & 1 deletion hack/jenkins/update-jobs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}

0 comments on commit 90d5bc1

Please sign in to comment.