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