Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

invalid distribution group name #64

Closed
emilioicai opened this issue Apr 17, 2019 · 10 comments · Fixed by #76
Closed

invalid distribution group name #64

emilioicai opened this issue Apr 17, 2019 · 10 comments · Fixed by #76
Assignees
Labels

Comments

@emilioicai
Copy link

I recently updated to 0.2.1 . Everything seemed to be working fine until I tried distributing my app to the Testflight and Beta testers in Google play. Now I only get this error over and over:

Not found, invalid distribution group name
Group 'Alpha' was not found

This is th relevant code in my Fastfile:

# upload to appcenter
appcenter_upload(
      api_token: "<TOKEN>",
      owner_name: "<OWNER>",
      app_name: "<APPNAME>",
      notify_testers: true,
      group: "Alpha",
      release_notes: "<NOTES>",
      apk: lane_context[SharedValues::GRADLE_APK_OUTPUT_PATH]
)

Which makes me think something changed in the way appcenter retrieves the group id. Can you confirm this is the case? If so, how should I modify my Fastfile to reflect this change?

@emilioicai
Copy link
Author

I can confirm the distribution group 'Alpha' exists in my App's appcenter setup

@evkhramkov
Copy link
Contributor

Hello, sorry for that issue. At the moment, plugin supports distributing only to App Center distribution groups, you can’t target external destination (like TestFlight, or Google Play)

@emilioicai
Copy link
Author

This was working before, any plans on supporting this feature in the future?

@evkhramkov
Copy link
Contributor

Yes we will fix that soon, I hope we'll be able to release an update next week.
But due to API changes, which were adopted in 0.2.0 release, we'll have to introduce separate parameter to specify external stores.

Sorry again for that issue, but you still can try downgrading to 0.1.7

@evkhramkov evkhramkov added the bug label Apr 18, 2019
@evkhramkov evkhramkov self-assigned this Apr 18, 2019
@dennispan
Copy link
Contributor

My thoughts on this is to first refactor what we have and change group to destinations, and add destination_type, which is consistent with how App Center CLI does this (https://github.com/Microsoft/appcenter-cli/blob/master/src/commands/distribute/releases/add-destination.ts#L67) and App Center public APIs. Does this sound reasonable @evkhramkov ?

@evkhramkov
Copy link
Contributor

@emilioicai we just released version 1.0.0 with stores support. You can use that like that:

# upload to appcenter
appcenter_upload(
      api_token: "<TOKEN>",
      owner_name: "<OWNER>",
      app_name: "<APPNAME>",
      notify_testers: true,
      destinations: "Alpha",
      destination_type: "store",
      release_notes: "<NOTES>",
      apk: lane_context[SharedValues::GRADLE_APK_OUTPUT_PATH]
)

@emilioicai
Copy link
Author

great!, thanks @evkhramkov

@jwilber99
Copy link

Hello all, I have been trying to use appcenter_upload() in my fastfile to upload our builds to the appcenter and the play / app store. It successfully uploads to the appcenter but it doesn't successfully upload to the stores. It tells me 'Not found, invalid distribution store name, store 'App Store' was not found'.
The arguments I am using look like this:
appcenter_upload(
file: options[:BUILD_OUTPUT],
destinations: "App store",
destination_type: "store",
upload_build_only: true)

It doesn't recognize 'App store' as a name for a store. I have looked through the documentation and this one (link below) shows the 'destinations' as Alpha. I did try alpha but it tells me 'Not found, invalid distribution store name, store 'Alpha' was not found'. Example can be found above and at the link below
(Link:

'appcenter_upload(
api_token: "...",
owner_name: "appcenter_owner",
app_name: "testing_google_play_app",
file: "./app.aab",
destinations: "Alpha",
destination_type: "store",
release_notes: "this is a store release"
)
In the 'fastlane-lugin-appcenter's readme, it says that 'Comma separated list of destination names, use '*' for all distribution groups if destination type is 'group'. Both distribution groups and stores are supported. All names are required to be of the same destination type (default: Collaborators)'

What I am trying to accomplish: upload our builds to the app center (already done, have multiple builds in there) AND have it be uploaded to both the Google Play Console and the App Store Connect.

The main question I have is: What are the values that can be used for 'destinations' when we are trying to upload to a store and not a group of testers within AppCenter? Can anyone help me with this I would REALLY appreciate it, thank you so much in advance!

Looper Store name not found build output

@MikhailSuendukov
Copy link

Hi @jwilber99 which fastlane plugin version do you use?

@jwilber99
Copy link

Hello @MikhailSuendukov thank you so much for responding. I am using version 2.0.0 for 'fastlane-plugin-appcenter'. Should I be using a different version?

Screenshot 2023-02-09 at 9 26 56 AM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants