Google Play Deploy: Cannot find APK path even with successful Gradle Runner step

Description of the issue

The issue is that the Google Play Deploy step fails because “AppPath: required variable is not present”. However, my Gradle Runner step doesn’t fail and the APK file path in the Google Play Deploy step is $BITRISE_APK_PATH which is the default. For some reason, that variable isn’t being generated.
(All of the configuration steps were followed for allowing access to the APK file on Google Play)

Environment:

Google Play Deploy Step

Bitrise.yml:

buildIntelivideoTestApp:
steps:
- activate-ssh-key@4.0:
run_if: ‘{{getenv “SSH_RSA_PRIVATE_KEY” | ne “”}}’
- git-clone@6.0: {}
- file-downloader@1.0:
inputs:
- destination: “$HOME/keystores/intelivideothree.key”
- source: “$BITRISEIO_ANDROID_KEYSTORE_URL”
- cache-pull@2.5: {}
- install-missing-android-tools@2.3: {}
- gradle-runner@1.9:
inputs:
- app_file_include_filter: |-
*.apk
*.aab
- gradle_task: assembleIvTestAppRelease
- sign-apk@1.7: {}
- deploy-to-bitrise-io@1.13:
inputs:
- notify_user_groups: none
- notify_email_list: “$BITRISE_EMAIL”
- is_enable_public_page: ‘false’
- google-play-deploy@3:
inputs:
- package_name: com.intelivideotestapp.video
- track: Production
- app_path: “$BITRISE_APK_PATH”
- service_account_json_key_path: “$BITRISEIO_BITRISEIO_SERVICE_ACCOUNT_JSON_KEY_URL_GOOGLE_PLAY_URL”
- cache-push@2.5:
is_always_run: true
description: 'Intelivideo Test app for CI -> google play ’

Build Log

Agent version: 1.25.2
Hostname: prd-latest-usc1b-210519214632-ynqxmkyx7srnc88m6xdkpg
Start time: 2021-05-19T22:06:54Z
$ docker “run” “-v” “/var/run/docker.sock:/var/run/docker.sock” “-v” “/bitrise:/bitrise” “-v” “/tmp/bitrise-agent348239381:/.bitrise-config” “-e” “BITRISE_BUILD_TRIGGER_TIMESTAMP=1621462013” “-e” “BITRISE_APP_URL=https://app.bitrise.io/app/fd1169d557fd3cc0” “-e” “BITRISE_APP_SLUG=fd1169d557fd3cc0” “-e” “BITRISE_APP_TITLE=iv-android-apps” “-e” "GIT_REPOSITORY_URL=git@github.com:InteliVideo/iv-android-apps.git" “-e” “BITRISEIO_GIT_REPOSITORY_OWNER=InteliVideo” “-e” “BITRISEIO_GIT_REPOSITORY_SLUG=iv-android-apps” “-e” “BITRISEIO_STACK_ID=linux-docker-android” “-e” “BITRISE_BUILD_NUMBER=641” “-e” “BITRISE_BUILD_URL=https://app.bitrise.io/build/40dddac19cac8c21” “-e” “BITRISE_BUILD_SLUG=40dddac19cac8c21” “-e” “BITRISE_IO=true” “-e” “BITRISE_GIT_BRANCH=develop” “–privileged” “–network=host” “–name=bitrise-main-container” “bitriseio/android-ndk:pinned” “bitrise” “run” “–config” “/.bitrise-config/bitrise.yml” “–inventory” “/.bitrise-config/bitrise.secrets.yml” “–json-params-base64” “eyJ3b3JrZmxvdyI6ImJ1aWxkSW50ZWxpdmlkZW9UZXN0QXBwIn0=”
██████╗ ██╗████████╗██████╗ ██╗███████╗███████╗
██╔══██╗██║╚══██╔══╝██╔══██╗██║██╔════╝██╔════╝
██████╔╝██║ ██║ ██████╔╝██║███████╗█████╗
██╔══██╗██║ ██║ ██╔══██╗██║╚════██║██╔══╝
██████╔╝██║ ██║ ██║ ██║██║███████║███████╗
╚═════╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝╚═╝╚══════╝╚══════╝
version: 1.44.0
INFO[22:06:55] bitrise runs in Secret Filtering mode
INFO[22:06:55] bitrise runs in CI mode
INFO[22:06:55] Running workflow: buildIntelivideoTestApp
Switching to workflow: buildIntelivideoTestApp
INFO[22:06:55] Step uses latest version – Updating StepLib …
±-----------------------------------------------------------------------------+

| (0) activate-ssh-key@4.0 |
±–±--------------------------------------------------------------±---------+
±–±--------------------------------------------------------------±---------+
| ✓ | activate-ssh-key@4.0 | 7.38 sec |
±–±--------------------------------------------------------------±---------+

±-----------------------------------------------------------------------------+

| (1) git-clone@6.0 |
±–±--------------------------------------------------------------±---------+
±–±--------------------------------------------------------------±---------+
| ✓ | git-clone@6.0 | 27.97 sec|
±–±--------------------------------------------------------------±---------+

±-----------------------------------------------------------------------------+

| (2) file-downloader@1.0 |
±–±--------------------------------------------------------------±---------+
±–±--------------------------------------------------------------±---------+
| ✓ | file-downloader@1.0 | 2.01 sec |
±–±--------------------------------------------------------------±---------+

±-----------------------------------------------------------------------------+

| (3) cache-pull@2.5 |
±–±--------------------------------------------------------------±---------+
±–±--------------------------------------------------------------±---------+
| ✓ | cache-pull@2.5 | 11.21 sec|
±–±--------------------------------------------------------------±---------+

±-----------------------------------------------------------------------------+

| (4) install-missing-android-tools@2.3 |
±–±--------------------------------------------------------------±---------+
±–±--------------------------------------------------------------±---------+
| ✓ | install-missing-android-tools@2.3 | 42.97 sec|
±–±--------------------------------------------------------------±---------+

±-----------------------------------------------------------------------------+

| (5) gradle-runner@1.9 |
±–±--------------------------------------------------------------±---------+
±–±--------------------------------------------------------------±---------+
| ✓ | gradle-runner@1.9 | 6.3 min |
±–±--------------------------------------------------------------±---------+

±-----------------------------------------------------------------------------+

| (6) sign-apk@1.7 |
±–±--------------------------------------------------------------±---------+
±–±--------------------------------------------------------------±---------+
| ✓ | sign-apk@1.7 | 6.43 sec |
±–±--------------------------------------------------------------±---------+

±-----------------------------------------------------------------------------+

| (7) deploy-to-bitrise-io@1.13 |
±–±--------------------------------------------------------------±---------+
±–±--------------------------------------------------------------±---------+
| ✓ | deploy-to-bitrise-io@1.13 | 9.73 sec |
±–±--------------------------------------------------------------±---------+

±-----------------------------------------------------------------------------+

| (8) google-play-deploy@3 |
±-----------------------------------------------------------------------------+
| id: google-play-deploy |
| version: 3.3.0 |
| collection: https://github.com/bitrise-io/bitrise-steplib.git |
| toolkit: go |
| time: 2021-05-19T22:15:05Z |
±-----------------------------------------------------------------------------+
| |
Getting configuration
Couldn’t create config: failed to parse config:

  • AppPath: required variable is not present
    Configs:
  • JSONKeyPath: *****
  • PackageName: com.[REDACTED]testapp.video
  • AppPath:
  • ExpansionfilePath:
  • Track: Production
  • UserFraction: 0
  • UpdatePriority: 0
  • WhatsnewsDir:
  • MappingFile:
  • ReleaseName:
  • Status:
    | |
    ±–±--------------------------------------------------------------±---------+
    | x | google-play-deploy@3 (exit code: 1) | 16.62 sec|
    ±–±--------------------------------------------------------------±---------+
    | Issue tracker: https://github.com/bitrise-io/steps-google-play-deploy/issues |
    | Source: https://github.com/bitrise-io/steps-google-play-deploy |
    ±–±--------------------------------------------------------------±---------+

    ±-----------------------------------------------------------------------------+

| (9) cache-push@2.5 |
±–±--------------------------------------------------------------±---------+
±–±--------------------------------------------------------------±---------+
| ✓ | cache-push@2.5 | 4.07 sec |
±–±--------------------------------------------------------------±---------+
±-----------------------------------------------------------------------------+
| bitrise summary |
±–±--------------------------------------------------------------±---------+
| | title | time (s) |
±–±--------------------------------------------------------------±---------+
| ✓ | activate-ssh-key@4.0 | 7.38 sec |
±–±--------------------------------------------------------------±---------+
| ✓ | git-clone@6.0 | 27.97 sec|
±–±--------------------------------------------------------------±---------+
| ✓ | file-downloader@1.0 | 2.01 sec |
±–±--------------------------------------------------------------±---------+
| ✓ | cache-pull@2.5 | 11.21 sec|
±–±--------------------------------------------------------------±---------+
| ✓ | install-missing-android-tools@2.3 | 42.97 sec|
±–±--------------------------------------------------------------±---------+
| ✓ | gradle-runner@1.9 | 6.3 min |
±–±--------------------------------------------------------------±---------+
| ✓ | sign-apk@1.7 | 6.43 sec |
±–±--------------------------------------------------------------±---------+
| ✓ | deploy-to-bitrise-io@1.13 | 9.73 sec |
±–±--------------------------------------------------------------±---------+
| x | google-play-deploy@3 (exit code: 1) | 16.62 sec|
±–±--------------------------------------------------------------±---------+
| Issue tracker: https://github.com/bitrise-io/steps-google-play-deploy/issues |
| Source: https://github.com/bitrise-io/steps-google-play-deploy |
±–±--------------------------------------------------------------±---------+
| ✓ | cache-push@2.5 | 4.07 sec |
±–±--------------------------------------------------------------±---------+
| Total runtime: 8.5 min |
±-----------------------------------------------------------------------------+
Submitting anonymized usage information…
For more information visit:
https://github.com/bitrise-io/bitrise-plugins-analytics/blob/master/README.md

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.