You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My task is to automate uploading aab to internal and alpha tracks in Google Play. The first one goes smoothly, the next one errors on version already used.
But we don't have this issue when uploading manually. What's up?
🚫 fastlane environment 🚫
Stack
Key
Value
OS
14.4.1
Ruby
2.7.4
Bundler?
false
Git
git version 2.39.3 (Apple Git-146)
Installation Source
~/.rbenv/versions/2.7.4/bin/fastlane
Host
macOS 14.4.1 (23E224)
Ruby Lib Dir
~/.rbenv/versions/2.7.4/lib
OpenSSL Version
OpenSSL 1.1.1w 11 Sep 2023
Is contained
false
Is homebrew
false
Is installed via Fabric.app
false
Xcode Path
/Applications/Xcode.app/Contents/Developer/
Xcode Version
15.3
Swift Version
5.10
System Locale
Error
No Locale with UTF8 found 🚫
fastlane files:
`./Fastfile`
opt_out_usage# upload_symbols_to_crashlytics(app_id: "1:1098558356227:android:ea102557be001b6f168736",# binary_path: options[:symbolsLink],# dsym_path: options[:symbolsLink],# debug: "true")lane:upload_testFlightdo |options|
app_store_connect_api_key(key_id: "HYNWRDSK54",issuer_id: "799d7aa8-b433-4af4-ad03-c85a91139e60",# key: "-----BEGIN PRIVATE KEY-----\nMIGTAgEAMBMGByqGSM49AgEGCCqGSM49AwEHBHkwdwIBAQQga0Nt+eHZpO/aZNJD\n9zgx0HJ8EHeYw23v4Gnt2QK3drugCgYIKoZIzj0DAQehRANCAAQC7m/CNcihkhzM\nVmt1WaBjJ/6/7JuWr/I2K4t0YV6DQAzSGSVTCGSSI1sPyFmYX1+soDqYDOOtnNb4\nZQyfNnCL\n-----END PRIVATE KEY-----",key_filepath: "./fastlane/AuthKey_HYNWRDSK54.p8",duration: 1200,# optional (maximum 1200)# in_house: false # optional but may be required if using match/sigh)# Automatically loads Actions.lane_context[SharedValues::APP_STORE_CONNECT_API_KEY]pilot(api_key: lane_context[SharedValues::APP_STORE_CONNECT_API_KEY],app_version: "1."+options[:number],build_number: options[:number]+".1",changelog: options[:changes],uses_non_exempt_encryption: true,testers_file_path: "./fastlane/testers.csv",beta_app_description: "Product Recognition App for Retail",beta_app_feedback_email: "eran@arpalus.com",ipa: "/opt/workspace/workspace/arpalusdev.productrecognition.ios-provisioned-app/.build/last/ios-provisioned-app/com.productrecognition.arpalus.ipa") --verbose# ipa: ".Build/Compliance/TestFlight/com.productrecognition.arpalus.ipa") --verboseendlane:firebasedo |options|
echo(message: "<<<<Sending to Firebase; Version Number: " + options[:number] + ">>>>")firebase_app_distribution(app: "1:1098558356227:android:ea102557be001b6f168736",service_credentials_file: "./fastlane/shelfauditdec19-firebase-adminsdk-3e8ba-b143c450f7.json",android_artifact_type: "APK",apk_path: ".build/last/planogram-compliance-apk/com.arpalus.planogramcompliance.apk",release_notes: options[:changes],# debug: "true",groups: "Dev")endlane:play_storedo |options|
echo(message: "<<<<Validating Key>>>>")validate_play_store_json_key(json_key: './fastlane/shelfauditdec19-19a799e28f82.json')echo(message: "<<<<Sending to Play Store>>>>")supply(package_name: 'com.arpalus.planogramcompliance',version_code: options[:number],track: 'internal',aab: '.build/last/planogram-compliance-aab/com.arpalus.planogramcompliance.aab',# validate_only: true,release_status: 'draft',skip_upload_metadata: true,skip_upload_images: true,skip_upload_apk: true,skip_upload_screenshots: true)supply(package_name: 'com.arpalus.planogramcompliance',version_code: options[:number],track: 'alpha',aab: '.build/last/planogram-compliance-aab/com.arpalus.planogramcompliance.aab',# validate_only: true,release_status: 'draft',skip_upload_metadata: true,skip_upload_images: true,skip_upload_apk: true,skip_upload_screenshots: true)endlane:send_slackdo |options|
echo(message: "Sending Slack")slack(message: options[:target] + " for " + options[:platform] + " v" + options[:number] + " Built.",# pretext: "Pretext Test.",# channel: "#unity_cloud_build", # Optional, by default will post to the default channel configured for the POST URL.slack_url: "https://hooks.slack.com/services/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",# username: "UCB",# success: true, # Optional, defaults to true.# Optional, lets you specify any number of your own Slack attachments.payload: {"Build Date"=>Time.new.getlocal.to_s},# "Built by" => "Jenkins",# Optional, lets you specify default payloads to include. Pass an empty array to suppress all the default payloads.default_payloads: ["test_result","last_git_commit"],# Optional, lets you specify any other properties available for attachments in the slack API (see https://api.slack.com/docs/attachments).attachment_properties: {# This hash is deep merged with the existing properties set using the other properties above.# This allows your own fields properties to be appended to the existing fields that were created using the `payload` property for instance.thumb_url: "https://a.slack-edge.com/80588/img/apps/default_new_app_icon.png",fields: [{title: options[:link_title],value: options[:link],short: false}]},)endlane:upload_file_adminTool_macdo |options|
zip(path: ".build/last/admintoolmac",output_path: "./AdminToolMac.zip",verbose: true,exclude: ["**/*DoNotShip","build_stats*","**/*extra_data","temp*"])#upload_to_google_drive(# drive_keyfile: './fastlane/shelfauditdec19-66d192fb9623.json',# service_account: true,# folder_id: '1t1X61izyi0fAy7jTfYxKDHJrJNueJ3Ui',# upload_files: [ './Build/AdminTool/AdminTool_Mac.zip' ]#)update_google_drive_file(drive_keyfile: './fastlane/shelfauditdec19-66d192fb9623.json',file_id: '1jqfTYihUZjTWsy8ME35yzTTcaG06j3wb',upload_file: './AdminToolMac.zip')slack(message: "Admin Tool for Mac v" + options[:version] + " Built.",# pretext: "Pretext Test.",# channel: "#unity_cloud_build", # Optional, by default will post to the default channel configured for the POST URL.slack_url: "https://hooks.slack.com/services/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",# username: "UCB",# success: true, # Optional, defaults to true.payload: {# Optional, lets you specify any number of your own Slack attachments."Build Date"=>Time.new.to_s,# "Built by" => "Jenkins",},# Optional, lets you specify default payloads to include. Pass an empty array to suppress all the default payloads.# default_payloads: [:git_branch, :git_author],# Optional, lets you specify any other properties available for attachments in the slack API (see https://api.slack.com/docs/attachments).attachment_properties: {# This hash is deep merged with the existing properties set using the other properties above.# This allows your own fields properties to be appended to the existing fields that were created using the `payload` property for # instance.thumb_url: "https://a.slack-edge.com/80588/img/apps/default_new_app_icon.png",fields: [{title: "GDrive Link",value: "https://drive.google.com/file/d/1jqfTYihUZjTWsy8ME35yzTTcaG06j3wb/view?usp=drive_link",short: false}]},)# uploaded_file_names = lane_context[SharedValues::GDRIVE_UPLOADED_FILE_NAMES]# UI.message("Uploaded files: #{uploaded_file_names}")endlane:upload_file_adminTool_windo |options|
zip(path: ".build/last/admintoolwin",output_path: "./AdminToolWin.zip",verbose: true,exclude: ["**/*DoNotShip","build_stats*","**/*extra_data","temp*"])#upload_to_google_drive(# drive_keyfile: './fastlane/shelfauditdec19-66d192fb9623.json',# service_account: true,# folder_id: '1t1X61izyi0fAy7jTfYxKDHJrJNueJ3Ui',# upload_files: [ './Build/AdminTool/AdminTool_Mac.zip' ]#)update_google_drive_file(drive_keyfile: './fastlane/shelfauditdec19-66d192fb9623.json',file_id: '1NnF8Y0iHpcJJJJRpnegXTKk7WI0uEWDc',upload_file: './AdminToolWin.zip')slack(message: "Admin Tool for Windows v"+options[:version]+" Built.",# pretext: "Pretext Test.",# channel: "#unity_cloud_build", # Optional, by default will post to the default channel configured for the POST URL.slack_url: "https://hooks.slack.com/services/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",# username: "UCB",# success: true, # Optional, defaults to true.payload: {# Optional, lets you specify any number of your own Slack attachments."Build Date"=>Time.new.to_s,# "Built by" => "Jenkins",},# Optional, lets you specify default payloads to include. Pass an empty array to suppress all the default payloads.# default_payloads: [:git_branch, :git_author],# Optional, lets you specify any other properties available for attachments in the slack API (see https://api.slack.com/docs/attachments).attachment_properties: {# This hash is deep merged with the existing properties set using the other properties above.# This allows your own fields properties to be appended to the existing fields that were created using the `payload` property for # instance.thumb_url: "https://a.slack-edge.com/80588/img/apps/default_new_app_icon.png",fields: [{title: "GDrive Link",value: "https://drive.google.com/file/d/1NnF8Y0iHpcJJJJRpnegXTKk7WI0uEWDc/view?usp=drive_link",short: false}]},)# uploaded_file_names = lane_context[SharedValues::GDRIVE_UPLOADED_FILE_NAMES]# UI.message("Uploaded files: #{uploaded_file_names}")endlane:upload_file_adminTool_linuxdo |options|
zip(path: ".build/last/admintoollinux",output_path: "./AdminToolLinux.zip",verbose: true,exclude: ["**/*DoNotShip","build_stats*","**/*extra_data","temp*"])update_google_drive_file(drive_keyfile: './fastlane/shelfauditdec19-66d192fb9623.json',file_id: '1Cxm-g5LlfImNJcd-bYPKIHC55SKUaXhf',upload_file: './AdminToolLinux.zip')slack(message: "Admin Tool for Linux v"+options[:version]+" Built.",# pretext: "Pretext Test.",# channel: "#unity_cloud_build", # Optional, by default will post to the default channel configured for the POST URL.slack_url: "https://hooks.slack.com/services/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",# username: "UCB",# success: true, # Optional, defaults to true.payload: {# Optional, lets you specify any number of your own Slack attachments."Build Date"=>Time.new.to_s,# "Built by" => "Jenkins",},# Optional, lets you specify default payloads to include. Pass an empty array to suppress all the default payloads.# default_payloads: [:git_branch, :git_author],# Optional, lets you specify any other properties available for attachments in the slack API (see https://api.slack.com/docs/attachments).attachment_properties: {# This hash is deep merged with the existing properties set using the other properties above.# This allows your own fields properties to be appended to the existing fields that were created using the `payload` property for # instance.thumb_url: "https://a.slack-edge.com/80588/img/apps/default_new_app_icon.png",fields: [{title: "GDrive Link",value: "https://drive.google.com/file/d/1Cxm-g5LlfImNJcd-bYPKIHC55SKUaXhf/view?usp=drive_link",short: false}]},)# uploaded_file_names = lane_context[SharedValues::GDRIVE_UPLOADED_FILE_NAMES]# UI.message("Uploaded files: #{uploaded_file_names}")endlane:upload_file_deployTool_macdo |options|
zip(path: ".build/last/deploytoolmac",output_path: "./DeployToolMac.zip",verbose: true,exclude: ["**/*DoNotShip","build_stats*","**/*extra_data","temp*"])#upload_to_google_drive(# drive_keyfile: './fastlane/shelfauditdec19-66d192fb9623.json',# service_account: true,# folder_id: '1t1X61izyi0fAy7jTfYxKDHJrJNueJ3Ui',# upload_files: [ './Build/AdminTool/AdminTool_Mac.zip' ]#)update_google_drive_file(drive_keyfile: './fastlane/shelfauditdec19-66d192fb9623.json',file_id: '1jXeMly4uMWDSj-U05M6tDbYmf9KvRnUF',upload_file: './DeployToolMac.zip')slack(message: "Deploy Tool for Mac v"+options[:version]+" Built.",# pretext: "Pretext Test.",# channel: "#unity_cloud_build", # Optional, by default will post to the default channel configured for the POST URL.slack_url: "https://hooks.slack.com/services/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",# username: "UCB",# success: true, # Optional, defaults to true.payload: {# Optional, lets you specify any number of your own Slack attachments."Build Date"=>Time.new.to_s,# "Built by" => "Jenkins",},# Optional, lets you specify default payloads to include. Pass an empty array to suppress all the default payloads.# default_payloads: [:git_branch, :git_author],# Optional, lets you specify any other properties available for attachments in the slack API (see https://api.slack.com/docs/attachments).attachment_properties: {# This hash is deep merged with the existing properties set using the other properties above.# This allows your own fields properties to be appended to the existing fields that were created using the `payload` property for # instance.thumb_url: "https://a.slack-edge.com/80588/img/apps/default_new_app_icon.png",fields: [{title: "GDrive Link",value: "https://drive.google.com/file/d/1jqfTYihUZjTWsy8ME35yzTTcaG06j3wb/view?usp=drive_link",short: false}]},)# uploaded_file_names = lane_context[SharedValues::GDRIVE_UPLOADED_FILE_NAMES]# UI.message("Uploaded files: #{uploaded_file_names}")endlane:upload_file_deployTool_windo |options|
zip(path: ".build/last/deploytoolwin",output_path: "./DeployToolWin.zip",verbose: true,exclude: ["**/*DoNotShip","build_stats*","**/*extra_data","temp*"])#upload_to_google_drive(# drive_keyfile: './fastlane/shelfauditdec19-66d192fb9623.json',# service_account: true,# folder_id: '1t1X61izyi0fAy7jTfYxKDHJrJNueJ3Ui',# upload_files: [ './Build/AdminTool/AdminTool_Mac.zip' ]#)update_google_drive_file(drive_keyfile: './fastlane/shelfauditdec19-66d192fb9623.json',file_id: '1EPJ4-vVqCOtQkm6M-BfaHNH4ll0-0QzJ',upload_file: './DeployToolWin.zip')slack(message: "Deploy Tool for Windows v"+options[:version]+" Built.",# pretext: "Pretext Test.",# channel: "#unity_cloud_build", # Optional, by default will post to the default channel configured for the POST URL.slack_url: "https://hooks.slack.com/services/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",# username: "UCB",# success: true, # Optional, defaults to true.payload: {# Optional, lets you specify any number of your own Slack attachments."Build Date"=>Time.new.to_s,# "Built by" => "Jenkins",},# Optional, lets you specify default payloads to include. Pass an empty array to suppress all the default payloads.# default_payloads: [:git_branch, :git_author],# Optional, lets you specify any other properties available for attachments in the slack API (see https://api.slack.com/docs/attachments).attachment_properties: {# This hash is deep merged with the existing properties set using the other properties above.# This allows your own fields properties to be appended to the existing fields that were created using the `payload` property for # instance.thumb_url: "https://a.slack-edge.com/80588/img/apps/default_new_app_icon.png",fields: [{title: "GDrive Link",value: "https://drive.google.com/file/d/1NnF8Y0iHpcJJJJRpnegXTKk7WI0uEWDc/view?usp=drive_link",short: false}]},)# uploaded_file_names = lane_context[SharedValues::GDRIVE_UPLOADED_FILE_NAMES]# UI.message("Uploaded files: #{uploaded_file_names}")endlane:upload_file_deployTool_linuxdo |options|
zip(path: ".build/last/deploytoollinux",output_path: "./DeployToolLinux.zip",verbose: true,exclude: ["**/*DoNotShip","build_stats*","**/*extra_data","temp*"])update_google_drive_file(drive_keyfile: './fastlane/shelfauditdec19-66d192fb9623.json',file_id: '10SfRRiq5oI47KCueR9XfQngznkAnCSzb',upload_file: './DeployToolLinux.zip')slack(message: "Deploy Tool for Linux v"+options[:version]+" Built.",# pretext: "Pretext Test.",# channel: "#unity_cloud_build", # Optional, by default will post to the default channel configured for the POST URL.slack_url: "https://hooks.slack.com/services/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",# username: "UCB",# success: true, # Optional, defaults to true.payload: {# Optional, lets you specify any number of your own Slack attachments."Build Date"=>Time.new.to_s,# "Built by" => "Jenkins",},# Optional, lets you specify default payloads to include. Pass an empty array to suppress all the default payloads.# default_payloads: [:git_branch, :git_author],# Optional, lets you specify any other properties available for attachments in the slack API (see https://api.slack.com/docs/attachments).attachment_properties: {# This hash is deep merged with the existing properties set using the other properties above.# This allows your own fields properties to be appended to the existing fields that were created using the `payload` property for # instance.thumb_url: "https://a.slack-edge.com/80588/img/apps/default_new_app_icon.png",fields: [{title: "GDrive Link",value: "https://drive.google.com/file/d/1Cxm-g5LlfImNJcd-bYPKIHC55SKUaXhf/view?usp=drive_link",short: false}]},)# uploaded_file_names = lane_context[SharedValues::GDRIVE_UPLOADED_FILE_NAMES]# UI.message("Uploaded files: #{uploaded_file_names}")end
`./Appfile`
# Account ID: 106118294377461989235# Service Account Email: ucb-uploads-1@shelfauditdec19.iam.gserviceaccount.com# Path to the json secret file - Follow https://docs.fastlane.tools/actions/supply/#setup to get onejson_key_file("./fastlane/shelfauditdec19-66d192fb9623.json")package_name("com.arpalus.planogramcompliance")
Define separate version codes in your Fastlane config or use the version_codes_to_retain option marykayintouch to keep the internal track's version code. This should fix the upload error.
My task is to automate uploading aab to internal and alpha tracks in Google Play. The first one goes smoothly, the next one errors on version already used.
But we don't have this issue when uploading manually. What's up?
🚫 fastlane environment 🚫
Stack
System Locale
fastlane files:
`./Fastfile`
`./Appfile`
fastlane gems
Loaded fastlane plugins:
Loaded gems
generated on: 2024-05-15
The text was updated successfully, but these errors were encountered: