|
148 | 148 |
|
149 | 149 | gradle(
|
150 | 150 | task: 'assemble',
|
151 |
| - flavor: 'WordPressJalapeno', |
152 |
| - build_type: 'Debug', |
| 151 | + flavor: "WordPress#{INSTALLABLE_BUILD_FLAVOR}", |
| 152 | + build_type: INSTALLABLE_BUILD_TYPE, |
153 | 153 | properties: { installableBuildVersionName: generate_installable_build_number }
|
154 | 154 | )
|
155 | 155 |
|
|
170 | 170 |
|
171 | 171 | gradle(
|
172 | 172 | task: 'assemble',
|
173 |
| - flavor: 'JetpackJalapeno', |
174 |
| - build_type: 'Debug', |
| 173 | + flavor: "Jetpack#{INSTALLABLE_BUILD_FLAVOR}", |
| 174 | + build_type: INSTALLABLE_BUILD_TYPE, |
175 | 175 | properties: { installableBuildVersionName: generate_installable_build_number }
|
176 | 176 | )
|
177 | 177 |
|
@@ -259,7 +259,22 @@ def upload_installable_build(product:)
|
259 | 259 |
|
260 | 260 | install_url = "#{INSTALLABLE_BUILD_DOMAIN}/#{upload_path}"
|
261 | 261 | qr_code_url = "https://chart.googleapis.com/chart?chs=500x500&cht=qr&chl=#{CGI.escape(install_url)}&choe=UTF-8"
|
262 |
| - comment_body = "You can test the #{product} changes on this Pull Request by <a href='#{install_url}'>downloading an installable build (#{filename})</a>, or scanning this QR code:<br><a href='#{install_url}'><img src='#{qr_code_url}' width='250' height='250' /></a>" |
| 262 | + icon = "<img alt='#{product}' align='top' src='https://raw.githubusercontent.com/buildkite/emojis/main/img-buildkite-64/#{product.downcase}.png' width='20px' />" |
| 263 | + comment_body = <<~PR_COMMENT |
| 264 | + <details> |
| 265 | + <summary>#{icon}📲 You can test these changes on #{product} by <a href='#{install_url}'>downloading <tt>#{filename}</tt></a></summary> |
| 266 | + <table><tr> |
| 267 | + <td width='250' rowspan='5'><a href='#{install_url}'><img src='#{qr_code_url}' width='250' height='250' /></a></td> |
| 268 | + <td colspan='2'>💡 Scan this QR code with your Android phone to download and install the APK directly on it.</td> |
| 269 | + </tr> |
| 270 | + <tr><td width='150px'><b>App</b></td><td><tt>#{product}</tt></td></tr> |
| 271 | + <tr><td><b>Build Flavor</b></td><td><tt>#{INSTALLABLE_BUILD_FLAVOR}</tt></td></tr> |
| 272 | + <tr><td><b>Build Type</b></td><td><tt>#{INSTALLABLE_BUILD_TYPE}</tt></td></tr> |
| 273 | + <tr><td><b>Commit</b></td><td>#{ENV['BUILDKITE_COMMIT']}</td></tr> |
| 274 | + </table> |
| 275 | + </details> |
| 276 | + <em>Note: This installable build uses the <tt>#{INSTALLABLE_BUILD_FLAVOR}#{INSTALLABLE_BUILD_TYPE}</tt> build flavor, and does not support Google Login.</em> |
| 277 | + PR_COMMENT |
263 | 278 |
|
264 | 279 | comment_on_pr(
|
265 | 280 | project: GHHELPER_REPO,
|
|
0 commit comments