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