Kailash Khalasi | c585d06 | 2018-04-06 16:22:40 -0700 | [diff] [blame] | 1 | --- |
Kailash Khalasi | 3074e60 | 2018-04-12 12:09:20 -0700 | [diff] [blame] | 2 | # POD Nightly Build Pipeline Jobs |
Kailash Khalasi | c585d06 | 2018-04-06 16:22:40 -0700 | [diff] [blame] | 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: |
Kailash Khalasi | 2fbb176 | 2018-04-13 12:22:42 -0700 | [diff] [blame^] | 12 | - cord-infra-properties: |
| 13 | build-days-to-keep: '{build-days-to-keep}' |
| 14 | artifact-num-to-keep: '{artifact-num-to-keep}' |
Kailash Khalasi | c585d06 | 2018-04-06 16:22:40 -0700 | [diff] [blame] | 15 | |
Kailash Khalasi | c585d06 | 2018-04-06 16:22:40 -0700 | [diff] [blame] | 16 | |
Kailash Khalasi | 2fbb176 | 2018-04-13 12:22:42 -0700 | [diff] [blame^] | 17 | - job-parameters-plate: &job-parameters-plate |
| 18 | name: job-parameters-plate |
Kailash Khalasi | c585d06 | 2018-04-06 16:22:40 -0700 | [diff] [blame] | 19 | <<: *test-pipe-job-boiler-plate |
| 20 | |
| 21 | parameters: |
Kailash Khalasi | c585d06 | 2018-04-06 16:22:40 -0700 | [diff] [blame] | 22 | - string: |
Kailash Khalasi | bb7ca64 | 2018-04-11 13:35:17 -0700 | [diff] [blame] | 23 | name: devNodeName |
Kailash Khalasi | 4e08a2e | 2018-04-13 08:42:36 -0700 | [diff] [blame] | 24 | default: '{pod}' |
Kailash Khalasi | bb7ca64 | 2018-04-11 13:35:17 -0700 | [diff] [blame] | 25 | description: 'Jenkins node name of Dev Node' |
| 26 | |
| 27 | - string: |
Kailash Khalasi | c585d06 | 2018-04-06 16:22:40 -0700 | [diff] [blame] | 28 | name: configRepoUrl |
| 29 | default: 'https://gerrit.opencord.org/pod-configs' |
| 30 | description: 'The URL of the POD configs repository' |
| 31 | |
| 32 | - string: |
| 33 | name: configRepoBaseDir |
| 34 | default: 'pod-configs/' |
| 35 | description: 'The directory inside the POD configs repository' |
| 36 | |
| 37 | - string: |
| 38 | name: configRepoFile |
Kailash Khalasi | 7470c45 | 2018-04-13 10:36:49 -0700 | [diff] [blame] | 39 | default: 'deployment-configs/{pod}.yml' |
Kailash Khalasi | c585d06 | 2018-04-06 16:22:40 -0700 | [diff] [blame] | 40 | description: 'The deployment config file' |
| 41 | |
| 42 | - string: |
Kailash Khalasi | 2fbb176 | 2018-04-13 12:22:42 -0700 | [diff] [blame^] | 43 | name: branch |
| 44 | default: '{branch}' |
Kailash Khalasi | fbb3ec4 | 2018-04-13 10:50:34 -0700 | [diff] [blame] | 45 | |
| 46 | - string: |
Kailash Khalasi | 2fbb176 | 2018-04-13 12:22:42 -0700 | [diff] [blame^] | 47 | name: notificationEmail |
Kailash Khalasi | c585d06 | 2018-04-06 16:22:40 -0700 | [diff] [blame] | 48 | default: 'kailash@opennetworking.org, you@opennetworking.org, suchitra@opennetworking.org' |
| 49 | description: '' |
| 50 | |
Kailash Khalasi | c585d06 | 2018-04-06 16:22:40 -0700 | [diff] [blame] | 51 | concurrent: true |
| 52 | |
Kailash Khalasi | 2fbb176 | 2018-04-13 12:22:42 -0700 | [diff] [blame^] | 53 | - job-template: |
| 54 | name: 'build_{pod}_{branch}' |
| 55 | id: build_pod_first |
| 56 | description: | |
| 57 | <!-- Managed by Jenkins Job Builder --> |
| 58 | Nightly Physical POD Builds at {pod} <br /><br /> |
| 59 | Created from job-template {id} from ci-management/jjb/cord-test/cord-test-pipeline.yaml <br /> |
| 60 | Created by Kailash Khalasi - kailash@opennetworking.org <br /> |
| 61 | Copyright (c) 2017 Open Networking Foundation (ONF) |
| 62 | |
| 63 | <<: *job-parameters-plate |
Kailash Khalasi | c585d06 | 2018-04-06 16:22:40 -0700 | [diff] [blame] | 64 | |
| 65 | pipeline-scm: |
Kailash Khalasi | 2fbb176 | 2018-04-13 12:22:42 -0700 | [diff] [blame^] | 66 | script-path: '{Jenkinsfile}' |
Kailash Khalasi | c585d06 | 2018-04-06 16:22:40 -0700 | [diff] [blame] | 67 | scm: |
| 68 | - git: |
Kailash Khalasi | 2fbb176 | 2018-04-13 12:22:42 -0700 | [diff] [blame^] | 69 | url: '{gerrit-server-url}/cord' |
Kailash Khalasi | c585d06 | 2018-04-06 16:22:40 -0700 | [diff] [blame] | 70 | branches: |
Kailash Khalasi | 2fbb176 | 2018-04-13 12:22:42 -0700 | [diff] [blame^] | 71 | - '{branch}' |
Kailash Khalasi | c585d06 | 2018-04-06 16:22:40 -0700 | [diff] [blame] | 72 | |
Kailash Khalasi | 2fbb176 | 2018-04-13 12:22:42 -0700 | [diff] [blame^] | 73 | triggers: |
| 74 | - timed: | |
| 75 | TZ=America/Los_Angeles |
| 76 | H {time} * * * |
| 77 | |
| 78 | - job-template: |
| 79 | name: 'build_{pod}_{branch}' |
| 80 | id: build_pod |
| 81 | description: | |
| 82 | <!-- Managed by Jenkins Job Builder --> |
| 83 | Nightly Physical POD Builds at {pod} <br /><br /> |
| 84 | Created from job-template {id} from ci-management/jjb/cord-test/cord-test-pipeline.yaml <br /> |
| 85 | Created by Kailash Khalasi - kailash@opennetworking.org <br /> |
| 86 | Copyright (c) 2017 Open Networking Foundation (ONF) |
| 87 | |
| 88 | <<: *job-parameters-plate |
| 89 | |
| 90 | pipeline-scm: |
| 91 | script-path: '{Jenkinsfile}' |
| 92 | scm: |
| 93 | - git: |
| 94 | url: '{gerrit-server-url}/cord' |
| 95 | branches: |
| 96 | - '{branch}' |
| 97 | |
| 98 | triggers: |
| 99 | - reverse: |
| 100 | jobs: 'build-{pod}-{fromBranch}-test' |
| 101 | result: 'failure' |
| 102 | |
| 103 | - job-template: |
| 104 | name: 'build_{pod}_{branch}_test' |
| 105 | id: build_pod_test |
| 106 | description: | |
| 107 | <!-- Managed by Jenkins Job Builder --> |
| 108 | Post Tests on {pod} triggered by build_{pod}_{branch} <br /><br /> |
| 109 | Created from job-template {id} from ci-management/jjb/cord-test/cord-test-pipeline.yaml <br /> |
| 110 | Created by Kailash Khalasi - kailash@opennetworking.org <br /> |
| 111 | Copyright (c) 2017 Open Networking Foundation (ONF) |
| 112 | |
| 113 | branches: '{branch}' |
| 114 | |
| 115 | <<: *job-parameters-plate |
| 116 | |
| 117 | pipeline-scm: |
| 118 | script-path: '{Jenkinsfile}' |
| 119 | scm: |
| 120 | - git: |
| 121 | url: '{gerrit-server-url}/cord-tester' |
| 122 | branches: |
| 123 | - '{branch}' |
| 124 | |
| 125 | triggers: |
| 126 | - reverse: |
| 127 | jobs: 'build-{pod}-{branch}' |
| 128 | result: 'failure' |
Kailash Khalasi | c585d06 | 2018-04-06 16:22:40 -0700 | [diff] [blame] | 129 | |
| 130 | - project: |
| 131 | name: nightly-build-pipeline |
| 132 | |
Kailash Khalasi | 4e08a2e | 2018-04-13 08:42:36 -0700 | [diff] [blame] | 133 | project-name: '{name}' |
Kailash Khalasi | c585d06 | 2018-04-06 16:22:40 -0700 | [diff] [blame] | 134 | |
| 135 | build-timeout: '300' |
Kailash Khalasi | c585d06 | 2018-04-06 16:22:40 -0700 | [diff] [blame] | 136 | |
| 137 | jobs: |
Kailash Khalasi | 2fbb176 | 2018-04-13 12:22:42 -0700 | [diff] [blame^] | 138 | - 'build_pod_first': |
| 139 | pod: 'qct-pod1' |
| 140 | branch: 'cord-4.0' |
| 141 | Jenkinsfile: 'Jenkinsfile.newBuildSystem' |
| 142 | time: '20' |
| 143 | |
| 144 | - 'build_pod': |
| 145 | pod: 'qct-pod1' |
| 146 | branch: 'cord-4.1' |
| 147 | Jenkinsfile: 'Jenkinsfile.newBuildSystem' |
| 148 | fromBranch: 'cord-4.0' |
| 149 | |
| 150 | - 'build_pod': |
| 151 | pod: 'qct-pod1' |
| 152 | branch: 'cord-5.0' |
| 153 | Jenkinsfile: 'Jenkinsfile.newBuildSystem' |
| 154 | fromBranch: 'cord-4.1' |
| 155 | |
| 156 | - 'build_pod': |
| 157 | pod: 'qct-pod1' |
| 158 | branch: 'master' |
| 159 | Jenkinsfile: 'Jenkinsfile' |
| 160 | fromBranch: 'cord-5.0' |
| 161 | |
| 162 | - 'build_pod_first': |
| 163 | pod: 'qct-pod3' |
| 164 | branch: 'cord-4.0' |
| 165 | Jenkinsfile: 'Jenkinsfile.newBuildSystem' |
| 166 | time: '20' |
| 167 | |
| 168 | - 'build_pod': |
| 169 | pod: 'qct-pod3' |
| 170 | branch: 'cord-4.1' |
| 171 | Jenkinsfile: 'Jenkinsfile.newBuildSystem' |
| 172 | fromBranch: 'cord-4.0' |
| 173 | |
| 174 | - 'build_pod': |
| 175 | pod: 'qct-pod3' |
| 176 | branch: 'cord-5.0' |
| 177 | Jenkinsfile: 'Jenkinsfile.newBuildSystem' |
| 178 | fromBranch: 'cord-4.1' |
| 179 | |
| 180 | - 'build_pod': |
| 181 | pod: 'qct-pod3' |
| 182 | branch: 'master' |
| 183 | Jenkinsfile: 'Jenkinsfile' |
| 184 | fromBranch: 'cord-5.0' |
| 185 | |
| 186 | - 'build_pod_test': |
| 187 | pod: 'qct-pod1' |
| 188 | branch: 'cord-4.0' |
| 189 | Jenkinsfile: 'Jenkinsfile-rcord' |
| 190 | |
| 191 | - 'build_pod_test': |
| 192 | pod: 'qct-pod1' |
| 193 | branch: 'cord-4.1' |
| 194 | Jenkinsfile: 'Jenkinsfile-rcord' |
| 195 | |
| 196 | - 'build_pod_test': |
| 197 | pod: 'qct-pod1' |
| 198 | branch: 'cord-5.0' |
| 199 | Jenkinsfile: 'Jenkinsfile-rcord' |
| 200 | |
| 201 | - 'build_pod_test': |
| 202 | pod: 'qct-pod1' |
| 203 | branch: 'master' |
| 204 | Jenkinsfile: 'Jenkinsfile-rcord' |
| 205 | |
| 206 | - 'build_pod_test': |
| 207 | pod: 'qct-pod3' |
| 208 | branch: 'cord-4.0' |
| 209 | Jenkinsfile: 'Jenkinsfile-rcord' |
| 210 | |
| 211 | - 'build_pod_test': |
| 212 | pod: 'qct-pod3' |
| 213 | branch: 'cord-4.1' |
| 214 | Jenkinsfile: 'Jenkinsfile-rcord' |
| 215 | |
| 216 | - 'build_pod_test': |
| 217 | pod: 'qct-pod3' |
| 218 | branch: 'cord-5.0' |
| 219 | Jenkinsfile: 'Jenkinsfile-rcord' |
| 220 | |
| 221 | - 'build_pod_test': |
| 222 | pod: 'qct-pod3' |
| 223 | branch: 'master' |
| 224 | Jenkinsfile: 'Jenkinsfile-rcord' |