Kailash Khalasi | c585d06 | 2018-04-06 16:22:40 -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' |
| 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 Khalasi | 41273bb | 2018-04-09 12:58:16 -0700 | [diff] [blame^] | 64 | name: 'verify-{repo}-{type}-pipeline-{version}' |
Kailash Khalasi | c585d06 | 2018-04-06 16:22:40 -0700 | [diff] [blame] | 65 | 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: |
| 101 | server-name: 'CORD Gerrit' |
| 102 | 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 Khalasi | 41273bb | 2018-04-09 12:58:16 -0700 | [diff] [blame^] | 110 | project-pattern: '{repo}' |
Kailash Khalasi | c585d06 | 2018-04-06 16:22:40 -0700 | [diff] [blame] | 111 | 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: |
| 136 | name: configRepoUrl |
| 137 | default: 'https://gerrit.opencord.org/pod-configs' |
| 138 | description: 'The URL of the POD configs repository' |
| 139 | |
| 140 | - string: |
| 141 | name: configRepoBaseDir |
| 142 | default: 'pod-configs/' |
| 143 | description: 'The directory inside the POD configs repository' |
| 144 | |
| 145 | - string: |
| 146 | name: configRepoFile |
| 147 | default: 'deployment-configs/qct-pod4.yml' |
| 148 | description: 'The deployment config file' |
| 149 | |
| 150 | - string: |
| 151 | name: RECEIPIENT |
| 152 | default: 'kailash@opennetworking.org, you@opennetworking.org, suchitra@opennetworking.org' |
| 153 | description: '' |
| 154 | |
| 155 | - lf-infra-parameters: |
| 156 | project: 'CordTest' |
| 157 | branch: 'master' |
| 158 | stream: 'master' |
| 159 | lftools-version: '<1.0.0' |
| 160 | |
| 161 | concurrent: true |
| 162 | |
| 163 | triggers: |
| 164 | - timed: | |
| 165 | TZ=America/Los_Angeles |
| 166 | H 21 * * * |
| 167 | |
| 168 | pipeline-scm: |
| 169 | script-path: 'build/Jenkinsfile.newBuildSystem' |
| 170 | scm: |
| 171 | - git: |
| 172 | url: 'https://gerrit.opencord.org/cord' |
| 173 | branches: |
| 174 | - 'master' |
| 175 | |
| 176 | - project: |
| 177 | name: build-pipeline |
| 178 | |
| 179 | <<: *job-type-plate |
| 180 | |
| 181 | project-name: '{type}-pipeline' |
| 182 | |
| 183 | build-timeout: '60' |
| 184 | build-node: 'ubuntu16.04-basebuild-1c-2g' |
| 185 | |
| 186 | <<: *test-pipe-init-procedure-plate |
| 187 | <<: *job-version-plate |
Kailash Khalasi | 41273bb | 2018-04-09 12:58:16 -0700 | [diff] [blame^] | 188 | <<: *job-repo-plate |
Kailash Khalasi | c585d06 | 2018-04-06 16:22:40 -0700 | [diff] [blame] | 189 | |
| 190 | jobs: |
Kailash Khalasi | 41273bb | 2018-04-09 12:58:16 -0700 | [diff] [blame^] | 191 | - 'verify-{repo}-{type}-pipeline-{version}' |
Kailash Khalasi | c585d06 | 2018-04-06 16:22:40 -0700 | [diff] [blame] | 192 | |
| 193 | - project: |
| 194 | name: nightly-build-pipeline |
| 195 | |
| 196 | project-name: 'automated-build-pipeline' |
| 197 | |
| 198 | build-timeout: '300' |
| 199 | build-node: 'qct-cord-pod-04' |
| 200 | |
| 201 | jobs: |
| 202 | - 'automated-nightly-build-qct4-cord-master' |