blob: 557673db684dd136073007416d2ffd7cedf46b12 [file] [log] [blame]
Vanessa Rene Valderrama295975d2018-02-27 15:10:17 -08001---
2# Job definition Anchors
Anil Belur7b3203a2023-04-14 21:54:49 +10003- _pypi_job_boiler_plate: &pypi_job_boiler_plate
Andrew Grimberg86af1062023-05-03 09:47:36 -07004 name: pypi_job_boiler_plate
Vanessa Rene Valderrama295975d2018-02-27 15:10:17 -08005
Andrew Grimberg86af1062023-05-03 09:47:36 -07006 #####################
7 # Job Variables #
8 #####################
Vanessa Rene Valderrama295975d2018-02-27 15:10:17 -08009
Andrew Grimberg86af1062023-05-03 09:47:36 -070010 gerrit_merge_triggers:
11 - change-merged-event
12 - comment-added-contains-event:
13 comment-contains-value: pypi-remerge$
Vanessa Rene Valderrama295975d2018-02-27 15:10:17 -080014
Andrew Grimberg86af1062023-05-03 09:47:36 -070015 gerrit_release_trigger:
16 - comment-added-contains-event:
17 comment-contains-value: pypi-release$
Vanessa Rene Valderrama295975d2018-02-27 15:10:17 -080018
Andrew Grimberg86af1062023-05-03 09:47:36 -070019 gerrit_trigger_file_paths:
20 - compare-type: ANT
21 pattern: "**"
Vanessa Rene Valderrama295975d2018-02-27 15:10:17 -080022
Andrew Grimberg86af1062023-05-03 09:47:36 -070023 submodule-disable: false
24 submodule-timeout: 10
Jessica Wagantall7d10bdf2018-10-29 11:17:16 -070025
Andrew Grimberg86af1062023-05-03 09:47:36 -070026 #####################
27 # Job Configuration #
28 #####################
Vanessa Rene Valderrama295975d2018-02-27 15:10:17 -080029
Andrew Grimberg86af1062023-05-03 09:47:36 -070030 project-type: freestyle
31 node: "{build-node}"
Vanessa Rene Valderrama295975d2018-02-27 15:10:17 -080032
Andrew Grimberg86af1062023-05-03 09:47:36 -070033 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 Valderrama295975d2018-02-27 15:10:17 -080042
Andrew Grimberg86af1062023-05-03 09:47:36 -070043 properties:
44 - lf-infra-properties:
45 build-days-to-keep: "{build-days-to-keep}"
Vanessa Rene Valderrama295975d2018-02-27 15:10:17 -080046
Andrew Grimberg86af1062023-05-03 09:47:36 -070047 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 Valderrama295975d2018-02-27 15:10:17 -080057
Andrew Grimberg86af1062023-05-03 09:47:36 -070058 wrappers:
59 - lf-infra-wrappers:
60 build-timeout: "{build-timeout}"
61 jenkins-ssh-credential: "{jenkins-ssh-credential}"
Vanessa Rene Valderrama295975d2018-02-27 15:10:17 -080062
Andrew Grimberg86af1062023-05-03 09:47:36 -070063 publishers:
64 - lf-infra-publish
Vanessa Rene Valderrama295975d2018-02-27 15:10:17 -080065
66- job-template:
Andrew Grimberg86af1062023-05-03 09:47:36 -070067 name: "{project-name}-python-staging-{stream}"
Vanessa Rene Valderrama295975d2018-02-27 15:10:17 -080068
Andrew Grimberg86af1062023-05-03 09:47:36 -070069 # Job template for PyPI staging jobs
70 # Daily Builds
Vanessa Rene Valderrama295975d2018-02-27 15:10:17 -080071
Andrew Grimberg86af1062023-05-03 09:47:36 -070072 <<: *pypi_job_boiler_plate
Vanessa Rene Valderrama295975d2018-02-27 15:10:17 -080073
Andrew Grimberg86af1062023-05-03 09:47:36 -070074 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 Valderrama295975d2018-02-27 15:10:17 -080085
Andrew Grimberg86af1062023-05-03 09:47:36 -070086 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 Valderrama295975d2018-02-27 15:10:17 -080095
Andrew Grimberg86af1062023-05-03 09:47:36 -070096 - publish-pypi:
97 pypi-server: staging
Vanessa Rene Valderrama295975d2018-02-27 15:10:17 -080098
99- job-template:
Andrew Grimberg86af1062023-05-03 09:47:36 -0700100 name: "{project-name}-python-release-{stream}"
Vanessa Rene Valderrama295975d2018-02-27 15:10:17 -0800101
Andrew Grimberg86af1062023-05-03 09:47:36 -0700102 # Job template for PyPI release jobs
Vanessa Rene Valderrama295975d2018-02-27 15:10:17 -0800103
Andrew Grimberg86af1062023-05-03 09:47:36 -0700104 <<: *pypi_job_boiler_plate
Vanessa Rene Valderrama295975d2018-02-27 15:10:17 -0800105
Andrew Grimberg86af1062023-05-03 09:47:36 -0700106 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 Valderrama295975d2018-02-27 15:10:17 -0800117
Andrew Grimberg86af1062023-05-03 09:47:36 -0700118 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 Valderrama295975d2018-02-27 15:10:17 -0800127
Andrew Grimberg86af1062023-05-03 09:47:36 -0700128 - publish-pypi:
129 pypi-server: release
Vanessa Rene Valderrama295975d2018-02-27 15:10:17 -0800130
131- job-template:
Andrew Grimberg86af1062023-05-03 09:47:36 -0700132 name: "{project-name}-{subproject}-python-staging-{stream}"
Vanessa Rene Valderrama295975d2018-02-27 15:10:17 -0800133
Andrew Grimberg86af1062023-05-03 09:47:36 -0700134 # Job template for PyPI staging jobs
135 # Daily Builds
Vanessa Rene Valderrama295975d2018-02-27 15:10:17 -0800136
Andrew Grimberg86af1062023-05-03 09:47:36 -0700137 <<: *pypi_job_boiler_plate
Vanessa Rene Valderrama295975d2018-02-27 15:10:17 -0800138
Andrew Grimberg86af1062023-05-03 09:47:36 -0700139 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 Valderrama295975d2018-02-27 15:10:17 -0800150
Andrew Grimberg86af1062023-05-03 09:47:36 -0700151 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 Valderrama295975d2018-02-27 15:10:17 -0800160
Andrew Grimberg86af1062023-05-03 09:47:36 -0700161 - publish-pypi:
162 pypi-server: staging
Vanessa Rene Valderrama295975d2018-02-27 15:10:17 -0800163
164- job-template:
Andrew Grimberg86af1062023-05-03 09:47:36 -0700165 name: "{project-name}-{subproject}-python-release-{stream}"
Vanessa Rene Valderrama295975d2018-02-27 15:10:17 -0800166
Andrew Grimberg86af1062023-05-03 09:47:36 -0700167 # Job template for PyPI release jobs
Vanessa Rene Valderrama295975d2018-02-27 15:10:17 -0800168
Andrew Grimberg86af1062023-05-03 09:47:36 -0700169 <<: *pypi_job_boiler_plate
Vanessa Rene Valderrama295975d2018-02-27 15:10:17 -0800170
Andrew Grimberg86af1062023-05-03 09:47:36 -0700171 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 Valderrama295975d2018-02-27 15:10:17 -0800182
Andrew Grimberg86af1062023-05-03 09:47:36 -0700183 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 Valderrama295975d2018-02-27 15:10:17 -0800192
Andrew Grimberg86af1062023-05-03 09:47:36 -0700193 - publish-pypi:
194 pypi-server: release