forked from kubernetes/test-infra
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbootstrap-pull-json.yaml
118 lines (117 loc) · 3.7 KB
/
bootstrap-pull-json.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
# Temporary, will switch boostrap-pull.yaml to use this
# after validating it works
- job-template:
name: 'pull-{jsonsuffix}'
concurrent: true
properties:
- build-discarder:
days-to-keep: 7
- throttle:
max-total: '{max-total}'
max-per-node: 2
option: project
- raw:
xml: |
<com.cloudbees.plugins.JobPrerequisites plugin="[email protected]">
<script>docker version; gcloud version</script>
<interpreter>shell script</interpreter>
</com.cloudbees.plugins.JobPrerequisites>
parameters:
- string:
name: PULL_REFS
- string:
name: PULL_NUMBER
- string:
name: PULL_BASE_REF
# The test job tracks a run through the queue using the buildId parameter.
- string:
name: buildId
wrappers:
- e2e-credentials-binding
- inject:
properties-content: |
GOROOT=/usr/local/go
GOPATH=$WORKSPACE/go
PATH=$PATH:$GOROOT/bin:$WORKSPACE/go/bin
- workspace-cleanup:
dirmatch: true
exclude:
- 'go/src/{repo-name}/.git/'
- 'test-infra/.git/'
external-deletion-command: 'sudo rm -rf %s'
- timeout:
timeout: 130
fail: true
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}=${{PULL_REFS}}" \
--repo='k8s.io/release' \
--root="${{GOPATH}}/src" \
--service-account="${{GOOGLE_APPLICATION_CREDENTIALS}}" \
--timeout='{timeout}' \
--upload='gs://kubernetes-jenkins/pr-logs'
- project:
name: bootstrap-pull-jobs-json
jobs:
- 'pull-{jsonsuffix}'
jsonsuffix: # pull-<repo>-<suffix> is the expected format
- kubernetes-e2e-gce-canary:
max-total: 12
job-name: pull-kubernetes-e2e-gce-canary
repo-name: 'k8s.io/kubernetes'
timeout: 75
- kubernetes-e2e-gke:
max-total: 12
job-name: pull-kubernetes-e2e-gke
repo-name: 'k8s.io/kubernetes'
timeout: 75
- kubernetes-e2e-gke-gci:
max-total: 12
job-name: pull-kubernetes-e2e-gke-gci
repo-name: 'k8s.io/kubernetes'
timeout: 75
- kubernetes-e2e-gce:
max-total: 12
job-name: pull-kubernetes-e2e-gce
repo-name: 'k8s.io/kubernetes'
timeout: 75
- kubernetes-e2e-gce-gci:
max-total: 12
job-name: pull-kubernetes-e2e-gce-gci
repo-name: 'k8s.io/kubernetes'
timeout: 75
- kubernetes-e2e-gce-etcd3:
max-total: 12
job-name: pull-kubernetes-e2e-gce-etcd3
repo-name: 'k8s.io/kubernetes'
timeout: 85
- kubernetes-federation-e2e-gce:
max-total: 12
job-name: pull-kubernetes-federation-e2e-gce
repo-name: 'k8s.io/kubernetes'
timeout: 110
- kubernetes-kubemark-e2e-gce:
max-total: 12
job-name: pull-kubernetes-kubemark-e2e-gce
repo-name: 'k8s.io/kubernetes'
timeout: 65
- kubernetes-kubemark-e2e-gce-gci:
max-total: 12
job-name: pull-kubernetes-kubemark-e2e-gce-gci
repo-name: 'k8s.io/kubernetes'
timeout: 75
- kops-e2e-kubernetes-aws-scenario:
job-name: pull-kops-e2e-kubernetes-aws-scenario
max-total: 5
repo-name: 'k8s.io/kops'
timeout: 75
- kubernetes-e2e-kops-aws-scenario:
max-total: 5
job-name: pull-kubernetes-e2e-kops-aws-scenario
repo-name: 'k8s.io/kubernetes'
timeout: 75