blob: d38334fddcdfc6b70c7e30e848f95081d5fc5296 [file] [log] [blame]
Kailash Khalasi417d13f2018-04-17 12:38:48 -07001---
2# POD Nightly Build 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 - cord-infra-properties:
13 build-days-to-keep: '{build-days-to-keep}'
14 artifact-num-to-keep: '{artifact-num-to-keep}'
15
16- job-template:
17 name: 'build_{profile}_{pod}_{branch}'
18 id: build_pod_first
19 description: |
20 <!-- Managed by Jenkins Job Builder -->
21 Nightly Physical POD Builds at {pod} using {pod_config} <br /><br />
22 Created from job-template {id} from ci-management/jjb/cord-test/cord-test-pipeline.yaml <br />
23 Created by Kailash Khalasi - kailash@opennetworking.org <br />
24 Copyright (c) 2017 Open Networking Foundation (ONF)
25
26 <<: *test-pipe-job-boiler-plate
27
28 parameters:
29 - string:
30 name: devNodeName
31 default: '{pod}'
32 description: 'Jenkins node name of Dev Node'
33
34 - string:
35 name: configRepoUrl
36 default: 'https://gerrit.opencord.org/pod-configs'
37 description: 'The URL of the POD configs repository'
38
39 - string:
40 name: configRepoBaseDir
41 default: 'pod-configs/'
42 description: 'The directory inside the POD configs repository'
43
44 - string:
45 name: configRepoFile
46 default: 'deployment-configs/{pod_config}'
47 description: 'The deployment config file'
48
49 - string:
50 name: branch
51 default: '{branch}'
52
53 - string:
54 name: notificationEmail
55 default: 'kailash@opennetworking.org, you@opennetworking.org, suchitra@opennetworking.org'
56 description: ''
57
58 concurrent: true
59
60 pipeline-scm:
61 script-path: '{Jenkinsfile}'
62 scm:
63 - git:
64 url: '{gerrit-server-url}/cord'
65 branches:
66 - '{branch}'
67
68 triggers:
69 - timed: |
70 TZ=America/Los_Angeles
71 H {time} * * *
72
73
74- job-template:
75 name: 'build_{profile}_{pod}_{branch}'
76 id: build_pod
77 description: |
78 <!-- Managed by Jenkins Job Builder -->
79 Nightly Physical POD Builds at {pod} using {pod_config} <br /><br />
80 Created from job-template {id} from ci-management/jjb/cord-test/cord-test-pipeline.yaml <br />
81 Created by Kailash Khalasi - kailash@opennetworking.org <br />
82 Copyright (c) 2017 Open Networking Foundation (ONF)
83
84 <<: *test-pipe-job-boiler-plate
85
86 parameters:
87 - string:
88 name: devNodeName
89 default: '{pod}'
90 description: 'Jenkins node name of Dev Node'
91
92 - string:
93 name: configRepoUrl
94 default: 'https://gerrit.opencord.org/pod-configs'
95 description: 'The URL of the POD configs repository'
96
97 - string:
98 name: configRepoBaseDir
99 default: 'pod-configs/'
100 description: 'The directory inside the POD configs repository'
101
102 - string:
103 name: configRepoFile
104 default: 'deployment-configs/{pod_config}'
105 description: 'The deployment config file'
106
107 - string:
108 name: branch
109 default: '{branch}'
110
111 - string:
112 name: notificationEmail
113 default: 'kailash@opennetworking.org, you@opennetworking.org, suchitra@opennetworking.org'
114 description: ''
115
116 concurrent: true
117
118 pipeline-scm:
119 script-path: '{Jenkinsfile}'
120 scm:
121 - git:
122 url: '{gerrit-server-url}/cord'
123 branches:
124 - '{branch}'
125
126 triggers:
127 - reverse:
128 jobs: 'build_{profile}_{pod}_{fromBranch}_test'
129 result: 'failure'
130
131
132- job-template:
133 name: 'build_{profile}_{pod}_{branch}_test'
134 id: build_pod_test
135 description: |
136 <!-- Managed by Jenkins Job Builder -->
137 Post Tests on {pod} triggered by build_{pod}_{branch} <br /><br />
138 Created from job-template {id} from ci-management/jjb/cord-test/cord-test-pipeline.yaml <br />
139 Created by Kailash Khalasi - kailash@opennetworking.org <br />
140 Copyright (c) 2017 Open Networking Foundation (ONF)
141
142 branches: '{branch}'
143
144 <<: *test-pipe-job-boiler-plate
145
146 parameters:
147 - string:
148 name: devNodeName
149 default: '{pod}'
150 description: 'Jenkins node name of Dev Node'
151
152 - string:
153 name: configRepoUrl
154 default: 'https://gerrit.opencord.org/pod-configs'
155 description: 'The URL of the POD configs repository'
156
157 - string:
158 name: configRepoBaseDir
159 default: 'pod-configs/'
160 description: 'The directory inside the POD configs repository'
161
162 - string:
163 name: configRepoFile
164 default: 'deployment-configs/{pod_config}'
165 description: 'The deployment config file'
166
167 - string:
168 name: branch
169 default: '{branch}'
170
171 - string:
172 name: notificationEmail
173 default: 'kailash@opennetworking.org, you@opennetworking.org, suchitra@opennetworking.org'
174 description: ''
175
176 concurrent: true
177
178 pipeline-scm:
179 script-path: '{Jenkinsfile}'
180 scm:
181 - git:
182 url: '{gerrit-server-url}/cord-tester'
183 branches:
184 - '{branch}'
185
186 triggers:
187 - reverse:
188 jobs: 'build_{profile}_{pod}_{branch}'
189 result: 'failure'