forked from kubernetes/test-infra
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bootstrap-maintenance-ci.yaml
64 lines (63 loc) · 1.85 KB
/
bootstrap-maintenance-ci.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
- job-template:
name: 'maintenance-ci-{suffix}' # Runs on each node once
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' \
--branch='{branch}' \
--job='{job-name}' \
--json='{json}' \
--repo='{repo-name}' \
--root="${{GOPATH}}/src" \
--service-account="${{GOOGLE_APPLICATION_CREDENTIALS}}" \
--timeout='{timeout}' \
--upload='gs://kubernetes-jenkins/logs'
node: 'node' # light choices are node/e2e
properties:
- build-discarder:
days-to-keep: 14
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: 700
fail: true
triggers:
- timed: '{frequency}'
- project:
name: bootstrap-maintenance-ci-jobs
jobs:
- 'maintenance-ci-{suffix}'
suffix:
- clean-projects:
branch: master
job-name: maintenance-ci-clean-projects
json: 0
frequency: 'H H/3 * * *'
repo-name: 'k8s.io/test-infra'
timeout: 30
- aws-janitor:
branch: master
frequency: 'H * * * *'
job-name: maintenance-ci-aws-janitor
json: 0
repo-name: 'k8s.io/test-infra'
timeout: 30
- janitor:
branch: master
frequency: '@daily'
job-name: maintenance-ci-janitor
json: 1
repo-name: 'k8s.io/test-infra'
timeout: 600