forked from kubernetes/test-infra
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bootstrap-ci-commit.yaml
149 lines (135 loc) · 4.51 KB
/
bootstrap-ci-commit.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
# Bootstrap jobs that trigger on commits
- job-template:
builders:
- shell: |
# TODO(fejta): consider a stable tag instead of master
git clone https://github.com/kubernetes/test-infra -b master
'./test-infra/jenkins/bootstrap.py' \
--job='{job-name}' \
--json \
--repo='{repo-name}={branch}' \
--repo='k8s.io/release' \
--root="${{GOPATH}}/src" \
--service-account="${{GOOGLE_APPLICATION_CREDENTIALS}}" \
--timeout='{timeout}' \
--upload='gs://kubernetes-jenkins/logs'
disabled: false
name: 'ci-{commit-suffix}'
node: 'build'
properties:
- build-discarder:
num-to-keep: 200
scm: # TODO(fejta): migrate scm monitoring to prow.
- git:
url: '{giturl}'
basedir: 'go/src/{repo-name}' # Must match GOPATH below
branches:
- '{branch}'
skip-tag: true
wipe-workspace: false
triggers:
- pollscm:
cron: '{commit-frequency}'
wrappers:
- e2e-credentials-binding
- inject:
properties-content: |
GOROOT=/usr/local/go
GOPATH=$WORKSPACE/go
PATH=$PATH:$GOROOT/bin:$WORKSPACE/go/bin
- timeout:
timeout: 700
fail: true
- workspace-cleanup: # cleanup before the job starts, for clean build.
dirmatch: true
exclude:
- '**/.git/'
external-deletion-command: 'sudo rm -rf %s'
publishers:
- workspace-cleanup: # cleanup after job finishes, to not waste space.
dirmatch: true
exclude:
- '**/.git/'
external-deletion-command: 'sudo rm -rf %s'
- project:
jobs:
- 'ci-{commit-suffix}'
name: bootstrap-ci-commit
commit-suffix:
- kops-build:
branch: master
commit-frequency: 'H/2 * * * *'
giturl: 'https://github.com/kubernetes/kops'
job-name: ci-kops-build
repo-name: k8s.io/kops
timeout: 20
- kubernetes-build:
branch: master
commit-frequency: 'H/2 * * * *'
giturl: 'https://github.com/kubernetes/kubernetes'
job-name: ci-kubernetes-build
repo-name: k8s.io/kubernetes
timeout: 30
- kubernetes-cross-build:
branch: master
commit-frequency: 'H/5 * * * *'
giturl: 'https://github.com/kubernetes/kubernetes'
job-name: ci-kubernetes-cross-build
repo-name: k8s.io/kubernetes
timeout: 100
- kubernetes-build-1.4:
branch: release-1.4
commit-frequency: 'H/5 * * * *'
giturl: 'https://github.com/kubernetes/kubernetes'
job-name: ci-kubernetes-build-1.4
repo-name: k8s.io/kubernetes
timeout: 50
- kubernetes-build-1.5:
branch: release-1.5
commit-frequency: 'H/5 * * * *'
giturl: 'https://github.com/kubernetes/kubernetes'
job-name: ci-kubernetes-build-1.5
repo-name: k8s.io/kubernetes
timeout: 50
- kubernetes-build-1.6:
branch: release-1.6
commit-frequency: 'H/5 * * * *'
giturl: 'https://github.com/kubernetes/kubernetes'
job-name: ci-kubernetes-build-1.6
repo-name: k8s.io/kubernetes
timeout: 100
- kubernetes-build-1.7:
branch: release-1.7
commit-frequency: 'H/5 * * * *'
giturl: 'https://github.com/kubernetes/kubernetes'
job-name: ci-kubernetes-build-1.7
repo-name: k8s.io/kubernetes
timeout: 100
- kubernetes-federation-build:
branch: master
commit-frequency: 'H/5 * * * *'
giturl: 'https://github.com/kubernetes/kubernetes'
job-name: ci-kubernetes-federation-build
repo-name: k8s.io/kubernetes
timeout: 50
- kubernetes-federation-build-1.6:
branch: release-1.6
giturl: 'https://github.com/kubernetes/kubernetes'
job-name: ci-kubernetes-federation-build-1.6
repo-name: k8s.io/kubernetes
commit-frequency: 'H/5 * * * *'
timeout: 50
- kubernetes-federation-build-1.7:
branch: release-1.7
giturl: 'https://github.com/kubernetes/kubernetes'
job-name: ci-kubernetes-federation-build-1.7
repo-name: k8s.io/kubernetes
commit-frequency: 'H/5 * * * *'
timeout: 50
- kubernetes-build-debian-unstable:
branch: master
commit-frequency: 'H/5 * * * *'
giturl: 'https://github.com/kubernetes/release'
job-name: ci-kubernetes-build-debian-unstable
repo-name: k8s.io/release
timeout: 300