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 | |
Brian O'Connor | 9fbe772 | 2017-10-27 12:44:04 -0700 | [diff] [blame] | 93 | - job-template: |
| 94 | #default name is global |
| 95 | name: '{project-name}-{stream}-verify' |
| 96 | |
| 97 | # Job template for Java verify jobs |
| 98 | # |
| 99 | # The purpose of this job templte is to run "maven clean install" for |
| 100 | # projects using this template. |
| 101 | # |
| 102 | # Required Variables: |
| 103 | # branch: git branch (eg. master) |
| 104 | |
| 105 | <<: *job_boiler_plate |
| 106 | # yamllint disable-line rule:key-duplicates |
| 107 | <<: *verify_boiler_plate |
| 108 | |
| 109 | builders: |
| 110 | #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] | 111 | - shell: !include-raw-escape: onos-verify.sh |
Yuta HIGUCHI | 02e46d3 | 2017-10-31 10:17:47 -0700 | [diff] [blame] | 112 | # JJB 1.6.2 does not support parameter expansion on filename? |
| 113 | #- shell: !include-raw-escape: {project-name}-verify.sh |
| 114 | |
| 115 | # workaround for lack of parameter expansion support in shell: (see above) |
| 116 | - job-template: |
| 117 | #default name is global |
| 118 | name: 'onos-yang-tools-{stream}-verify' |
| 119 | |
| 120 | # Job template for Java verify jobs |
| 121 | # |
| 122 | # The purpose of this job templte is to run "maven clean install" for |
| 123 | # projects using this template. |
| 124 | # |
| 125 | # Required Variables: |
| 126 | # branch: git branch (eg. master) |
| 127 | |
| 128 | <<: *job_boiler_plate |
| 129 | # yamllint disable-line rule:key-duplicates |
| 130 | <<: *verify_boiler_plate |
| 131 | |
| 132 | builders: |
| 133 | #put shell scripts in file then make sure shell check is installed on verify vms |
| 134 | - shell: !include-raw-escape: onos-yang-tools-verify.sh |
| 135 | |
Ray Milkey | 83d912a | 2017-11-01 13:49:31 -0700 | [diff] [blame] | 136 | # workaround for lack of parameter expansion support in shell: (see above) |
| 137 | - job-template: |
| 138 | #default name is global |
| 139 | name: 'onos-gui-{stream}-verify' |
| 140 | |
| 141 | # Job template for Java verify jobs |
| 142 | # |
| 143 | # The purpose of this job templte is to run "maven clean install" for |
| 144 | # projects using this template. |
| 145 | # |
| 146 | # Required Variables: |
| 147 | # branch: git branch (eg. master) |
| 148 | |
| 149 | <<: *job_boiler_plate |
| 150 | # yamllint disable-line rule:key-duplicates |
| 151 | <<: *verify_boiler_plate |
| 152 | |
| 153 | builders: |
| 154 | #put shell scripts in file then make sure shell check is installed on verify vms |
| 155 | - shell: !include-raw-escape: onos-gui-verify.sh |
| 156 | |
Ray Milkey | 8e46220 | 2017-11-02 10:18:37 -0700 | [diff] [blame^] | 157 | - job-template: |
| 158 | #default name is global |
| 159 | name: 'onos-{stream}-release-build-verify' |
| 160 | |
| 161 | # Job template for Java release check jobs |
| 162 | # |
| 163 | |
| 164 | <<: *job_boiler_plate |
| 165 | # yamllint disable-line rule:key-duplicates |
| 166 | <<: *daily_boiler_plate |
| 167 | |
| 168 | builders: |
| 169 | #put shell scripts in file then make sure shell check is installed on verify vms |
| 170 | - shell: !include-raw-escape: onos-release-build-verify.sh |
| 171 | # JJB 1.6.2 does not support parameter expansion on filename? |
| 172 | #- shell: !include-raw-escape: {project-name}-verify.sh |
| 173 | |
Brian O'Connor | 9fbe772 | 2017-10-27 12:44:04 -0700 | [diff] [blame] | 174 | |
| 175 | - project: |
| 176 | name: onos |
| 177 | project-name: onos |
| 178 | project: onos |
| 179 | |
| 180 | build-timeout: '1800' |
| 181 | build-node: 'ubuntu16.04-basebuild-8c-15g' |
| 182 | |
| 183 | stream: |
| 184 | - 'master' |
Ray Milkey | 1bc1377 | 2017-10-31 15:57:17 -0700 | [diff] [blame] | 185 | - 'onos-1.10' |
| 186 | - 'onos-1.11' |
Brian O'Connor | 9fbe772 | 2017-10-27 12:44:04 -0700 | [diff] [blame] | 187 | |
| 188 | jobs: |
| 189 | - '{project-name}-{stream}-verify' |
Yuta HIGUCHI | 02e46d3 | 2017-10-31 10:17:47 -0700 | [diff] [blame] | 190 | |
| 191 | - project: |
Ray Milkey | 83d912a | 2017-11-01 13:49:31 -0700 | [diff] [blame] | 192 | name: onos-gui |
| 193 | project-name: onos-gui |
Ray Milkey | 24fe1ee | 2017-11-01 13:59:07 -0700 | [diff] [blame] | 194 | project: onos |
Ray Milkey | 83d912a | 2017-11-01 13:49:31 -0700 | [diff] [blame] | 195 | |
| 196 | build-timeout: '1800' |
| 197 | build-node: 'ubuntu16.04-basebuild-8c-15g' |
| 198 | |
| 199 | stream: |
| 200 | - 'master' |
| 201 | - 'onos-1.10' |
| 202 | - 'onos-1.11' |
| 203 | |
| 204 | jobs: |
| 205 | - 'onos-gui-{stream}-verify' |
| 206 | |
| 207 | - project: |
Yuta HIGUCHI | 02e46d3 | 2017-10-31 10:17:47 -0700 | [diff] [blame] | 208 | name: onos-yang-tools |
| 209 | project-name: onos-yang-tools |
| 210 | project: onos-yang-tools |
| 211 | |
| 212 | build-timeout: '1800' |
| 213 | build-node: 'ubuntu16.04-basebuild-8c-15g' |
| 214 | |
| 215 | stream: |
| 216 | - 'master' |
| 217 | |
| 218 | jobs: |
| 219 | - 'onos-yang-tools-{stream}-verify' |
Ray Milkey | 8e46220 | 2017-11-02 10:18:37 -0700 | [diff] [blame^] | 220 | |
| 221 | - project: |
| 222 | name: onos-release |
| 223 | project-name: onos-release |
| 224 | project: onos |
| 225 | |
| 226 | build-timeout: '1800' |
| 227 | build-node: 'ubuntu16.04-basebuild-8c-15g' |
| 228 | |
| 229 | stream: |
| 230 | - 'master' |
| 231 | |
| 232 | jobs: |
| 233 | - 'onos-{stream}-release-build-verify' |