mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 20:24:09 +00:00
Merge pull request #18300 from spxtr/build-job
Auto commit by PR queue bot
This commit is contained in:
commit
90d5bc1834
65
hack/jenkins/job-configs/kubernetes-build.yaml
Normal file
65
hack/jenkins/job-configs/kubernetes-build.yaml
Normal file
@ -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}'
|
@ -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 -'
|
||||
|
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user