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