blob: 19f7402ec8172a08f6cab40d80c1a26b3c422260 [file] [log] [blame]
Kailash Khalasic585d062018-04-06 16:22:40 -07001---
Kailash Khalasi3074e602018-04-12 12:09:20 -07002# POD Nightly Build Pipeline Jobs
Kailash Khalasic585d062018-04-06 16:22:40 -07003
4- test-pipe-job-boiler-plate: &test-pipe-job-boiler-plate
5 name: test-pipe-job-boiler-plate
6
7 project-type: pipeline
8
9 sandbox: true
10
11 properties:
Kailash Khalasi2fbb1762018-04-13 12:22:42 -070012 - cord-infra-properties:
13 build-days-to-keep: '{build-days-to-keep}'
14 artifact-num-to-keep: '{artifact-num-to-keep}'
Kailash Khalasic585d062018-04-06 16:22:40 -070015
Kailash Khalasic585d062018-04-06 16:22:40 -070016
Kailash Khalasi2fbb1762018-04-13 12:22:42 -070017- job-parameters-plate: &job-parameters-plate
18 name: job-parameters-plate
Kailash Khalasic585d062018-04-06 16:22:40 -070019 <<: *test-pipe-job-boiler-plate
20
21 parameters:
Kailash Khalasic585d062018-04-06 16:22:40 -070022 - string:
Kailash Khalasibb7ca642018-04-11 13:35:17 -070023 name: devNodeName
Kailash Khalasi4e08a2e2018-04-13 08:42:36 -070024 default: '{pod}'
Kailash Khalasibb7ca642018-04-11 13:35:17 -070025 description: 'Jenkins node name of Dev Node'
26
27 - string:
Kailash Khalasic585d062018-04-06 16:22:40 -070028 name: configRepoUrl
29 default: 'https://gerrit.opencord.org/pod-configs'
30 description: 'The URL of the POD configs repository'
31
32 - string:
33 name: configRepoBaseDir
34 default: 'pod-configs/'
35 description: 'The directory inside the POD configs repository'
36
37 - string:
38 name: configRepoFile
Kailash Khalasi7470c452018-04-13 10:36:49 -070039 default: 'deployment-configs/{pod}.yml'
Kailash Khalasic585d062018-04-06 16:22:40 -070040 description: 'The deployment config file'
41
42 - string:
Kailash Khalasi2fbb1762018-04-13 12:22:42 -070043 name: branch
44 default: '{branch}'
Kailash Khalasifbb3ec42018-04-13 10:50:34 -070045
46 - string:
Kailash Khalasi2fbb1762018-04-13 12:22:42 -070047 name: notificationEmail
Kailash Khalasic585d062018-04-06 16:22:40 -070048 default: 'kailash@opennetworking.org, you@opennetworking.org, suchitra@opennetworking.org'
49 description: ''
50
Kailash Khalasic585d062018-04-06 16:22:40 -070051 concurrent: true
52
Kailash Khalasi2fbb1762018-04-13 12:22:42 -070053- job-template:
54 name: 'build_{pod}_{branch}'
55 id: build_pod_first
56 description: |
57 <!-- Managed by Jenkins Job Builder -->
58 Nightly Physical POD Builds at {pod} <br /><br />
59 Created from job-template {id} from ci-management/jjb/cord-test/cord-test-pipeline.yaml <br />
60 Created by Kailash Khalasi - kailash@opennetworking.org <br />
61 Copyright (c) 2017 Open Networking Foundation (ONF)
62
63 <<: *job-parameters-plate
Kailash Khalasic585d062018-04-06 16:22:40 -070064
65 pipeline-scm:
Kailash Khalasi2fbb1762018-04-13 12:22:42 -070066 script-path: '{Jenkinsfile}'
Kailash Khalasic585d062018-04-06 16:22:40 -070067 scm:
68 - git:
Kailash Khalasi2fbb1762018-04-13 12:22:42 -070069 url: '{gerrit-server-url}/cord'
Kailash Khalasic585d062018-04-06 16:22:40 -070070 branches:
Kailash Khalasi2fbb1762018-04-13 12:22:42 -070071 - '{branch}'
Kailash Khalasic585d062018-04-06 16:22:40 -070072
Kailash Khalasi2fbb1762018-04-13 12:22:42 -070073 triggers:
74 - timed: |
75 TZ=America/Los_Angeles
76 H {time} * * *
77
78- job-template:
79 name: 'build_{pod}_{branch}'
80 id: build_pod
81 description: |
82 <!-- Managed by Jenkins Job Builder -->
83 Nightly Physical POD Builds at {pod} <br /><br />
84 Created from job-template {id} from ci-management/jjb/cord-test/cord-test-pipeline.yaml <br />
85 Created by Kailash Khalasi - kailash@opennetworking.org <br />
86 Copyright (c) 2017 Open Networking Foundation (ONF)
87
88 <<: *job-parameters-plate
89
90 pipeline-scm:
91 script-path: '{Jenkinsfile}'
92 scm:
93 - git:
94 url: '{gerrit-server-url}/cord'
95 branches:
96 - '{branch}'
97
98 triggers:
99 - reverse:
100 jobs: 'build-{pod}-{fromBranch}-test'
101 result: 'failure'
102
103- job-template:
104 name: 'build_{pod}_{branch}_test'
105 id: build_pod_test
106 description: |
107 <!-- Managed by Jenkins Job Builder -->
108 Post Tests on {pod} triggered by build_{pod}_{branch} <br /><br />
109 Created from job-template {id} from ci-management/jjb/cord-test/cord-test-pipeline.yaml <br />
110 Created by Kailash Khalasi - kailash@opennetworking.org <br />
111 Copyright (c) 2017 Open Networking Foundation (ONF)
112
113 branches: '{branch}'
114
115 <<: *job-parameters-plate
116
117 pipeline-scm:
118 script-path: '{Jenkinsfile}'
119 scm:
120 - git:
121 url: '{gerrit-server-url}/cord-tester'
122 branches:
123 - '{branch}'
124
125 triggers:
126 - reverse:
127 jobs: 'build-{pod}-{branch}'
128 result: 'failure'
Kailash Khalasic585d062018-04-06 16:22:40 -0700129
130- project:
131 name: nightly-build-pipeline
132
Kailash Khalasi4e08a2e2018-04-13 08:42:36 -0700133 project-name: '{name}'
Kailash Khalasic585d062018-04-06 16:22:40 -0700134
135 build-timeout: '300'
Kailash Khalasic585d062018-04-06 16:22:40 -0700136
137 jobs:
Kailash Khalasi2fbb1762018-04-13 12:22:42 -0700138 - 'build_pod_first':
139 pod: 'qct-pod1'
140 branch: 'cord-4.0'
141 Jenkinsfile: 'Jenkinsfile.newBuildSystem'
142 time: '20'
143
144 - 'build_pod':
145 pod: 'qct-pod1'
146 branch: 'cord-4.1'
147 Jenkinsfile: 'Jenkinsfile.newBuildSystem'
148 fromBranch: 'cord-4.0'
149
150 - 'build_pod':
151 pod: 'qct-pod1'
152 branch: 'cord-5.0'
153 Jenkinsfile: 'Jenkinsfile.newBuildSystem'
154 fromBranch: 'cord-4.1'
155
156 - 'build_pod':
157 pod: 'qct-pod1'
158 branch: 'master'
159 Jenkinsfile: 'Jenkinsfile'
160 fromBranch: 'cord-5.0'
161
162 - 'build_pod_first':
163 pod: 'qct-pod3'
164 branch: 'cord-4.0'
165 Jenkinsfile: 'Jenkinsfile.newBuildSystem'
166 time: '20'
167
168 - 'build_pod':
169 pod: 'qct-pod3'
170 branch: 'cord-4.1'
171 Jenkinsfile: 'Jenkinsfile.newBuildSystem'
172 fromBranch: 'cord-4.0'
173
174 - 'build_pod':
175 pod: 'qct-pod3'
176 branch: 'cord-5.0'
177 Jenkinsfile: 'Jenkinsfile.newBuildSystem'
178 fromBranch: 'cord-4.1'
179
180 - 'build_pod':
181 pod: 'qct-pod3'
182 branch: 'master'
183 Jenkinsfile: 'Jenkinsfile'
184 fromBranch: 'cord-5.0'
185
186 - 'build_pod_test':
187 pod: 'qct-pod1'
188 branch: 'cord-4.0'
189 Jenkinsfile: 'Jenkinsfile-rcord'
190
191 - 'build_pod_test':
192 pod: 'qct-pod1'
193 branch: 'cord-4.1'
194 Jenkinsfile: 'Jenkinsfile-rcord'
195
196 - 'build_pod_test':
197 pod: 'qct-pod1'
198 branch: 'cord-5.0'
199 Jenkinsfile: 'Jenkinsfile-rcord'
200
201 - 'build_pod_test':
202 pod: 'qct-pod1'
203 branch: 'master'
204 Jenkinsfile: 'Jenkinsfile-rcord'
205
206 - 'build_pod_test':
207 pod: 'qct-pod3'
208 branch: 'cord-4.0'
209 Jenkinsfile: 'Jenkinsfile-rcord'
210
211 - 'build_pod_test':
212 pod: 'qct-pod3'
213 branch: 'cord-4.1'
214 Jenkinsfile: 'Jenkinsfile-rcord'
215
216 - 'build_pod_test':
217 pod: 'qct-pod3'
218 branch: 'cord-5.0'
219 Jenkinsfile: 'Jenkinsfile-rcord'
220
221 - 'build_pod_test':
222 pod: 'qct-pod3'
223 branch: 'master'
224 Jenkinsfile: 'Jenkinsfile-rcord'