blob: bde2bf8338e8c771d8d7046f6de54f2cd5201e20 [file] [log] [blame]
Kailash Khalasic585d062018-04-06 16:22:40 -07001---
2# CORD Test Pipeline jobs
3
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:
12
13 - build-discarder:
14 num-to-keep: 20
15 gitURL: https://gerrit.opencord.org/cord-tester
16
17- test-pipe-init-procedure-plate: &test-pipe-init-procedure-plate
18 name: test-pipe-init-procedure-plate
19 project: cord-tester
20 stream: 'master'
21 jenkins-path: 'Jenkinsfile'
22
23
24- job-version-plate: &job-version-plate
25 name: job-version-plate
26 version:
27 - 'master'
28
29- job-type-plate: &job-type-plate
30 name: job-type-plate
31 type:
32 - 'verify-api-tests'
33
34- job-repo-plate: &job-repo-plate
35 name: job-repo-plate
36 repo:
37 - 'xos'
38 - 'cord'
39 - 'platform-install'
40 - 'rcord'
41 - 'vrouter'
42 - 'vsg'
43 - 'vtn'
44 - 'vtr'
45 - 'fabric'
46 - 'openstack'
47 - 'chameleon'
48 - 'exampleservice'
49 - 'onos-service'
50 - 'olt-service'
51 - 'cord-tester'
52 - 'vEE'
53 - 'vEG'
54 - 'mcord'
55 - 'vspgwu'
56 - 'venb'
57 - 'vspgwc'
58 - 'vEPC'
59 - 'vMME'
60 - 'vHSS'
61
62- job-template:
63
Kailash Khalasi41273bb2018-04-09 12:58:16 -070064 name: 'verify-{repo}-{type}-pipeline-{version}'
Kailash Khalasic585d062018-04-06 16:22:40 -070065 description: |
66 <!-- Managed by Jenkins Job Builder -->
67 This pipeline contains the test results and logs of {type} on CORD {version}. <br /><br />
68 Created by Kailash Khalasi - kailash@opennetworking.org<br />
69 Copyright (c) 2017 Open Networking Foundation (ONF)
70
71 <<: *test-pipe-job-boiler-plate
72
73 parameters:
74
75 - string:
76 name: GERRIT_CHANGE_NUMBER
77 default: '2831'
78 description: 'This parameter is required to manually build this pipeline job'
79
80 - string:
81 name: GERRIT_PATCHSET_NUMBER
82 default: '1'
83 description: 'This parameter is required to manually build this pipeline job'
84
85
86 - string:
87 name: RECEIPIENT
88 default: 'kailash@opennetworking.org, you@opennetworking.org, suchitra@opennetworking.org'
89 description: ''
90
91 - lf-infra-parameters:
92 project: 'CordTest'
93 branch: 'master'
94 stream: 'master'
95 lftools-version: '<1.0.0'
96
97 concurrent: true
98
99 triggers:
100 - gerrit:
Zack Williamse64341b2018-04-10 22:14:35 -0700101 server-name: '{gerrit-server-name}'
Kailash Khalasic585d062018-04-06 16:22:40 -0700102 trigger-on:
103 - patchset-created-event:
104 exclude-drafts: false
105 exclude-trivial-rebase: false
106 exclude-no-code-change: false
107 - draft-published-event
108 projects:
109 - project-compare-type: PLAIN
Kailash Khalasi41273bb2018-04-09 12:58:16 -0700110 project-pattern: '{repo}'
Kailash Khalasic585d062018-04-06 16:22:40 -0700111 branches:
112 - branch-compare-type: ANT
113 branch-pattern: 'master'
114
115 pipeline-scm:
116 script-path: '{jenkins-path}/{type}-JenkinsFile'
117 scm:
118 - git:
119 url: '{gitURL}'
120 branches:
121 - 'master'
122
123- job-template:
124 name: 'automated-nightly-build-qct4-cord-master'
125 description: |
126 <!-- Managed by Jenkins Job Builder -->
127 It builds nighlty a full POD using R-CORD at QCT - POD 4 <br /><br />
128 Created by Kailash Khalasi - kailash@opennetworking.org<br />
129 Copyright (c) 2017 Open Networking Foundation (ONF)
130
131 <<: *test-pipe-job-boiler-plate
132
133 parameters:
134
135 - string:
Kailash Khalasibb7ca642018-04-11 13:35:17 -0700136 name: devNodeName
137 default: 'qct-cord-pod4'
138 description: 'Jenkins node name of Dev Node'
139
140 - string:
Kailash Khalasic585d062018-04-06 16:22:40 -0700141 name: configRepoUrl
142 default: 'https://gerrit.opencord.org/pod-configs'
143 description: 'The URL of the POD configs repository'
144
145 - string:
146 name: configRepoBaseDir
147 default: 'pod-configs/'
148 description: 'The directory inside the POD configs repository'
149
150 - string:
151 name: configRepoFile
152 default: 'deployment-configs/qct-pod4.yml'
153 description: 'The deployment config file'
154
155 - string:
156 name: RECEIPIENT
157 default: 'kailash@opennetworking.org, you@opennetworking.org, suchitra@opennetworking.org'
158 description: ''
159
160 - lf-infra-parameters:
161 project: 'CordTest'
162 branch: 'master'
163 stream: 'master'
164 lftools-version: '<1.0.0'
165
166 concurrent: true
167
168 triggers:
169 - timed: |
170 TZ=America/Los_Angeles
171 H 21 * * *
172
173 pipeline-scm:
Kailash Khalasibb7ca642018-04-11 13:35:17 -0700174 script-path: 'build/Jenkinsfile'
Kailash Khalasic585d062018-04-06 16:22:40 -0700175 scm:
176 - git:
177 url: 'https://gerrit.opencord.org/cord'
178 branches:
179 - 'master'
180
181- project:
182 name: build-pipeline
183
184 <<: *job-type-plate
185
186 project-name: '{type}-pipeline'
187
188 build-timeout: '60'
189 build-node: 'ubuntu16.04-basebuild-1c-2g'
190
191 <<: *test-pipe-init-procedure-plate
192 <<: *job-version-plate
Kailash Khalasi41273bb2018-04-09 12:58:16 -0700193 <<: *job-repo-plate
Kailash Khalasic585d062018-04-06 16:22:40 -0700194
195 jobs:
Kailash Khalasi41273bb2018-04-09 12:58:16 -0700196 - 'verify-{repo}-{type}-pipeline-{version}'
Kailash Khalasic585d062018-04-06 16:22:40 -0700197
198- project:
199 name: nightly-build-pipeline
200
201 project-name: 'automated-build-pipeline'
202
203 build-timeout: '300'
204 build-node: 'qct-cord-pod-04'
205
206 jobs:
207 - 'automated-nightly-build-qct4-cord-master'