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: |
| 24 | - ecomp-infra-properties: |
| 25 | build-days-to-keep: '{build-days-to-keep}' |
| 26 | |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 27 | parameters: |
| 28 | - ecomp-infra-parameters: |
| 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 | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 33 | |
| 34 | scm: |
| 35 | - gerrit-trigger-scm: |
| 36 | refspec: '$GERRIT_REFSPEC' |
| 37 | choosing-strategy: 'gerrit' |
| 38 | |
| 39 | wrappers: |
| 40 | - ecomp-infra-wrappers: |
| 41 | build-timeout: '{build-timeout}' |
| 42 | |
| 43 | triggers: |
Andrew Grimberg | 94ef33d | 2017-01-31 05:16:56 -0800 | [diff] [blame] | 44 | - gerrit-trigger-patch-submitted: |
| 45 | server: '{server-name}' |
| 46 | project: '{project}' |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 47 | branch: '{branch}' |
Andrew Grimberg | 94ef33d | 2017-01-31 05:16:56 -0800 | [diff] [blame] | 48 | files: '{pattern}' |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 49 | |
| 50 | builders: |
Andrew Grimberg | d5410d1 | 2017-02-10 10:44:11 -0800 | [diff] [blame] | 51 | - provide-maven-settings: |
| 52 | global-settings-file: 'global-settings' |
| 53 | settings-file: '{mvn-settings}' |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 54 | - shell: | |
Andrew Grimberg | 673c963 | 2017-02-16 06:21:00 -0800 | [diff] [blame] | 55 | #!/bin/bash |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 56 | virtualenv $WORKSPACE/venv-tox |
| 57 | source $WORKSPACE/venv-tox/bin/activate |
| 58 | pip install --upgrade pip |
| 59 | pip install --upgrade tox argparse |
| 60 | pip freeze |
| 61 | cd $WORKSPACE/{path} |
| 62 | tox |
| 63 | |
Andrew Grimberg | 83f7ebf | 2017-01-31 04:44:44 -0800 | [diff] [blame] | 64 | # publishers: |
| 65 | # - ecomp-infra-shiplogs: |
| 66 | # maven-version: 'mvn33' |
DR695H | f68e919 | 2017-02-20 17:06:47 -0500 | [diff] [blame] | 67 | |
| 68 | - job-template: |
| 69 | name: '{project-name}-{stream}-docker-shell-daily' |
| 70 | project-type: freestyle |
| 71 | node: 'ubuntu1604-docker-8c-8g' |
| 72 | |
| 73 | properties: |
| 74 | - ecomp-infra-properties: |
| 75 | build-days-to-keep: '{build-days-to-keep}' |
| 76 | |
| 77 | parameters: |
| 78 | - ecomp-infra-parameters: |
| 79 | project: '{project}' |
| 80 | branch: '{branch}' |
| 81 | refspec: 'refs/heads/{branch}' |
| 82 | artifacts: '{archive-artifacts}' |
| 83 | |
| 84 | scm: |
| 85 | - gerrit-trigger-scm: |
| 86 | refspec: '' |
| 87 | choosing-strategy: 'default' |
| 88 | |
| 89 | wrappers: |
| 90 | - ecomp-infra-wrappers: |
| 91 | build-timeout: '{build-timeout}' |
| 92 | |
| 93 | triggers: |
| 94 | # 12 AM UTC |
| 95 | - timed: 'H 12 * * *' |
| 96 | - gerrit-trigger-release-manually: |
| 97 | server: '{server-name}' |
| 98 | project: '{project}' |
| 99 | branch: '{branch}' |
| 100 | |
| 101 | builders: |
| 102 | |
| 103 | - provide-maven-settings: |
| 104 | global-settings-file: 'global-settings' |
| 105 | settings-file: '{mvn-settings}' |
| 106 | |
| 107 | - docker-login |
| 108 | |
| 109 | - shell: !include-raw: include-docker-push.sh |