blob: ccf520479cc58f0792bd25a9432e182e79d4b0a4 [file] [log] [blame]
Brian O'Connor9fbe7722017-10-27 12:44:04 -07001---
2
3- job_boiler_plate: &job_boiler_plate
4 name: job-boiler-plate
5
6 project-type: freestyle
7 node: '{build-node}'
8
9 ######################
10 # Default parameters #
11 ######################
12
13 branch: master
14 submodule-recursive: true
15 git-url: '$GIT_URL/$GERRIT_PROJECT'
16
17 #####################
18 # Job Configuration #
19 #####################
20
21 properties:
22 - lf-infra-properties:
23 project: '{project}'
24 build-days-to-keep: '{build-days-to-keep}'
25 #- github:
26 # url: '{git-url}/{github-org}/{project}'
27
28 parameters:
29 - lf-infra-parameters:
30 project: '{project}'
Ray Milkeye0b54ef2017-10-31 16:17:34 -070031 branch: '{stream}'
Brian O'Connor9fbe7722017-10-27 12:44:04 -070032 stream: '{stream}'
33 lftools-version: '{lftools-version}'
34
35 wrappers:
36 - lf-infra-wrappers:
37 build-timeout: '{build-timeout}'
38 jenkins-ssh-credential: '{jenkins-ssh-credential}'
39
40
41- verify_boiler_plate: &verify_boiler_plate
42 name: verify_boiler_plate
43
44 concurrent: true
45
46 scm:
Brian O'Connore78aff62017-10-30 14:08:51 -070047 - lf-infra-gerrit-scm:
48 git-url: '{git-url}'
Brian O'Connor9fbe7722017-10-27 12:44:04 -070049 refspec: '$GERRIT_REFSPEC'
50 branch: '$GERRIT_BRANCH'
51 submodule-recursive: '{submodule-recursive}'
Brian O'Connore78aff62017-10-30 14:08:51 -070052 choosing-strategy: gerrit
Brian O'Connor9fbe7722017-10-27 12:44:04 -070053 jenkins-ssh-credential: '{jenkins-ssh-credential}'
54
55 triggers:
56 - gerrit:
57 #server-name: '{gerrit-server-name}'
58 server-name: 'ONOS Project Gerrit'
59 #trigger-on: '{obj:gerrit_verify_triggers}'
60 trigger-on:
61 - patchset-created-event:
62 exclude-drafts: true
63 exclude-trivial-rebase: false
64 exclude-no-code-change: true
65 - draft-published-event
Brian O'Connoredd87412017-10-30 19:27:08 -070066 - comment-added-contains-event:
67 comment-contains-value: '(?i)^.*recheck$'
Brian O'Connor9fbe7722017-10-27 12:44:04 -070068 projects:
69 - project-compare-type: PLAIN
Ray Milkey20beeae2017-10-31 15:26:10 -070070 project-pattern: '{project}'
Brian O'Connor9fbe7722017-10-27 12:44:04 -070071 branches:
72 - branch-compare-type: ANT
Ray Milkeye0b54ef2017-10-31 16:17:34 -070073 branch-pattern: '**/{stream}'
Ray Milkeyc0c94f52017-10-30 17:36:14 -070074 #file-paths: '{obj:gerrit_trigger_file_paths}'
Brian O'Connor9fbe7722017-10-27 12:44:04 -070075
Ray Milkey8e462202017-11-02 10:18:37 -070076- daily_boiler_plate: &daily_boiler_plate
77 name: daily_boiler_plate
78
79 concurrent: true
80
81 scm:
82 - lf-infra-gerrit-scm:
83 git-url: '{git-url}'
84 refspec: '$GERRIT_REFSPEC'
85 branch: '$GERRIT_BRANCH'
86 submodule-recursive: '{submodule-recursive}'
87 choosing-strategy: gerrit
88 jenkins-ssh-credential: '{jenkins-ssh-credential}'
89
90 triggers:
91 - timed: '@daily'
92
Brian O'Connor9fbe7722017-10-27 12:44:04 -070093- job-template:
94 #default name is global
95 name: '{project-name}-{stream}-verify'
96
97 # Job template for Java verify jobs
98 #
99 # The purpose of this job templte is to run "maven clean install" for
100 # projects using this template.
101 #
102 # Required Variables:
103 # branch: git branch (eg. master)
104
105 <<: *job_boiler_plate
106 # yamllint disable-line rule:key-duplicates
107 <<: *verify_boiler_plate
108
109 builders:
110 #put shell scripts in file then make sure shell check is installed on verify vms
Ray Milkey7aa43462017-10-30 16:15:23 -0700111 - shell: !include-raw-escape: onos-verify.sh
Yuta HIGUCHI02e46d32017-10-31 10:17:47 -0700112 # JJB 1.6.2 does not support parameter expansion on filename?
113 #- shell: !include-raw-escape: {project-name}-verify.sh
114
115# workaround for lack of parameter expansion support in shell: (see above)
116- job-template:
117 #default name is global
118 name: 'onos-yang-tools-{stream}-verify'
119
120 # Job template for Java verify jobs
121 #
122 # The purpose of this job templte is to run "maven clean install" for
123 # projects using this template.
124 #
125 # Required Variables:
126 # branch: git branch (eg. master)
127
128 <<: *job_boiler_plate
129 # yamllint disable-line rule:key-duplicates
130 <<: *verify_boiler_plate
131
132 builders:
133 #put shell scripts in file then make sure shell check is installed on verify vms
134 - shell: !include-raw-escape: onos-yang-tools-verify.sh
135
Ray Milkey83d912a2017-11-01 13:49:31 -0700136# workaround for lack of parameter expansion support in shell: (see above)
137- job-template:
138 #default name is global
139 name: 'onos-gui-{stream}-verify'
140
141 # Job template for Java verify jobs
142 #
143 # The purpose of this job templte is to run "maven clean install" for
144 # projects using this template.
145 #
146 # Required Variables:
147 # branch: git branch (eg. master)
148
149 <<: *job_boiler_plate
150 # yamllint disable-line rule:key-duplicates
151 <<: *verify_boiler_plate
152
153 builders:
154 #put shell scripts in file then make sure shell check is installed on verify vms
155 - shell: !include-raw-escape: onos-gui-verify.sh
156
Ray Milkey8e462202017-11-02 10:18:37 -0700157- job-template:
158 #default name is global
159 name: 'onos-{stream}-release-build-verify'
160
161 # Job template for Java release check jobs
162 #
163
164 <<: *job_boiler_plate
165 # yamllint disable-line rule:key-duplicates
166 <<: *daily_boiler_plate
167
168 builders:
169 #put shell scripts in file then make sure shell check is installed on verify vms
170 - shell: !include-raw-escape: onos-release-build-verify.sh
171 # JJB 1.6.2 does not support parameter expansion on filename?
172 #- shell: !include-raw-escape: {project-name}-verify.sh
173
Brian O'Connor9fbe7722017-10-27 12:44:04 -0700174
175- project:
176 name: onos
177 project-name: onos
178 project: onos
179
180 build-timeout: '1800'
181 build-node: 'ubuntu16.04-basebuild-8c-15g'
182
183 stream:
184 - 'master'
Ray Milkey1bc13772017-10-31 15:57:17 -0700185 - 'onos-1.10'
186 - 'onos-1.11'
Brian O'Connor9fbe7722017-10-27 12:44:04 -0700187
188 jobs:
189 - '{project-name}-{stream}-verify'
Yuta HIGUCHI02e46d32017-10-31 10:17:47 -0700190
191- project:
Ray Milkey83d912a2017-11-01 13:49:31 -0700192 name: onos-gui
193 project-name: onos-gui
Ray Milkey24fe1ee2017-11-01 13:59:07 -0700194 project: onos
Ray Milkey83d912a2017-11-01 13:49:31 -0700195
196 build-timeout: '1800'
197 build-node: 'ubuntu16.04-basebuild-8c-15g'
198
199 stream:
200 - 'master'
201 - 'onos-1.10'
202 - 'onos-1.11'
203
204 jobs:
205 - 'onos-gui-{stream}-verify'
206
207- project:
Yuta HIGUCHI02e46d32017-10-31 10:17:47 -0700208 name: onos-yang-tools
209 project-name: onos-yang-tools
210 project: onos-yang-tools
211
212 build-timeout: '1800'
213 build-node: 'ubuntu16.04-basebuild-8c-15g'
214
215 stream:
216 - 'master'
217
218 jobs:
219 - 'onos-yang-tools-{stream}-verify'
Ray Milkey8e462202017-11-02 10:18:37 -0700220
221- project:
222 name: onos-release
223 project-name: onos-release
224 project: onos
225
226 build-timeout: '1800'
227 build-node: 'ubuntu16.04-basebuild-8c-15g'
228
229 stream:
230 - 'master'
231
232 jobs:
233 - 'onos-{stream}-release-build-verify'