Kailash Khalasi | 3bffc82 | 2018-03-28 09:56:23 -0700 | [diff] [blame] | 1 | --- |
| 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' |
Kailash Khalasi | 7b92e89 | 2018-03-30 07:07:55 -0700 | [diff] [blame] | 21 | jenkins-path: 'Jenkinsfile' |
Kailash Khalasi | 3bffc82 | 2018-03-28 09:56:23 -0700 | [diff] [blame] | 22 | |
| 23 | |
| 24 | - job-version-plate: &job-version-plate |
| 25 | name: job-version-plate |
| 26 | version: |
| 27 | - 'master' |
Kailash Khalasi | 3bffc82 | 2018-03-28 09:56:23 -0700 | [diff] [blame] | 28 | |
| 29 | - job-type-plate: &job-type-plate |
| 30 | name: job-type-plate |
| 31 | type: |
| 32 | - 'all-xos-api-tests' |
Kailash Khalasi | 3bffc82 | 2018-03-28 09:56:23 -0700 | [diff] [blame] | 33 | |
| 34 | - job-template: |
| 35 | name: '{type}-pipeline-{version}' |
| 36 | description: | |
| 37 | <!-- Managed by Jenkins Job Builder --> |
| 38 | This pipeline contains the test results and logs of {type} on CORD {version}. <br /><br /> |
| 39 | Created by Kailash Khalasi - kailash@opennetworking.org<br /> |
| 40 | Copyright (c) 2017 Open Networking Foundation (ONF) |
| 41 | |
| 42 | <<: *test-pipe-job-boiler-plate |
| 43 | |
| 44 | parameters: |
| 45 | |
| 46 | - string: |
| 47 | name: GERRIT_CHANGE_NUMBER |
| 48 | default: '2831' |
| 49 | description: 'This parameter is required to manually build this pipeline job' |
| 50 | |
| 51 | - string: |
| 52 | name: GERRIT_PATCHSET_NUMBER |
| 53 | default: '1' |
| 54 | description: 'This parameter is required to manually build this pipeline job' |
| 55 | |
| 56 | - string: |
| 57 | name: RECEIPIENT |
| 58 | default: 'kailash@opennetworking.org, you@opennetworking.org, suchitra@opennetworking.org' |
| 59 | description: '' |
| 60 | |
| 61 | - lf-infra-parameters: |
| 62 | project: '{project}' |
| 63 | branch: '{stream}' |
| 64 | stream: '{stream}' |
| 65 | lftools-version: '<1.0.0' |
| 66 | |
| 67 | concurrent: true |
| 68 | |
| 69 | triggers: |
| 70 | - gerrit: |
Kailash Khalasi | 4a476ef | 2018-03-29 18:04:46 -0700 | [diff] [blame] | 71 | server-name: 'CORD Gerrit' |
Kailash Khalasi | 3bffc82 | 2018-03-28 09:56:23 -0700 | [diff] [blame] | 72 | trigger-on: |
| 73 | - patchset-created-event: |
| 74 | exclude-drafts: false |
| 75 | exclude-trivial-rebase: false |
| 76 | exclude-no-code-change: false |
| 77 | - draft-published-event |
| 78 | projects: |
| 79 | - project-compare-type: PLAIN |
Kailash Khalasi | 2360504 | 2018-03-30 09:36:37 -0700 | [diff] [blame] | 80 | project-pattern: 'cord-tester' |
Kailash Khalasi | 3bffc82 | 2018-03-28 09:56:23 -0700 | [diff] [blame] | 81 | branches: |
| 82 | - branch-compare-type: ANT |
Kailash Khalasi | 1f91e6f | 2018-03-29 19:12:50 -0700 | [diff] [blame] | 83 | branch-pattern: 'master' |
Kailash Khalasi | 3bffc82 | 2018-03-28 09:56:23 -0700 | [diff] [blame] | 84 | |
| 85 | pipeline-scm: |
| 86 | script-path: '{jenkins-path}/{type}-JenkinsFile' |
| 87 | scm: |
| 88 | - git: |
| 89 | url: '{gitURL}' |
| 90 | branches: |
| 91 | - 'master' |
| 92 | |
| 93 | - project: |
| 94 | name: build-pipeline |
| 95 | |
| 96 | <<: *job-type-plate |
| 97 | |
| 98 | project-name: '{type}-pipeline' |
| 99 | |
| 100 | build-timeout: '60' |
| 101 | build-node: 'ubuntu16.04-basebuild-1c-2g' |
| 102 | |
| 103 | <<: *test-pipe-init-procedure-plate |
| 104 | <<: *job-version-plate |
| 105 | |
| 106 | jobs: |
| 107 | - '{type}-pipeline-{version}' |
| 108 | |