forked from varadahirwadkar/jenkins-infra
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jjb_template.jinja2
63 lines (56 loc) · 2.57 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
---
- job:
name: {{ JOB_NAME }}
project-type: pipeline
triggers:
- timed: {% if 'daily-ipi4.13-powervs-montreal01' in JOB_NAME %}"0 */12 * * * "
{% elif 'daily-ipi4.13-powervs-sydney05' in JOB_NAME %}"0 */12 * * * "
{% elif 'daily-ipi4.13-powervs-london06' in JOB_NAME %}"0 */12 * * * "
{% elif 'daily-ipi4.13-powervs-osaka21' in JOB_NAME %}"0 */12 * * * "
{% elif 'daily-ocp4.13-powervs-script-montreal01-p9-min' in JOB_NAME %}"0 00 * * 1,3,5 "
{% elif 'daily-ocp4.12-powervs-sydney04-hypershift-e2e' in JOB_NAME %}"0 00 * * * "
{% elif 'daily-ocp4.11-to-4.12-powervm-p8-min-upgrade' in JOB_NAME %}"00 00 * * 1,3,5 "
{% elif 'daily-ocp4.13-powervm-p9-verification' in JOB_NAME %}"00 02 * * 2 "
{% elif 'daily-ocp4.13-powervm-p9-min' in JOB_NAME %}"00 05 * * * "
{% elif 'daily-ocp4.13-powervm-p9-sriov' in JOB_NAME %}"00 08 * * 3 "
{% elif 'daily-ocp4.13-powervm-p9-sdn-min' in JOB_NAME %}"00 08 * * 4 "
{% elif 'daily-ocp4.13-powervm-p9-vscsi' in JOB_NAME %}"00 08 * * 5 "
{% elif 'weekly-ocp4.13-powervm-p9-croo' in JOB_NAME %}"00 08 * * 6 "
{% elif 'daily-odf4.13-powervm-p9-tier-1' in JOB_NAME %}"00 00 * * 1,3,5,7 "
{% elif 'daily-odf4.13-powervm-p9-tier-3' in JOB_NAME %}"00 01 * * 1,3,5,7 "
{% elif 'daily-odf4.13-powervm-p9-tier-4c' in JOB_NAME %}"00 02 * * 1,3,5,7 "
{% elif 'daily-odf4.13-powervm-p9-tier-2' in JOB_NAME %}"00 00 * * 2,4,6 "
{% elif 'daily-odf4.13-powervm-p9-tier-4b' in JOB_NAME %}"00 01 * * 2,4,6 "
{% elif 'mirror-openshift-release' in JOB_NAME %}"@hourly"
{% elif 'poll-powervc-images' in JOB_NAME %}"@daily"
{% elif 'poll-powervs-images' in JOB_NAME %}"@daily"
{% elif 'daily-jenkins-backup-job' 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: 50
artifact-num-to-keep: 50
{% 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 }}