Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 1 | --- |
| 2 | - job-template: |
| 3 | # Job template for python verify jobs |
| 4 | # |
Jessica Wagantall | a0b80c6 | 2017-12-21 12:10:19 -0800 | [diff] [blame^] | 5 | # The purpose of this job template is to run: |
| 6 | # 1. tox |
| 7 | # |
| 8 | # This job supports subprojects. |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 9 | # |
| 10 | # Required Variables: |
| 11 | # branch: git branch (eg. stable/lithium or master) |
| 12 | # Optional Variables: |
| 13 | # path: directory containing the project's tox.ini relative to |
| 14 | # the workspace. The default is the project root. |
| 15 | # pattern: ant file-path pattern relative to the workspace used to |
| 16 | # trigger the job |
| 17 | |
Andrew Grimberg | ce2286c | 2017-01-31 05:50:39 -0800 | [diff] [blame] | 18 | name: '{project-name}-{stream}-{subproject}-verify-python' |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 19 | path: '$WORKSPACE' |
| 20 | |
| 21 | project-type: freestyle |
| 22 | concurrent: true |
| 23 | node: '{build-node}' |
| 24 | |
Andrew Grimberg | 94ef33d | 2017-01-31 05:16:56 -0800 | [diff] [blame] | 25 | properties: |
Andrew Grimberg | 4307a1c | 2017-03-16 13:00:00 -0700 | [diff] [blame] | 26 | - infra-properties: |
Andrew Grimberg | 94ef33d | 2017-01-31 05:16:56 -0800 | [diff] [blame] | 27 | build-days-to-keep: '{build-days-to-keep}' |
| 28 | |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 29 | parameters: |
Andrew Grimberg | 4307a1c | 2017-03-16 13:00:00 -0700 | [diff] [blame] | 30 | - infra-parameters: |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 31 | project: '{project}' |
| 32 | branch: '{branch}' |
| 33 | refspec: 'refs/heads/{branch}' |
Andrew Grimberg | 597853d | 2017-01-31 05:28:25 -0800 | [diff] [blame] | 34 | artifacts: '{archive-artifacts}' |
Andrew Grimberg | dcdce33 | 2017-02-24 11:27:09 -0800 | [diff] [blame] | 35 | - maven-exec: |
Andrew Grimberg | e246588 | 2017-02-24 12:38:05 -0800 | [diff] [blame] | 36 | maven-version: '{maven-version}' |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 37 | |
| 38 | scm: |
| 39 | - gerrit-trigger-scm: |
| 40 | refspec: '$GERRIT_REFSPEC' |
| 41 | choosing-strategy: 'gerrit' |
Jeremy Phelps | 11f5d41 | 2017-06-30 13:56:19 -0500 | [diff] [blame] | 42 | submodule-recursive: '{submodule-recursive}' |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 43 | |
| 44 | wrappers: |
Andrew Grimberg | 4307a1c | 2017-03-16 13:00:00 -0700 | [diff] [blame] | 45 | - infra-wrappers: |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 46 | build-timeout: '{build-timeout}' |
| 47 | |
| 48 | triggers: |
Andrew Grimberg | 94ef33d | 2017-01-31 05:16:56 -0800 | [diff] [blame] | 49 | - gerrit-trigger-patch-submitted: |
| 50 | server: '{server-name}' |
| 51 | project: '{project}' |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 52 | branch: '{branch}' |
Andrew Grimberg | 94ef33d | 2017-01-31 05:16:56 -0800 | [diff] [blame] | 53 | files: '{pattern}' |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 54 | |
| 55 | builders: |
Andrew Grimberg | d5410d1 | 2017-02-10 10:44:11 -0800 | [diff] [blame] | 56 | - provide-maven-settings: |
| 57 | global-settings-file: 'global-settings' |
| 58 | settings-file: '{mvn-settings}' |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 59 | - shell: | |
Andrew Grimberg | 673c963 | 2017-02-16 06:21:00 -0800 | [diff] [blame] | 60 | #!/bin/bash |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 61 | virtualenv $WORKSPACE/venv-tox |
| 62 | source $WORKSPACE/venv-tox/bin/activate |
| 63 | pip install --upgrade pip |
| 64 | pip install --upgrade tox argparse |
| 65 | pip freeze |
| 66 | cd $WORKSPACE/{path} |
| 67 | tox |
| 68 | |
Andrew Grimberg | 4ecb8f2 | 2017-04-06 13:57:46 -0700 | [diff] [blame] | 69 | publishers: |
| 70 | - infra-shiplogs: |
| 71 | maven-version: '{maven-version}' |
DR695H | f68e919 | 2017-02-20 17:06:47 -0500 | [diff] [blame] | 72 | |
| 73 | - job-template: |
Jessica Wagantall | a0b80c6 | 2017-12-21 12:10:19 -0800 | [diff] [blame^] | 74 | # Job template for docker daily jobs |
| 75 | # |
| 76 | # The purpose of this job template is to run: |
| 77 | # 1. login into the docker registry |
| 78 | # 2. docker build |
| 79 | # 3. docker tag |
| 80 | # 4. docker push |
| 81 | # |
| 82 | # Required Variables: |
| 83 | # branch: git branch (eg. stable/lithium or master) |
| 84 | |
DR695H | f68e919 | 2017-02-20 17:06:47 -0500 | [diff] [blame] | 85 | name: '{project-name}-{stream}-docker-shell-daily' |
| 86 | project-type: freestyle |
| 87 | node: 'ubuntu1604-docker-8c-8g' |
| 88 | |
| 89 | properties: |
Andrew Grimberg | 4307a1c | 2017-03-16 13:00:00 -0700 | [diff] [blame] | 90 | - infra-properties: |
DR695H | f68e919 | 2017-02-20 17:06:47 -0500 | [diff] [blame] | 91 | build-days-to-keep: '{build-days-to-keep}' |
| 92 | |
| 93 | parameters: |
Andrew Grimberg | 4307a1c | 2017-03-16 13:00:00 -0700 | [diff] [blame] | 94 | - infra-parameters: |
DR695H | f68e919 | 2017-02-20 17:06:47 -0500 | [diff] [blame] | 95 | project: '{project}' |
| 96 | branch: '{branch}' |
| 97 | refspec: 'refs/heads/{branch}' |
| 98 | artifacts: '{archive-artifacts}' |
Andrew Grimberg | dcdce33 | 2017-02-24 11:27:09 -0800 | [diff] [blame] | 99 | - maven-exec: |
Andrew Grimberg | e246588 | 2017-02-24 12:38:05 -0800 | [diff] [blame] | 100 | maven-version: '{maven-version}' |
DR695H | f68e919 | 2017-02-20 17:06:47 -0500 | [diff] [blame] | 101 | |
| 102 | scm: |
| 103 | - gerrit-trigger-scm: |
| 104 | refspec: '' |
| 105 | choosing-strategy: 'default' |
Jeremy Phelps | 11f5d41 | 2017-06-30 13:56:19 -0500 | [diff] [blame] | 106 | submodule-recursive: '{submodule-recursive}' |
DR695H | f68e919 | 2017-02-20 17:06:47 -0500 | [diff] [blame] | 107 | |
| 108 | wrappers: |
Andrew Grimberg | 4307a1c | 2017-03-16 13:00:00 -0700 | [diff] [blame] | 109 | - infra-wrappers: |
DR695H | f68e919 | 2017-02-20 17:06:47 -0500 | [diff] [blame] | 110 | build-timeout: '{build-timeout}' |
| 111 | |
| 112 | triggers: |
| 113 | # 12 AM UTC |
| 114 | - timed: 'H 12 * * *' |
| 115 | - gerrit-trigger-release-manually: |
| 116 | server: '{server-name}' |
| 117 | project: '{project}' |
| 118 | branch: '{branch}' |
| 119 | |
| 120 | builders: |
DR695H | f68e919 | 2017-02-20 17:06:47 -0500 | [diff] [blame] | 121 | - provide-maven-settings: |
| 122 | global-settings-file: 'global-settings' |
| 123 | settings-file: '{mvn-settings}' |
| 124 | |
| 125 | - docker-login |
| 126 | |
DR695H | b6c0b2f | 2017-02-23 09:38:37 -0500 | [diff] [blame] | 127 | - shell: | |
| 128 | cp $WORKSPACE/docker/* . |
DR695H | 70135c1 | 2017-02-23 15:03:02 -0500 | [diff] [blame] | 129 | docker -D build -t openecomp/testsuite . |
Jeremy Phelps | 48028ab | 2017-03-28 15:38:24 -0500 | [diff] [blame] | 130 | export REPO="nexus3.onap.org:10003" |
Jerry Flood | b7e2fe2 | 2017-03-24 14:26:37 -0400 | [diff] [blame] | 131 | docker tag openecomp/testsuite:latest $REPO/openecomp/testsuite:1.0-STAGING-latest |
Jerry Flood | 4b20239 | 2017-03-24 11:33:32 -0400 | [diff] [blame] | 132 | docker push $REPO/openecomp/testsuite:1.0-STAGING-latest |
jf9860 | f9cfaf4 | 2017-02-23 19:39:39 -0500 | [diff] [blame] | 133 | |
Andrew Grimberg | 4ecb8f2 | 2017-04-06 13:57:46 -0700 | [diff] [blame] | 134 | publishers: |
| 135 | - infra-shiplogs: |
| 136 | maven-version: '{maven-version}' |
| 137 | |
jf9860 | f9cfaf4 | 2017-02-23 19:39:39 -0500 | [diff] [blame] | 138 | - job-template: |
Jessica Wagantall | a0b80c6 | 2017-12-21 12:10:19 -0800 | [diff] [blame^] | 139 | # Job template for docker daily jobs for 2 SCMs |
| 140 | # |
| 141 | # The purpose of this job template is to run: |
| 142 | # 1. inject a version properties file |
| 143 | # 2. login into the docker registry |
| 144 | # 4. run a specified shell script |
| 145 | # |
| 146 | # Required Variables: |
| 147 | # branch: git branch (eg. stable/lithium or master) |
| 148 | |
jf9860 | f9cfaf4 | 2017-02-23 19:39:39 -0500 | [diff] [blame] | 149 | name: '{project-name}-{stream}-2scm-docker-shell-daily' |
| 150 | project-type: freestyle |
| 151 | node: 'ubuntu1604-docker-8c-8g' |
| 152 | |
| 153 | properties: |
Andrew Grimberg | 4307a1c | 2017-03-16 13:00:00 -0700 | [diff] [blame] | 154 | - infra-properties: |
jf9860 | f9cfaf4 | 2017-02-23 19:39:39 -0500 | [diff] [blame] | 155 | build-days-to-keep: '{build-days-to-keep}' |
| 156 | |
| 157 | parameters: |
Andrew Grimberg | 4307a1c | 2017-03-16 13:00:00 -0700 | [diff] [blame] | 158 | - infra-parameters: |
jf9860 | f9cfaf4 | 2017-02-23 19:39:39 -0500 | [diff] [blame] | 159 | project: '{project}' |
| 160 | branch: '{branch}' |
| 161 | refspec: 'refs/heads/{branch}' |
| 162 | artifacts: '{archive-artifacts}' |
Andrew Grimberg | dcdce33 | 2017-02-24 11:27:09 -0800 | [diff] [blame] | 163 | - maven-exec: |
Andrew Grimberg | e246588 | 2017-02-24 12:38:05 -0800 | [diff] [blame] | 164 | maven-version: '{maven-version}' |
jf9860 | f9cfaf4 | 2017-02-23 19:39:39 -0500 | [diff] [blame] | 165 | |
| 166 | scm: |
| 167 | - gerrit-trigger-scm: |
| 168 | refspec: '' |
| 169 | choosing-strategy: 'default' |
Jeremy Phelps | 11f5d41 | 2017-06-30 13:56:19 -0500 | [diff] [blame] | 170 | submodule-recursive: '{submodule-recursive}' |
jf9860 | f9cfaf4 | 2017-02-23 19:39:39 -0500 | [diff] [blame] | 171 | - git-extra-project: |
| 172 | project: '{extra-project1}' |
| 173 | refspec: '{extra-refspec1}' |
| 174 | branch: '{extra-branch1}' |
| 175 | checkout-dir: '{checkout-dir1}' |
| 176 | - git-extra-project: |
| 177 | project: '{extra-project2}' |
| 178 | refspec: '{extra-refspec2}' |
| 179 | branch: '{extra-branch2}' |
| 180 | checkout-dir: '{checkout-dir2}' |
| 181 | |
| 182 | wrappers: |
Andrew Grimberg | 4307a1c | 2017-03-16 13:00:00 -0700 | [diff] [blame] | 183 | - infra-wrappers: |
jf9860 | f9cfaf4 | 2017-02-23 19:39:39 -0500 | [diff] [blame] | 184 | build-timeout: '{build-timeout}' |
| 185 | |
| 186 | triggers: |
| 187 | # 12 AM UTC |
| 188 | - timed: 'H 12 * * *' |
| 189 | - gerrit-trigger-release-manually: |
| 190 | server: '{server-name}' |
| 191 | project: '{project}' |
| 192 | branch: '{branch}' |
| 193 | |
| 194 | builders: |
jf9860 | f9cfaf4 | 2017-02-23 19:39:39 -0500 | [diff] [blame] | 195 | - provide-maven-settings: |
| 196 | global-settings-file: 'global-settings' |
| 197 | settings-file: '{mvn-settings}' |
Jerry Flood | b6850ad | 2017-03-29 09:36:25 -0400 | [diff] [blame] | 198 | - inject: |
| 199 | properties-file: version.properties |
jf9860 | f9cfaf4 | 2017-02-23 19:39:39 -0500 | [diff] [blame] | 200 | - docker-login |
Jerry Flood | ffab4f7 | 2017-05-02 16:00:03 -0400 | [diff] [blame] | 201 | - shell: '{script}' |
Andrew Grimberg | 4ecb8f2 | 2017-04-06 13:57:46 -0700 | [diff] [blame] | 202 | publishers: |
| 203 | - infra-shiplogs: |
| 204 | maven-version: '{maven-version}' |
Jerry Flood | ffab4f7 | 2017-05-02 16:00:03 -0400 | [diff] [blame] | 205 | |
| 206 | - job-template: |
Jessica Wagantall | a0b80c6 | 2017-12-21 12:10:19 -0800 | [diff] [blame^] | 207 | # Job template for docker daily jobs for 3 SCMs |
| 208 | # |
| 209 | # The purpose of this job template is to run: |
| 210 | # 1. inject a version properties file |
| 211 | # 2. login into the docker registry |
| 212 | # 4. run a specified shell script |
| 213 | # |
| 214 | # Required Variables: |
| 215 | # branch: git branch (eg. stable/lithium or master) |
| 216 | |
Jerry Flood | ffab4f7 | 2017-05-02 16:00:03 -0400 | [diff] [blame] | 217 | name: '{project-name}-{stream}-3scm-docker-shell-daily' |
| 218 | project-type: freestyle |
| 219 | node: 'ubuntu1604-docker-8c-8g' |
| 220 | |
| 221 | properties: |
| 222 | - infra-properties: |
| 223 | build-days-to-keep: '{build-days-to-keep}' |
| 224 | |
| 225 | parameters: |
| 226 | - infra-parameters: |
| 227 | project: '{project}' |
| 228 | branch: '{branch}' |
| 229 | refspec: 'refs/heads/{branch}' |
| 230 | artifacts: '{archive-artifacts}' |
| 231 | - maven-exec: |
| 232 | maven-version: '{maven-version}' |
| 233 | |
| 234 | scm: |
| 235 | - gerrit-trigger-scm: |
| 236 | refspec: '' |
| 237 | choosing-strategy: 'default' |
Jeremy Phelps | 11f5d41 | 2017-06-30 13:56:19 -0500 | [diff] [blame] | 238 | submodule-recursive: '{submodule-recursive}' |
Jerry Flood | ffab4f7 | 2017-05-02 16:00:03 -0400 | [diff] [blame] | 239 | - git-extra-project: |
| 240 | project: '{extra-project1}' |
| 241 | refspec: '{extra-refspec1}' |
| 242 | branch: '{extra-branch1}' |
| 243 | checkout-dir: '{checkout-dir1}' |
| 244 | - git-extra-project: |
| 245 | project: '{extra-project2}' |
| 246 | refspec: '{extra-refspec2}' |
| 247 | branch: '{extra-branch2}' |
| 248 | checkout-dir: '{checkout-dir2}' |
| 249 | - git-extra-project: |
| 250 | project: '{extra-project3}' |
| 251 | refspec: '{extra-refspec3}' |
| 252 | branch: '{extra-branch3}' |
| 253 | checkout-dir: '{checkout-dir3}' |
| 254 | |
| 255 | wrappers: |
| 256 | - infra-wrappers: |
| 257 | build-timeout: '{build-timeout}' |
| 258 | |
| 259 | triggers: |
| 260 | # 12 AM UTC |
| 261 | - timed: 'H 12 * * *' |
| 262 | - gerrit-trigger-release-manually: |
| 263 | server: '{server-name}' |
| 264 | project: '{project}' |
| 265 | branch: '{branch}' |
| 266 | |
| 267 | builders: |
Jerry Flood | ffab4f7 | 2017-05-02 16:00:03 -0400 | [diff] [blame] | 268 | - provide-maven-settings: |
| 269 | global-settings-file: 'global-settings' |
| 270 | settings-file: '{mvn-settings}' |
Jerry Flood | ffab4f7 | 2017-05-02 16:00:03 -0400 | [diff] [blame] | 271 | - inject: |
| 272 | properties-file: version.properties |
Jerry Flood | ffab4f7 | 2017-05-02 16:00:03 -0400 | [diff] [blame] | 273 | - docker-login |
Jerry Flood | ffab4f7 | 2017-05-02 16:00:03 -0400 | [diff] [blame] | 274 | - shell: '{script}' |
Jerry Flood | ffab4f7 | 2017-05-02 16:00:03 -0400 | [diff] [blame] | 275 | publishers: |
| 276 | - infra-shiplogs: |
| 277 | maven-version: '{maven-version}' |