Vanessa Rene Valderrama | 295975d | 2018-02-27 15:10:17 -0800 | [diff] [blame] | 1 | --- |
| 2 | # Job definition Anchors |
| 3 | - pypi_job_boiler_plate: &pypi_job_boiler_plate |
| 4 | name: pypi_job_boiler_plate |
| 5 | |
| 6 | ##################### |
| 7 | # Job Variables # |
| 8 | ##################### |
| 9 | |
| 10 | gerrit_merge_triggers: |
| 11 | - change-merged-event |
| 12 | - comment-added-contains-event: |
| 13 | comment-contains-value: pypi-remerge$ |
| 14 | |
| 15 | gerrit_release_trigger: |
| 16 | - comment-added-contains-event: |
| 17 | comment-contains-value: pypi-release$ |
| 18 | |
| 19 | gerrit_trigger_file_paths: |
| 20 | - compare-type: ANT |
| 21 | pattern: '**' |
| 22 | |
Jessica Wagantall | 11a31f0 | 2019-05-13 12:28:14 -0700 | [diff] [blame] | 23 | submodule-disable: false |
Jessica Wagantall | 7d10bdf | 2018-10-29 11:17:16 -0700 | [diff] [blame] | 24 | submodule-timeout: 10 |
| 25 | |
Vanessa Rene Valderrama | 295975d | 2018-02-27 15:10:17 -0800 | [diff] [blame] | 26 | ##################### |
| 27 | # Job Configuration # |
| 28 | ##################### |
| 29 | |
| 30 | project-type: freestyle |
| 31 | node: '{build-node}' |
| 32 | |
| 33 | parameters: |
| 34 | - lf-infra-parameters: |
| 35 | project: '{project}' |
| 36 | branch: '{branch}' |
| 37 | stream: '{stream}' |
| 38 | lftools-version: '{lftools-version}' |
| 39 | - lf-infra-tox-parameters: |
| 40 | tox-dir: '{tox-dir}' |
| 41 | tox-envs: '{tox-envs}' |
| 42 | |
| 43 | |
| 44 | properties: |
| 45 | - lf-infra-properties: |
| 46 | build-days-to-keep: '{build-days-to-keep}' |
| 47 | |
| 48 | scm: |
| 49 | - lf-infra-gerrit-scm: |
| 50 | jenkins-ssh-credential: '{jenkins-ssh-credential}' |
| 51 | git-url: '$GIT_URL/$PROJECT' |
| 52 | refspec: '$GERRIT_REFSPEC' |
| 53 | branch: '$GERRIT_BRANCH' |
| 54 | submodule-recursive: true |
Jessica Wagantall | 7d10bdf | 2018-10-29 11:17:16 -0700 | [diff] [blame] | 55 | submodule-timeout: '{submodule-timeout}' |
Jessica Wagantall | 11a31f0 | 2019-05-13 12:28:14 -0700 | [diff] [blame] | 56 | submodule-disable: '{submodule-disable}' |
Vanessa Rene Valderrama | 295975d | 2018-02-27 15:10:17 -0800 | [diff] [blame] | 57 | choosing-strategy: default |
| 58 | |
| 59 | wrappers: |
| 60 | - lf-infra-wrappers: |
| 61 | build-timeout: '{build-timeout}' |
| 62 | jenkins-ssh-credential: '{jenkins-ssh-credential}' |
| 63 | |
| 64 | publishers: |
| 65 | - lf-infra-publish |
| 66 | |
| 67 | - job-template: |
| 68 | name: '{project-name}-python-staging-{stream}' |
| 69 | |
| 70 | # Job template for PyPI staging jobs |
| 71 | # Daily Builds |
| 72 | |
| 73 | <<: *pypi_job_boiler_plate |
| 74 | |
| 75 | triggers: |
| 76 | - gerrit: |
| 77 | server-name: '{gerrit-server-name}' |
| 78 | trigger-on: '{obj:gerrit_merge_triggers}' |
| 79 | projects: |
| 80 | - project-compare-type: ANT |
| 81 | project-pattern: '{project}' |
| 82 | branches: |
| 83 | - branch-compare-type: ANT |
| 84 | branch-pattern: '**/{branch}' |
| 85 | file-paths: '{obj:gerrit_trigger_file_paths}' |
| 86 | |
| 87 | builders: |
| 88 | - lf-infra-tox-install: |
| 89 | python-version: '{python-version}' |
| 90 | - shell: !include-raw-escape: ../global-jjb/shell/tox-run.sh |
| 91 | - config-file-provider: |
| 92 | files: |
| 93 | - file-id: pypirc |
| 94 | target: '$HOME/.pypirc' |
| 95 | - shell: |
Thanh Ha | 0f343ee | 2018-04-14 14:22:42 -0400 | [diff] [blame] | 96 | !include-raw-escape: ../../shell/pypi-dist-build.sh |
Vanessa Rene Valderrama | 295975d | 2018-02-27 15:10:17 -0800 | [diff] [blame] | 97 | |
| 98 | - publish-pypi: |
| 99 | pypi-server: staging |
| 100 | |
| 101 | - job-template: |
| 102 | name: '{project-name}-python-release-{stream}' |
| 103 | |
| 104 | # Job template for PyPI release jobs |
| 105 | |
| 106 | <<: *pypi_job_boiler_plate |
| 107 | |
| 108 | triggers: |
| 109 | - gerrit: |
| 110 | server-name: '{gerrit-server-name}' |
| 111 | trigger-on: '{obj:gerrit_release_trigger}' |
| 112 | projects: |
| 113 | - project-compare-type: ANT |
| 114 | project-pattern: '{project}' |
| 115 | branches: |
| 116 | - branch-compare-type: ANT |
| 117 | branch-pattern: '**/{branch}' |
| 118 | file-paths: '{obj:gerrit_trigger_file_paths}' |
| 119 | |
| 120 | builders: |
| 121 | - lf-infra-tox-install: |
| 122 | python-version: '{python-version}' |
| 123 | - shell: !include-raw-escape: ../global-jjb/shell/tox-run.sh |
| 124 | - config-file-provider: |
| 125 | files: |
| 126 | - file-id: pypirc |
| 127 | target: '$HOME/.pypirc' |
| 128 | - shell: |
Thanh Ha | 0f343ee | 2018-04-14 14:22:42 -0400 | [diff] [blame] | 129 | !include-raw-escape: ../../shell/pypi-dist-build.sh |
Vanessa Rene Valderrama | 295975d | 2018-02-27 15:10:17 -0800 | [diff] [blame] | 130 | |
| 131 | - publish-pypi: |
| 132 | pypi-server: release |
| 133 | |
| 134 | - job-template: |
| 135 | name: '{project-name}-{subproject}-python-staging-{stream}' |
| 136 | |
| 137 | # Job template for PyPI staging jobs |
| 138 | # Daily Builds |
| 139 | |
| 140 | <<: *pypi_job_boiler_plate |
| 141 | |
| 142 | triggers: |
| 143 | - gerrit: |
| 144 | server-name: '{gerrit-server-name}' |
| 145 | trigger-on: '{obj:gerrit_merge_triggers}' |
| 146 | projects: |
| 147 | - project-compare-type: ANT |
| 148 | project-pattern: '{project}' |
| 149 | branches: |
| 150 | - branch-compare-type: ANT |
| 151 | branch-pattern: '**/{branch}' |
| 152 | file-paths: '{obj:gerrit_trigger_file_paths}' |
| 153 | |
| 154 | builders: |
| 155 | - lf-infra-tox-install: |
| 156 | python-version: '{python-version}' |
| 157 | - shell: !include-raw-escape: ../global-jjb/shell/tox-run.sh |
| 158 | - config-file-provider: |
| 159 | files: |
| 160 | - file-id: pypirc |
| 161 | target: '$HOME/.pypirc' |
| 162 | - shell: |
Thanh Ha | 0f343ee | 2018-04-14 14:22:42 -0400 | [diff] [blame] | 163 | !include-raw-escape: ../../shell/pypi-dist-build.sh |
Vanessa Rene Valderrama | 295975d | 2018-02-27 15:10:17 -0800 | [diff] [blame] | 164 | |
| 165 | - publish-pypi: |
| 166 | pypi-server: staging |
| 167 | |
| 168 | - job-template: |
| 169 | name: '{project-name}-{subproject}-python-release-{stream}' |
| 170 | |
| 171 | # Job template for PyPI release jobs |
| 172 | |
| 173 | <<: *pypi_job_boiler_plate |
| 174 | |
| 175 | triggers: |
| 176 | - gerrit: |
| 177 | server-name: '{gerrit-server-name}' |
| 178 | trigger-on: '{obj:gerrit_release_trigger}' |
| 179 | projects: |
| 180 | - project-compare-type: ANT |
| 181 | project-pattern: '{project}' |
| 182 | branches: |
| 183 | - branch-compare-type: ANT |
| 184 | branch-pattern: '**/{branch}' |
| 185 | file-paths: '{obj:gerrit_trigger_file_paths}' |
| 186 | |
| 187 | builders: |
| 188 | - lf-infra-tox-install: |
| 189 | python-version: '{python-version}' |
| 190 | - shell: !include-raw-escape: ../global-jjb/shell/tox-run.sh |
| 191 | - config-file-provider: |
| 192 | files: |
| 193 | - file-id: pypirc |
| 194 | target: '$HOME/.pypirc' |
| 195 | - shell: |
Thanh Ha | 0f343ee | 2018-04-14 14:22:42 -0400 | [diff] [blame] | 196 | !include-raw-escape: ../../shell/pypi-dist-build.sh |
Vanessa Rene Valderrama | 295975d | 2018-02-27 15:10:17 -0800 | [diff] [blame] | 197 | |
| 198 | - publish-pypi: |
| 199 | pypi-server: release |