The platform publishes Android builds through the Google Play Android Developer API with a service account from Google Cloud whose JSON key you store. You need a developer account in the Play Console that may manage API access and users; the registration is described under Google Play developer account.
Enable the APIs and link a Google Cloud project
- Open the Google Play Console and go to Settings (gear) → API access.
- Link a Google Cloud project or accept the suggestion.
- Enable the Google Play Android Developer API on the linked project, through the link from the Play Console or directly in the Google Cloud Console.
- Also enable the Google Play Developer Reporting API, which the platform uses to load your apps and package names for the selection list; without it the list stays empty.
Create the service account and JSON key
- In the Google Cloud Console, go to IAM & Admin → Service Accounts → Create service account in the linked project.
- Give it a descriptive name such as
application-platform-play. - In the new service account, choose Keys → Add key → Create new key with the type JSON.
- Download the JSON file and keep it in a safe place.
Grant the service account access in the Play Console
- In the Play Console, go to API access or Users and permissions.
- Add the service account as a user with the email address from the
client_emailfield of the JSON file. - Assign the permissions your pipelines need, usually the rights to manage releases.
Without this step the platform can sign in to Google, but every upload to the Play Console fails.
Enter the JSON key in the platform
Open Store accounts, click Add access, choose the Play Store account, and paste the full contents of the JSON file into the Play Store accounts JSON field. Click Verify credentials first. On success the platform shows the service account’s email address and, where available, the project ID; only then can the entry be saved.
If you later replace the key in Google Cloud, update the entry with the new JSON.
Package name of the app
In the app you select the Android application ID, that is the package name, from the apps of the Play Store account; you create new apps in the Play Console as described under Play Store: Create an app and package name.