pilot/lib/pilot/build_manager.rb in fastlane-2.65.0.beta.20171113010004 vs pilot/lib/pilot/build_manager.rb in fastlane-2.65.0.beta.20171114010003
- old
+ new
@@ -33,10 +33,16 @@
UI.important("This means that no changelog will be set and no build will be distributed to testers")
return
end
UI.message("If you want to skip waiting for the processing to be finished, use the `skip_waiting_for_build_processing` option")
- latest_build = FastlaneCore::BuildWatcher.wait_for_build_processing_to_be_complete(app_id: app.apple_id, platform: platform, poll_interval: config[:wait_processing_interval])
+ app_version = FastlaneCore::IpaFileAnalyser.fetch_app_version(config[:ipa])
+ app_build = FastlaneCore::IpaFileAnalyser.fetch_app_build(config[:ipa])
+ latest_build = FastlaneCore::BuildWatcher.wait_for_build_processing_to_be_complete(app_id: app.apple_id, platform: platform, train_version: app_version, build_version: app_build, poll_interval: config[:wait_processing_interval], strict_build_watch: config[:wait_for_uploaded_build])
+
+ unless latest_build.train_version == app_version && latest_build.build_version == app_build
+ UI.important("Uploaded app #{app_version} - #{app_build}, but received build #{latest_build.train_version} - #{latest_build.build_version}. If you want to wait for uploaded build to be finished processing, use the `wait_for_uploaded_build` option")
+ end
distribute(options, build: latest_build)
end
def distribute(options, build: nil)