-
Notifications
You must be signed in to change notification settings - Fork 5
/
jjb_template.jinja2
69 lines (65 loc) · 3.27 KB
/
jjb_template.jinja2
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
---
- job:
name: {{ JOB_NAME }}
project-type: pipeline
triggers:
- timed: {% if 'daily-ocp4.17-powervm-p9-min' in JOB_NAME %}"00 01 * * * "
{% elif 'daily-ocp4.18-powervm-p9-min' in JOB_NAME %}"00 00 * * * "
{% elif 'weekly-ocp4.13-to-4.14-powervm-p9-min-upgrade' in JOB_NAME %}"00 09 * * 5 "
{% elif 'weekly-ocp4.14-to-4.15-powervm-p9-min-upgrade' in JOB_NAME %}"00 09 * * 4 "
{% elif 'weekly-ocp4.15-to-4.16-powervm-p9-min-upgrade' in JOB_NAME %}"00 09 * * 3 "
{% elif 'weekly-ocp4.16-to-4.17-powervm-p9-min-upgrade' in JOB_NAME %}"00 09 * * 2 "
{% elif 'weekly-ocp4.17-to-4.18-powervm-p9-min-upgrade' in JOB_NAME %}"00 09 * * 1 "
{% elif 'weekly-ocp4.15-powervm-p9-min' in JOB_NAME %}"00 16 * * 7 "
{% elif 'weekly-ocp4.16-powervm-p9-min' in JOB_NAME %}"00 16 * * 3 "
{% elif 'weekly-ocp4.18-powervm-p9-vscsi-multipath' in JOB_NAME %}"00 16 * * 1 "
{% elif 'weekly-ocp4.17-powervm-p9-verification' in JOB_NAME %}"00 09 * * 6 "
{% elif 'weekly-ocp4.18-powervm-p9-npiv' in JOB_NAME %}"00 09 * * 7 "
{% elif 'weekly-ocp4.18-powervm-p9-verification' in JOB_NAME %}"00 09 * * 5 "
{% elif 'weekly-ocp4.18-powervm-p9-sriov' in JOB_NAME %}"00 16 * * 4 "
{% elif 'daily-ocp4.18-powervs-script-p9-min' in JOB_NAME %}"0 06 * * 1,3,5 "
{% elif 'daily-ocp4.17-powervs-script-p9-min' in JOB_NAME %}"0 06 * * 2 "
{% elif 'daily-ipi4.16-powervs-frankfurt1' in JOB_NAME %}"0 0 * * 1 "
{% elif 'daily-ipi4.16-powervs-washingtondc06' in JOB_NAME %}"0 2 * * 1 "
{% elif 'daily-ipi4.16-powervs-saopaulo04' in JOB_NAME %}"0 0 * * 2 "
{% elif 'daily-ipi4.16-powervs-madrid02' in JOB_NAME %}"0 2 * * 2 "
{% elif 'daily-ipi4.16-powervs-frankfurt2' in JOB_NAME %}"0 0 * * 3 "
{% elif 'daily-ipi4.16-powervs-washingtondc07' in JOB_NAME %}"0 2 * * 3 "
{% elif 'daily-ipi4.16-powervs-madrid04' in JOB_NAME %}"0 0 * * 4 "
{% elif 'daily-ipi4.16-powervs-saopaulo01' in JOB_NAME %}"0 2 * * 4 "
{% elif 'daily-ipi4.16-powervs-london06' in JOB_NAME %}"0 0 * * 5 "
{% elif 'daily-ipi4.16-powervs-osaka21' in JOB_NAME %}"0 2 * * 5 "
{% elif 'daily-ipi4.16-powervs-sydney04' in JOB_NAME %}"0 0 * * 6 "
{% elif 'powervs-ipi-cleanup-job' in JOB_NAME %}"0 13,20 * * * "
{% elif 'mirror-openshift-release' in JOB_NAME %}"@hourly"
{% elif 'poll-powervc-images' in JOB_NAME %}"@daily"
{% elif 'poll-powervs-images' in JOB_NAME %}"@daily"
{% else %}""
{% endif %}
sandbox: true
concurrent: true
properties:
- copyartifact:
projects: "*"
{% if 'mirror-openshift-release' in JOB_NAME %}
- build-discarder:
num-to-keep: 200
artifact-num-to-keep: 200
{% elif 'daily-ipi' in JOB_NAME %}
- build-discarder:
num-to-keep: 30
artifact-num-to-keep: 30
{% else %}
- build-discarder:
num-to-keep: 30
artifact-num-to-keep: 30
{% endif %}
pipeline-scm:
scm:
- git:
url: https://github.com/ppc64le-cloud/jenkins-infra.git
branches:
- master
credentials-id: github
clean: true
script-path: {{ JENKINS_FILE }}