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: |
Jessica Wagantall | 05ae7da | 2018-10-22 17:32:33 -0700 | [diff] [blame^] | 56 | - lf-infra-pre-build |
Andrew Grimberg | d5410d1 | 2017-02-10 10:44:11 -0800 | [diff] [blame] | 57 | - provide-maven-settings: |
| 58 | global-settings-file: 'global-settings' |
| 59 | settings-file: '{mvn-settings}' |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 60 | - shell: | |
Andrew Grimberg | 673c963 | 2017-02-16 06:21:00 -0800 | [diff] [blame] | 61 | #!/bin/bash |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 62 | virtualenv $WORKSPACE/venv-tox |
| 63 | source $WORKSPACE/venv-tox/bin/activate |
| 64 | pip install --upgrade pip |
| 65 | pip install --upgrade tox argparse |
| 66 | pip freeze |
| 67 | cd $WORKSPACE/{path} |
| 68 | tox |
| 69 | |
Andrew Grimberg | 4ecb8f2 | 2017-04-06 13:57:46 -0700 | [diff] [blame] | 70 | publishers: |
| 71 | - infra-shiplogs: |
| 72 | maven-version: '{maven-version}' |
DR695H | f68e919 | 2017-02-20 17:06:47 -0500 | [diff] [blame] | 73 | |
Jerry Flood | ffab4f7 | 2017-05-02 16:00:03 -0400 | [diff] [blame] | 74 | |
| 75 | - job-template: |
Jessica Wagantall | a0b80c6 | 2017-12-21 12:10:19 -0800 | [diff] [blame] | 76 | # Job template for docker daily jobs for 3 SCMs |
| 77 | # |
| 78 | # The purpose of this job template is to run: |
| 79 | # 1. inject a version properties file |
| 80 | # 2. login into the docker registry |
| 81 | # 4. run a specified shell script |
| 82 | # |
| 83 | # Required Variables: |
| 84 | # branch: git branch (eg. stable/lithium or master) |
| 85 | |
Jerry Flood | ffab4f7 | 2017-05-02 16:00:03 -0400 | [diff] [blame] | 86 | name: '{project-name}-{stream}-3scm-docker-shell-daily' |
| 87 | project-type: freestyle |
gwu | d0b160d | 2018-07-17 09:46:52 -0700 | [diff] [blame] | 88 | node: 'queue-docker-4c-4g' |
Jerry Flood | ffab4f7 | 2017-05-02 16:00:03 -0400 | [diff] [blame] | 89 | |
| 90 | properties: |
| 91 | - infra-properties: |
| 92 | build-days-to-keep: '{build-days-to-keep}' |
| 93 | |
| 94 | parameters: |
| 95 | - infra-parameters: |
| 96 | project: '{project}' |
| 97 | branch: '{branch}' |
| 98 | refspec: 'refs/heads/{branch}' |
| 99 | artifacts: '{archive-artifacts}' |
| 100 | - maven-exec: |
| 101 | maven-version: '{maven-version}' |
| 102 | |
| 103 | scm: |
| 104 | - gerrit-trigger-scm: |
| 105 | refspec: '' |
| 106 | choosing-strategy: 'default' |
Jeremy Phelps | 11f5d41 | 2017-06-30 13:56:19 -0500 | [diff] [blame] | 107 | submodule-recursive: '{submodule-recursive}' |
Jerry Flood | ffab4f7 | 2017-05-02 16:00:03 -0400 | [diff] [blame] | 108 | - git-extra-project: |
| 109 | project: '{extra-project1}' |
| 110 | refspec: '{extra-refspec1}' |
| 111 | branch: '{extra-branch1}' |
| 112 | checkout-dir: '{checkout-dir1}' |
| 113 | - git-extra-project: |
| 114 | project: '{extra-project2}' |
| 115 | refspec: '{extra-refspec2}' |
| 116 | branch: '{extra-branch2}' |
| 117 | checkout-dir: '{checkout-dir2}' |
| 118 | - git-extra-project: |
| 119 | project: '{extra-project3}' |
| 120 | refspec: '{extra-refspec3}' |
| 121 | branch: '{extra-branch3}' |
| 122 | checkout-dir: '{checkout-dir3}' |
| 123 | |
| 124 | wrappers: |
gwu | adeda5a | 2018-07-17 14:12:09 -0700 | [diff] [blame] | 125 | - infra-wrappers-docker-build: |
| 126 | build-timeout: '{build-timeout}' |
Jerry Flood | ffab4f7 | 2017-05-02 16:00:03 -0400 | [diff] [blame] | 127 | |
| 128 | triggers: |
Gary Wu | 6b702fe | 2018-07-18 10:32:17 -0700 | [diff] [blame] | 129 | - timed: 'H */4 * * *' |
Jerry Flood | ffab4f7 | 2017-05-02 16:00:03 -0400 | [diff] [blame] | 130 | - gerrit-trigger-release-manually: |
| 131 | server: '{server-name}' |
| 132 | project: '{project}' |
| 133 | branch: '{branch}' |
Gary Wu | 601a2ff | 2018-07-30 17:50:12 -0700 | [diff] [blame] | 134 | - gerrit-trigger-patch-merged: |
| 135 | server: '{server-name}' |
| 136 | project: '{project}' |
| 137 | branch: '{branch}' |
| 138 | files: '**' |
Jerry Flood | ffab4f7 | 2017-05-02 16:00:03 -0400 | [diff] [blame] | 139 | |
| 140 | builders: |
Jessica Wagantall | 05ae7da | 2018-10-22 17:32:33 -0700 | [diff] [blame^] | 141 | - lf-infra-pre-build |
Jerry Flood | ffab4f7 | 2017-05-02 16:00:03 -0400 | [diff] [blame] | 142 | - provide-maven-settings: |
| 143 | global-settings-file: 'global-settings' |
| 144 | settings-file: '{mvn-settings}' |
Jerry Flood | ffab4f7 | 2017-05-02 16:00:03 -0400 | [diff] [blame] | 145 | - inject: |
| 146 | properties-file: version.properties |
Jerry Flood | ffab4f7 | 2017-05-02 16:00:03 -0400 | [diff] [blame] | 147 | - docker-login |
Jerry Flood | ffab4f7 | 2017-05-02 16:00:03 -0400 | [diff] [blame] | 148 | - shell: '{script}' |
Jerry Flood | ffab4f7 | 2017-05-02 16:00:03 -0400 | [diff] [blame] | 149 | publishers: |
| 150 | - infra-shiplogs: |
| 151 | maven-version: '{maven-version}' |