Brian O'Connor | 9fbe772 | 2017-10-27 12:44:04 -0700 | [diff] [blame] | 1 | --- |
| 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 Milkey | e0b54ef | 2017-10-31 16:17:34 -0700 | [diff] [blame] | 31 | branch: '{stream}' |
Brian O'Connor | 9fbe772 | 2017-10-27 12:44:04 -0700 | [diff] [blame] | 32 | 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'Connor | e78aff6 | 2017-10-30 14:08:51 -0700 | [diff] [blame] | 47 | - lf-infra-gerrit-scm: |
| 48 | git-url: '{git-url}' |
Brian O'Connor | 9fbe772 | 2017-10-27 12:44:04 -0700 | [diff] [blame] | 49 | refspec: '$GERRIT_REFSPEC' |
| 50 | branch: '$GERRIT_BRANCH' |
| 51 | submodule-recursive: '{submodule-recursive}' |
Brian O'Connor | e78aff6 | 2017-10-30 14:08:51 -0700 | [diff] [blame] | 52 | choosing-strategy: gerrit |
Brian O'Connor | 9fbe772 | 2017-10-27 12:44:04 -0700 | [diff] [blame] | 53 | 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'Connor | edd8741 | 2017-10-30 19:27:08 -0700 | [diff] [blame] | 66 | - comment-added-contains-event: |
| 67 | comment-contains-value: '(?i)^.*recheck$' |
Brian O'Connor | 9fbe772 | 2017-10-27 12:44:04 -0700 | [diff] [blame] | 68 | projects: |
| 69 | - project-compare-type: PLAIN |
Ray Milkey | 20beeae | 2017-10-31 15:26:10 -0700 | [diff] [blame] | 70 | project-pattern: '{project}' |
Brian O'Connor | 9fbe772 | 2017-10-27 12:44:04 -0700 | [diff] [blame] | 71 | branches: |
| 72 | - branch-compare-type: ANT |
Ray Milkey | e0b54ef | 2017-10-31 16:17:34 -0700 | [diff] [blame] | 73 | branch-pattern: '**/{stream}' |
Ray Milkey | c0c94f5 | 2017-10-30 17:36:14 -0700 | [diff] [blame] | 74 | #file-paths: '{obj:gerrit_trigger_file_paths}' |
Brian O'Connor | 9fbe772 | 2017-10-27 12:44:04 -0700 | [diff] [blame] | 75 | |
Ray Milkey | 8e46220 | 2017-11-02 10:18:37 -0700 | [diff] [blame] | 76 | - 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 | |
Ray Milkey | d9f7366 | 2017-11-06 10:29:51 -0800 | [diff] [blame] | 93 | - hourly_boiler_plate: &hourly_boiler_plate |
| 94 | name: hourly_boiler_plate |
| 95 | |
| 96 | concurrent: true |
| 97 | |
| 98 | scm: |
| 99 | - lf-infra-gerrit-scm: |
| 100 | git-url: '{git-url}' |
| 101 | refspec: '$GERRIT_REFSPEC' |
| 102 | branch: '$GERRIT_BRANCH' |
| 103 | submodule-recursive: '{submodule-recursive}' |
| 104 | choosing-strategy: gerrit |
| 105 | jenkins-ssh-credential: '{jenkins-ssh-credential}' |
| 106 | |
| 107 | triggers: |
| 108 | - timed: '@hourly' |
| 109 | |
Ray Milkey | 4309d9b | 2017-11-17 13:41:46 -0800 | [diff] [blame] | 110 | - release_build_boiler_plate: &release_build_boiler_plate |
| 111 | name: release_build_boiler_plate |
| 112 | |
| 113 | concurrent: true |
| 114 | |
| 115 | parameters: |
| 116 | - lf-infra-parameters: |
| 117 | project: '{project}' |
| 118 | branch: '{stream}' |
| 119 | stream: '{stream}' |
| 120 | lftools-version: '{lftools-version}' |
| 121 | |
| 122 | - string: |
| 123 | name: ONOS_VERSION |
| 124 | default: '1.12' |
| 125 | description: 'Version of ONOS to build' |
| 126 | |
| 127 | - string: |
| 128 | name: ONOS_NEXT_VERSION |
| 129 | default: '1.13.0-SNAPSHOT' |
| 130 | description: 'Version of ONOS to build' |
| 131 | |
| 132 | scm: |
| 133 | - lf-infra-gerrit-scm: |
| 134 | git-url: '{git-url}' |
| 135 | refspec: '$GERRIT_REFSPEC' |
| 136 | branch: '$GERRIT_BRANCH' |
| 137 | submodule-recursive: '{submodule-recursive}' |
| 138 | choosing-strategy: gerrit |
| 139 | jenkins-ssh-credential: '{jenkins-ssh-credential}' |
| 140 | |
Brian O'Connor | 9fbe772 | 2017-10-27 12:44:04 -0700 | [diff] [blame] | 141 | - job-template: |
| 142 | #default name is global |
| 143 | name: '{project-name}-{stream}-verify' |
| 144 | |
| 145 | # Job template for Java verify jobs |
| 146 | # |
| 147 | # The purpose of this job templte is to run "maven clean install" for |
| 148 | # projects using this template. |
| 149 | # |
| 150 | # Required Variables: |
| 151 | # branch: git branch (eg. master) |
| 152 | |
| 153 | <<: *job_boiler_plate |
| 154 | # yamllint disable-line rule:key-duplicates |
| 155 | <<: *verify_boiler_plate |
| 156 | |
| 157 | builders: |
| 158 | #put shell scripts in file then make sure shell check is installed on verify vms |
Ray Milkey | 7aa4346 | 2017-10-30 16:15:23 -0700 | [diff] [blame] | 159 | - shell: !include-raw-escape: onos-verify.sh |
Yuta HIGUCHI | 02e46d3 | 2017-10-31 10:17:47 -0700 | [diff] [blame] | 160 | # JJB 1.6.2 does not support parameter expansion on filename? |
| 161 | #- shell: !include-raw-escape: {project-name}-verify.sh |
| 162 | |
| 163 | # workaround for lack of parameter expansion support in shell: (see above) |
| 164 | - job-template: |
| 165 | #default name is global |
| 166 | name: 'onos-yang-tools-{stream}-verify' |
| 167 | |
| 168 | # Job template for Java verify jobs |
| 169 | # |
| 170 | # The purpose of this job templte is to run "maven clean install" for |
| 171 | # projects using this template. |
| 172 | # |
| 173 | # Required Variables: |
| 174 | # branch: git branch (eg. master) |
| 175 | |
| 176 | <<: *job_boiler_plate |
| 177 | # yamllint disable-line rule:key-duplicates |
| 178 | <<: *verify_boiler_plate |
| 179 | |
| 180 | builders: |
| 181 | #put shell scripts in file then make sure shell check is installed on verify vms |
| 182 | - shell: !include-raw-escape: onos-yang-tools-verify.sh |
| 183 | |
Ray Milkey | 83d912a | 2017-11-01 13:49:31 -0700 | [diff] [blame] | 184 | # workaround for lack of parameter expansion support in shell: (see above) |
| 185 | - job-template: |
| 186 | #default name is global |
Yuta HIGUCHI | 28821fd | 2017-11-17 16:11:19 -0800 | [diff] [blame^] | 187 | name: 'onos-app-samples-{stream}-verify' |
| 188 | |
| 189 | # Job template for Java verify jobs |
| 190 | # |
| 191 | # The purpose of this job templte is to run "maven clean install" for |
| 192 | # projects using this template. |
| 193 | # |
| 194 | # Required Variables: |
| 195 | # branch: git branch (eg. master) |
| 196 | |
| 197 | <<: *job_boiler_plate |
| 198 | # yamllint disable-line rule:key-duplicates |
| 199 | <<: *verify_boiler_plate |
| 200 | |
| 201 | builders: |
| 202 | #put shell scripts in file then make sure shell check is installed on verify vms |
| 203 | - shell: !include-raw-escape: onos-app-samples-verify.sh |
| 204 | |
| 205 | |
| 206 | # workaround for lack of parameter expansion support in shell: (see above) |
| 207 | - job-template: |
| 208 | #default name is global |
Ray Milkey | 83d912a | 2017-11-01 13:49:31 -0700 | [diff] [blame] | 209 | name: 'onos-gui-{stream}-verify' |
| 210 | |
| 211 | # Job template for Java verify jobs |
| 212 | # |
| 213 | # The purpose of this job templte is to run "maven clean install" for |
| 214 | # projects using this template. |
| 215 | # |
| 216 | # Required Variables: |
| 217 | # branch: git branch (eg. master) |
| 218 | |
| 219 | <<: *job_boiler_plate |
| 220 | # yamllint disable-line rule:key-duplicates |
| 221 | <<: *verify_boiler_plate |
| 222 | |
| 223 | builders: |
| 224 | #put shell scripts in file then make sure shell check is installed on verify vms |
| 225 | - shell: !include-raw-escape: onos-gui-verify.sh |
| 226 | |
Ray Milkey | 8e46220 | 2017-11-02 10:18:37 -0700 | [diff] [blame] | 227 | - job-template: |
| 228 | #default name is global |
| 229 | name: 'onos-{stream}-release-build-verify' |
| 230 | |
| 231 | # Job template for Java release check jobs |
| 232 | # |
| 233 | |
| 234 | <<: *job_boiler_plate |
| 235 | # yamllint disable-line rule:key-duplicates |
Ray Milkey | 29c5434 | 2017-11-06 16:43:01 -0800 | [diff] [blame] | 236 | <<: *daily_boiler_plate |
Ray Milkey | 8e46220 | 2017-11-02 10:18:37 -0700 | [diff] [blame] | 237 | |
| 238 | builders: |
Ray Milkey | 8fae9a7 | 2017-11-17 10:03:54 -0800 | [diff] [blame] | 239 | |
Ray Milkey | 8e46220 | 2017-11-02 10:18:37 -0700 | [diff] [blame] | 240 | #put shell scripts in file then make sure shell check is installed on verify vms |
| 241 | - shell: !include-raw-escape: onos-release-build-verify.sh |
| 242 | # JJB 1.6.2 does not support parameter expansion on filename? |
| 243 | #- shell: !include-raw-escape: {project-name}-verify.sh |
| 244 | |
Ray Milkey | d9f7366 | 2017-11-06 10:29:51 -0800 | [diff] [blame] | 245 | - job-template: |
| 246 | #default name is global |
Ray Milkey | 2afc4a5 | 2017-11-17 11:01:38 -0800 | [diff] [blame] | 247 | name: 'onos-release-build' |
| 248 | |
| 249 | # Job template for Java release jobs |
| 250 | # |
| 251 | |
| 252 | <<: *job_boiler_plate |
| 253 | # yamllint disable-line rule:key-duplicates |
Ray Milkey | 4309d9b | 2017-11-17 13:41:46 -0800 | [diff] [blame] | 254 | <<: *release_build_boiler_plate |
Ray Milkey | 2afc4a5 | 2017-11-17 11:01:38 -0800 | [diff] [blame] | 255 | |
| 256 | builders: |
| 257 | - config-file-provider: |
| 258 | files: |
| 259 | - file-id: 'onos-build-credentials' |
| 260 | target: 'onos-build-credentials' |
| 261 | variable: 'CREDENTIALS_FILE' |
Ray Milkey | e8fd4f0 | 2017-11-17 14:54:18 -0800 | [diff] [blame] | 262 | - file-id: 'buck-config-local' |
| 263 | target: '.buckconfig.local' |
| 264 | variable: 'BUCK_CONFIG_FILE' |
| 265 | - file-id: 'secring.gpg.b64' |
| 266 | target: 'secring.gpg.b64' |
| 267 | variable: 'GPG_B64_FILE' |
Ray Milkey | 2afc4a5 | 2017-11-17 11:01:38 -0800 | [diff] [blame] | 268 | |
| 269 | #put shell scripts in file then make sure shell check is installed on verify vms |
| 270 | - shell: !include-raw-escape: onos-release-build.sh |
| 271 | # JJB 1.6.2 does not support parameter expansion on filename? |
| 272 | #- shell: !include-raw-escape: {project-name}-verify.sh |
| 273 | |
| 274 | - job-template: |
| 275 | #default name is global |
Ray Milkey | d9f7366 | 2017-11-06 10:29:51 -0800 | [diff] [blame] | 276 | name: 'onos-{stream}-maven-verify' |
| 277 | |
| 278 | <<: *job_boiler_plate |
| 279 | # yamllint disable-line rule:key-duplicates |
Ray Milkey | 4502aae | 2017-11-06 13:02:45 -0800 | [diff] [blame] | 280 | <<: *hourly_boiler_plate |
Ray Milkey | d9f7366 | 2017-11-06 10:29:51 -0800 | [diff] [blame] | 281 | |
| 282 | builders: |
| 283 | #put shell scripts in file then make sure shell check is installed on verify vms |
| 284 | - shell: !include-raw-escape: onos-maven-verify.sh |
| 285 | # JJB 1.6.2 does not support parameter expansion on filename? |
| 286 | #- shell: !include-raw-escape: {project-name}-verify.sh |
Brian O'Connor | 9fbe772 | 2017-10-27 12:44:04 -0700 | [diff] [blame] | 287 | |
Ray Milkey | 20d2252 | 2017-11-08 10:55:52 -0800 | [diff] [blame] | 288 | - job-template: |
| 289 | #default name is global |
| 290 | name: 'onos-{stream}-sonar' |
| 291 | |
| 292 | <<: *job_boiler_plate |
| 293 | # yamllint disable-line rule:key-duplicates |
| 294 | <<: *daily_boiler_plate |
| 295 | |
| 296 | builders: |
| 297 | #put shell scripts in file then make sure shell check is installed on verify vms |
| 298 | - shell: !include-raw-escape: onos-sonar.sh |
| 299 | # JJB 1.6.2 does not support parameter expansion on filename? |
| 300 | #- shell: !include-raw-escape: {project-name}-verify.sh |
| 301 | |
Brian O'Connor | 9fbe772 | 2017-10-27 12:44:04 -0700 | [diff] [blame] | 302 | - project: |
| 303 | name: onos |
| 304 | project-name: onos |
| 305 | project: onos |
| 306 | |
| 307 | build-timeout: '1800' |
| 308 | build-node: 'ubuntu16.04-basebuild-8c-15g' |
| 309 | |
| 310 | stream: |
| 311 | - 'master' |
Ray Milkey | 1bc1377 | 2017-10-31 15:57:17 -0700 | [diff] [blame] | 312 | - 'onos-1.10' |
| 313 | - 'onos-1.11' |
Brian O'Connor | 9fbe772 | 2017-10-27 12:44:04 -0700 | [diff] [blame] | 314 | |
| 315 | jobs: |
| 316 | - '{project-name}-{stream}-verify' |
Yuta HIGUCHI | 02e46d3 | 2017-10-31 10:17:47 -0700 | [diff] [blame] | 317 | |
| 318 | - project: |
Ray Milkey | 83d912a | 2017-11-01 13:49:31 -0700 | [diff] [blame] | 319 | name: onos-gui |
| 320 | project-name: onos-gui |
Ray Milkey | 24fe1ee | 2017-11-01 13:59:07 -0700 | [diff] [blame] | 321 | project: onos |
Ray Milkey | 83d912a | 2017-11-01 13:49:31 -0700 | [diff] [blame] | 322 | |
| 323 | build-timeout: '1800' |
| 324 | build-node: 'ubuntu16.04-basebuild-8c-15g' |
| 325 | |
| 326 | stream: |
| 327 | - 'master' |
| 328 | - 'onos-1.10' |
| 329 | - 'onos-1.11' |
| 330 | |
| 331 | jobs: |
| 332 | - 'onos-gui-{stream}-verify' |
| 333 | |
| 334 | - project: |
Yuta HIGUCHI | 02e46d3 | 2017-10-31 10:17:47 -0700 | [diff] [blame] | 335 | name: onos-yang-tools |
| 336 | project-name: onos-yang-tools |
| 337 | project: onos-yang-tools |
| 338 | |
| 339 | build-timeout: '1800' |
| 340 | build-node: 'ubuntu16.04-basebuild-8c-15g' |
| 341 | |
| 342 | stream: |
| 343 | - 'master' |
| 344 | |
| 345 | jobs: |
| 346 | - 'onos-yang-tools-{stream}-verify' |
Ray Milkey | 8e46220 | 2017-11-02 10:18:37 -0700 | [diff] [blame] | 347 | |
| 348 | - project: |
Yuta HIGUCHI | 28821fd | 2017-11-17 16:11:19 -0800 | [diff] [blame^] | 349 | name: onos-app-samples |
| 350 | project-name: onos-app-samples |
| 351 | project: onos-app-samples |
| 352 | |
| 353 | build-timeout: '1800' |
| 354 | build-node: 'ubuntu16.04-basebuild-8c-15g' |
| 355 | |
| 356 | stream: |
| 357 | - 'master' |
| 358 | |
| 359 | jobs: |
| 360 | - 'onos-app-samples-{stream}-verify' |
| 361 | |
| 362 | |
| 363 | |
| 364 | - project: |
Ray Milkey | 8e46220 | 2017-11-02 10:18:37 -0700 | [diff] [blame] | 365 | name: onos-release |
| 366 | project-name: onos-release |
| 367 | project: onos |
| 368 | |
| 369 | build-timeout: '1800' |
| 370 | build-node: 'ubuntu16.04-basebuild-8c-15g' |
| 371 | |
| 372 | stream: |
| 373 | - 'master' |
| 374 | |
| 375 | jobs: |
| 376 | - 'onos-{stream}-release-build-verify' |
Ray Milkey | d9f7366 | 2017-11-06 10:29:51 -0800 | [diff] [blame] | 377 | |
| 378 | - project: |
| 379 | name: onos-maven-verify |
| 380 | project-name: onos-maven-verify |
| 381 | project: onos |
| 382 | |
| 383 | build-timeout: '1800' |
| 384 | build-node: 'ubuntu16.04-basebuild-8c-15g' |
| 385 | |
| 386 | stream: |
| 387 | - 'master' |
| 388 | |
| 389 | jobs: |
| 390 | - 'onos-{stream}-maven-verify' |
Ray Milkey | 20d2252 | 2017-11-08 10:55:52 -0800 | [diff] [blame] | 391 | |
| 392 | - project: |
| 393 | name: onos-sonar |
| 394 | project-name: onos-sonar |
| 395 | project: onos |
| 396 | |
| 397 | build-timeout: '1800' |
| 398 | build-node: 'ubuntu16.04-basebuild-8c-15g' |
| 399 | |
| 400 | stream: |
| 401 | - 'master' |
| 402 | |
| 403 | jobs: |
| 404 | - 'onos-{stream}-sonar' |
| 405 | |
Ray Milkey | 2afc4a5 | 2017-11-17 11:01:38 -0800 | [diff] [blame] | 406 | - project: |
| 407 | name: onos-release-build |
| 408 | project-name: onos-release-build |
| 409 | project: onos |
| 410 | |
| 411 | build-timeout: '1800' |
| 412 | build-node: 'ubuntu16.04-basebuild-8c-15g' |
| 413 | |
Ray Milkey | 4309d9b | 2017-11-17 13:41:46 -0800 | [diff] [blame] | 414 | stream: 'master' |
Ray Milkey | 2afc4a5 | 2017-11-17 11:01:38 -0800 | [diff] [blame] | 415 | |
| 416 | jobs: |
| 417 | - 'onos-release-build' |