135135 end
136136
137137 #####################################################################################
138- # build_and_upload_installable_build
138+ # build_and_upload_wordpress_prototype_build
139139 # -----------------------------------------------------------------------------------
140- # Build a WordPress Installable Build and make it available for download
140+ # Build a WordPress Prototype Build and make it available for download
141141 # -----------------------------------------------------------------------------------
142142 # Usage:
143- # bundle exec fastlane build_and_upload_installable_build
143+ # bundle exec fastlane build_and_upload_wordpress_prototype_build
144144 #####################################################################################
145- desc 'Build an Installable Build and make it available for download'
146- lane :build_and_upload_wordpress_installable_build do
145+ desc 'Build a WordPress Prototype Build and make it available for download'
146+ lane :build_and_upload_wordpress_prototype_build do
147147 UI . user_error! ( "'BUILDKITE_ARTIFACTS_S3_BUCKET' must be defined as an environment variable." ) unless ENV [ 'BUILDKITE_ARTIFACTS_S3_BUCKET' ]
148148
149- versionName = generate_installable_build_number
149+ versionName = generate_prototype_build_number
150150 gradle (
151151 task : 'assemble' ,
152- flavor : "WordPress#{ INSTALLABLE_BUILD_FLAVOR } " ,
153- build_type : INSTALLABLE_BUILD_TYPE ,
154- properties : { installableBuildVersionName : versionName }
152+ flavor : "WordPress#{ PROTOTYPE_BUILD_FLAVOR } " ,
153+ build_type : PROTOTYPE_BUILD_TYPE ,
154+ properties : { prototypeBuildVersionName : versionName }
155155 )
156156
157- upload_installable_build ( product : 'WordPress' , versionName : versionName )
157+ upload_prototype_build ( product : 'WordPress' , versionName : versionName )
158158 end
159159
160160 #####################################################################################
161- # build_and_upload_jetpack_installable_build
161+ # build_and_upload_jetpack_prototype_build
162162 # -----------------------------------------------------------------------------------
163- # Build a Jetpack Installable Build and make it available for download
163+ # Build a Jetpack Prototype Build and make it available for download
164164 # -----------------------------------------------------------------------------------
165165 # Usage:
166- # bundle exec fastlane build_and_upload_installable_build
166+ # bundle exec fastlane build_and_upload_jetpack_prototype_build
167167 #####################################################################################
168- desc 'Build an Installable Build and make it available for download'
169- lane :build_and_upload_jetpack_installable_build do
168+ desc 'Build a Jetpack Prototype Build and make it available for download'
169+ lane :build_and_upload_jetpack_prototype_build do
170170 UI . user_error! ( "'BUILDKITE_ARTIFACTS_S3_BUCKET' must be defined as an environment variable." ) unless ENV [ 'BUILDKITE_ARTIFACTS_S3_BUCKET' ]
171171
172- versionName = generate_installable_build_number
172+ versionName = generate_prototype_build_number
173173 gradle (
174174 task : 'assemble' ,
175- flavor : "Jetpack#{ INSTALLABLE_BUILD_FLAVOR } " ,
176- build_type : INSTALLABLE_BUILD_TYPE ,
177- properties : { installableBuildVersionName : versionName }
175+ flavor : "Jetpack#{ PROTOTYPE_BUILD_FLAVOR } " ,
176+ build_type : PROTOTYPE_BUILD_TYPE ,
177+ properties : { prototypeBuildVersionName : versionName }
178178 )
179179
180- upload_installable_build ( product : 'Jetpack' , versionName : versionName )
180+ upload_prototype_build ( product : 'Jetpack' , versionName : versionName )
181181 end
182182
183183 #####################################################################################
248248 #
249249 # @param [String] product the display name of the app to upload to S3. 'WordPress' or 'Jetpack'
250250 #
251- def upload_installable_build ( product :, versionName :)
252- filename = "#{ product . downcase } -installable -build-#{ generate_installable_build_number } .apk"
251+ def upload_prototype_build ( product :, versionName :)
252+ filename = "#{ product . downcase } -prototype -build-#{ versionName } .apk"
253253
254254 upload_path = upload_to_s3 (
255255 bucket : 'a8c-apps-public-artifacts' ,
@@ -260,32 +260,32 @@ def upload_installable_build(product:, versionName:)
260260
261261 return if ENV [ 'BUILDKITE_PULL_REQUEST' ] . nil?
262262
263- install_url = "#{ INSTALLABLE_BUILD_DOMAIN } /#{ upload_path } "
263+ install_url = "#{ PROTOTYPE_BUILD_DOMAIN } /#{ upload_path } "
264264 comment_body = prototype_build_details_comment (
265265 app_display_name : product ,
266266 app_icon : ":#{ product . downcase } :" , # Use Buildkite emoji based on product name
267267 download_url : install_url ,
268- metadata : { Flavor : INSTALLABLE_BUILD_FLAVOR , 'Build Type' : INSTALLABLE_BUILD_TYPE } ,
268+ metadata : { Flavor : PROTOTYPE_BUILD_FLAVOR , 'Build Type' : PROTOTYPEE_BUILD_TYPE } ,
269269 footnote : '<em>Note: Google Login is not supported on these builds.</em>' ,
270270 fold : true
271271 )
272272
273273 comment_on_pr (
274274 project : GHHELPER_REPO ,
275275 pr_number : Integer ( ENV [ 'BUILDKITE_PULL_REQUEST' ] ) ,
276- reuse_identifier : "#{ product . downcase } -installable -build-link" ,
276+ reuse_identifier : "#{ product . downcase } -prototype -build-link" ,
277277 body : comment_body
278278 )
279279
280280 if ENV [ 'BUILDKITE' ]
281- message = "#{ product } Installable Build: [#{ filename } ](#{ install_url } )"
282- buildkite_annotate ( style : 'info' , context : "installable -build-#{ product } " , message : message )
283- buildkite_metadata ( set : { versionName : versionName , 'build:flavor' : INSTALLABLE_BUILD_FLAVOR , 'build:type' : INSTALLABLE_BUILD_TYPE } )
281+ message = "#{ product } Prototype Build: [#{ filename } ](#{ install_url } )"
282+ buildkite_annotate ( style : 'info' , context : "prototype -build-#{ product } " , message : message )
283+ buildkite_metadata ( set : { versionName : versionName , 'build:flavor' : PROTOTYPE_BUILD_FLAVOR , 'build:type' : PROTOTYPE_BUILD_TYPE } )
284284 end
285285 end
286286
287287 # This function is Buildkite-specific
288- def generate_installable_build_number
288+ def generate_prototype_build_number
289289 if ENV [ 'BUILDKITE' ]
290290 commit = ENV [ 'BUILDKITE_COMMIT' ] [ 0 , 7 ]
291291 branch = ENV [ 'BUILDKITE_BRANCH' ] . parameterize
0 commit comments