Missing .apk files in gradle runner and it was successful

Bitrise Build Issue Report template

Description of the issue

Please describe the issue here
Missing .apk files in gradle runner and it was successful.
I have tried this blog links steps but still doesn’t build successfully locally : How to debug your build locally? | Bitrise

Environment:

Where did the issue happen?
In the android build process.

If on Bitrise.io: which stack? If not on Bitrise.io: on what operating system? (Plus any other information you can share)

Which build Step causes the issue and which version of the step?

E.g.: Git Clone v3.6.0

Reproducibility

  • Does a “Rebuild” help? (You can trigger a rebuild from the Build’s page, by clicking the “Rebuild” button in the top right corner of a finished build) : YES/NO
  • Does a rebuild without caches help? (You can remove the Cache:Pull and Cache:Push steps temporarily to not to use the cache, or you can delete all the caches on the Settings tab of the app. : YES/NO
  • Does the issue happen sporadically, or every time? :
  • Does upgrading the build Step to the latest version help? : YES/NO
  • When did the issue start? :

Local reproduction

Can it be reproduced on your own Mac/PC by following our local debug guide? Please follow at least the first section (“Testing with a full clean git clone”) to make sure to test the state of the code what bitrise.io will get when it does a git clone in the clean environment! If possible please note which sections you tried.

Local reproduction: Linux / Android (docker based) stack builds

Can it be reproduced by running the build locally, after doing a new git clone of the repository into the /tmp directory and running the build from there with the Bitrise CLI ( Bitrise CLI )? If no, can it be reproduced with Docker (using the same docker images / environment we use on bitrise.io)? Related guide: Redirecting… .

Build log

_Agent version: 1.33.1
Hostname: prdfree-20-04-usc1b-210928122525-xzzyedns2phmudef3v4xzm
Start time: 2021-09-28T12:26:58Z
$ docker “run” “-v” “/var/run/docker.sock:/var/run/docker.sock” “-v” “/bitrise:/bitrise” “-v” “/tmp/bitrise-agent151757741:/.bitrise-config” “-e” “BITRISE_GIT_BRANCH=develop” “-e” “BITRISEIO_STACK_ID=linux-docker-android-20.04” “-e” “BITRISE_BUILD_TRIGGER_TIMESTAMP=1632832017” “-e” “BITRISE_BUILD_NUMBER=2661” “-e” “BITRISE_IO=true” “-e” “BITRISE_APP_URL=https://app.bitrise.io/app/413da4977a085fa6” “-e” “GIT_REPOSITORY_URL=git@github.com:boxt/installer-app.git” “-e” “BITRISEIO_GIT_REPOSITORY_SLUG=installer-app” “-e” “BITRISE_BUILD_SLUG=0e358ef0-3b10-400b-854c-4515949f6cba” “-e” “BITRISE_APP_SLUG=413da4977a085fa6” “-e” “BITRISE_APP_TITLE=boxt-installer-app-android” “-e” “BITRISEIO_GIT_REPOSITORY_OWNER=boxt” “-e” “BITRISE_BUILD_URL=https://app.bitrise.io/build/0e358ef0-3b10-400b-854c-4515949f6cba” “–privileged” “–network=host” “–name=bitrise-main-container” “bitriseio/android-ndk-20.04:pinned” “bitrise” “run” “–config” “/.bitrise-config/bitrise.yml” “–inventory” “/.bitrise-config/bitrise.secrets.yml” “–json-params-base64” “eyJ3b3JrZmxvdyI6IlVBVCJ9”
██████╗ ██╗████████╗██████╗ ██╗███████╗███████╗
██╔══██╗██║╚══██╔══╝██╔══██╗██║██╔════╝██╔════╝
██████╔╝██║ ██║ ██████╔╝██║███████╗█████╗
██╔══██╗██║ ██║ ██╔══██╗██║╚════██║██╔══╝
██████╔╝██║ ██║ ██║ ██║██║███████║███████╗
╚═════╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝╚═╝╚══════╝╚══════╝
version: 1.48.0
INFO[12:26:58] bitrise runs in Secret Filtering mode
INFO[12:26:58] bitrise runs in Secret Envs Filtering mode
INFO[12:26:58] bitrise runs in CI mode
INFO[12:26:58] Running workflow: UAT
Switching to workflow: UAT
INFO[12:26:59] Step uses latest version – Updating StepLib …
±-----------------------------------------------------------------------------+

| (0) activate-ssh-key |
±–±--------------------------------------------------------------±---------+
±–±--------------------------------------------------------------±---------+
| ✓ | activate-ssh-key | 5.32 sec |
±–±--------------------------------------------------------------±---------+

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

| (1) git-clone |
±–±--------------------------------------------------------------±---------+
±–±--------------------------------------------------------------±---------+
| ✓ | git-clone | 6.63 sec |
±–±--------------------------------------------------------------±---------+

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

| (2) cache-pull@2 |
±–±--------------------------------------------------------------±---------+
±–±--------------------------------------------------------------±---------+
| ✓ | cache-pull@2 | 20.53 sec|
±–±--------------------------------------------------------------±---------+

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

| (3) script |
±–±--------------------------------------------------------------±---------+
±–±--------------------------------------------------------------±---------+
| ✓ | script | 14.28 sec|
±–±--------------------------------------------------------------±---------+

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

| (4) nvm@1.3 |
±–±--------------------------------------------------------------±---------+
±–±--------------------------------------------------------------±---------+
| ✓ | nvm@1.3 | 8.17 sec |
±–±--------------------------------------------------------------±---------+

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

| (5) npm@1 |
±–±--------------------------------------------------------------±---------+
±–±--------------------------------------------------------------±---------+
| ✓ | npm@1 | 45.08 sec|
±–±--------------------------------------------------------------±---------+

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

| (6) apt-get-install |
±–±--------------------------------------------------------------±---------+
±–±--------------------------------------------------------------±---------+
| ✓ | apt-get-install | 16.33 sec|
±–±--------------------------------------------------------------±---------+

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

| (7) npm@1 |
±–±--------------------------------------------------------------±---------+
±–±--------------------------------------------------------------±---------+
| ✓ | npm@1 | 8.17 sec |
±–±--------------------------------------------------------------±---------+

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

| (8) install-missing-android-tools |
±–±--------------------------------------------------------------±---------+
±–±--------------------------------------------------------------±---------+
| ✓ | install-missing-android-tools | 35.76 sec|
±–±--------------------------------------------------------------±---------+

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

| (9) change-android-versioncode-and-versionname@1.1 |
±–±--------------------------------------------------------------±---------+
±–±--------------------------------------------------------------±---------+
| ✓ | change-android-versioncode-and-versionname@1.1 | 1.79 sec |
±–±--------------------------------------------------------------±---------+
| Update available: 1.1 (1.1.1) → 1.3.0 |
| |
| Release notes are available below |
| …trise-community/steps-change-android-versioncode-and-versionname/releases |
±–±--------------------------------------------------------------±---------+

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

| (10) gradle-runner |
±-----------------------------------------------------------------------------+
| id: gradle-runner |
| version: 2.0.1 |
| collection: GitHub - bitrise-io/bitrise-steplib: New Bitrise StepLib |
| toolkit: go |
| time: 2021-09-28T12:29:41Z |
±-----------------------------------------------------------------------------+
| |
Config:

  • GradleFile: android/app/build.gradle
  • GradleTasks: bundleRelease
  • GradlewPath: android/gradlew
  • GradleOptions: --stacktrace --no-daemon
  • AppFileIncludeFilter: *.apk
    *.aab
  • AppFileExcludeFilter: *unaligned.apk
    Test.apk
    /intermediates/
  • TestApkFileIncludeFilter: Test.apk
  • TestApkFileExcludeFilter:
  • MappingFileIncludeFilter: */mapping.txt
  • MappingFileExcludeFilter: /tmp/
  • CacheLevel: only_deps
  • DeployDir: /bitrise/deploy
  • ApkFileIncludeFilter:
  • ApkFileExcludeFilter:
    Running gradle task…
    w: Detected multiple Kotlin daemon sessions at build/kotlin/sessions
    Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
    Use ‘–warning-mode all’ to show the individual deprecation warnings.
    See Command-Line Interface
    BUILD SUCCESSFUL in 6m 29s
    592 actionable tasks: 592 executed
    Collecting cache:
    fatal: Path ‘android/app/build.gradle’ exists, but not ‘build.gradle’.
    Did you mean ‘HEAD:android/app/build.gradle’ aka ‘HEAD:./build.gradle’?
    Move APK and AAB files…
    Copying android/app/build/outputs/bundle/release/app-release.aab → /bitrise/deploy/app-release.aab
    skipping: node_modules/react-native-signature-capture/Example/android/app/build/outputs/apk/debug/app-debug.apk, modified before the gradle task has started
    The app path is now available in the Environment Variable: $BITRISE_AAB_PATH (value: /bitrise/deploy/app-release.aab)
    The app paths list is now available in the Environment Variable: $BITRISE_AAB_PATH_LIST (value: /bitrise/deploy/app-release.aab)
    No file name matched test apk filters
    Move mapping files…
    No mapping file matched the filters
    | |
    ±–±--------------------------------------------------------------±---------+
    | ✓ | gradle-runner | 6.6 min |
    ±–±--------------------------------------------------------------±---------+

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

| (11) sign-apk |
±–±--------------------------------------------------------------±---------+
±–±--------------------------------------------------------------±---------+
| ✓ | sign-apk | 15.24 sec|
±–±--------------------------------------------------------------±---------+

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

| (12) deploy-to-bitrise-io |
±–±--------------------------------------------------------------±---------+
±–±--------------------------------------------------------------±---------+
| ✓ | deploy-to-bitrise-io | 8.86 sec |
±–±--------------------------------------------------------------±---------+

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

| (13) cache-push |
±–±--------------------------------------------------------------±---------+
±–±--------------------------------------------------------------±---------+
| ✓ | cache-push | 1.1 min |
±–±--------------------------------------------------------------±---------+

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

| (14) slack@3.1 |
±–±--------------------------------------------------------------±---------+
±–±--------------------------------------------------------------±---------+
| ✓ | slack@3.1 | 3.07 sec |
±–±--------------------------------------------------------------±---------+
±-----------------------------------------------------------------------------+
| bitrise summary |
±–±--------------------------------------------------------------±---------+
| | title | time (s) |
±–±--------------------------------------------------------------±---------+
| ✓ | activate-ssh-key | 5.32 sec |
±–±--------------------------------------------------------------±---------+
| ✓ | git-clone | 6.63 sec |
±–±--------------------------------------------------------------±---------+
| ✓ | cache-pull@2 | 20.53 sec|
±–±--------------------------------------------------------------±---------+
| ✓ | script | 14.28 sec|
±–±--------------------------------------------------------------±---------+
| ✓ | nvm@1.3 | 8.17 sec |
±–±--------------------------------------------------------------±---------+
| ✓ | npm@1 | 45.08 sec|
±–±--------------------------------------------------------------±---------+
| ✓ | apt-get-install | 16.33 sec|
±–±--------------------------------------------------------------±---------+
| ✓ | npm@1 | 8.17 sec |
±–±--------------------------------------------------------------±---------+
| ✓ | install-missing-android-tools | 35.76 sec|
±–±--------------------------------------------------------------±---------+
| ✓ | change-android-versioncode-and-versionname@1.1 | 1.79 sec |
±–±--------------------------------------------------------------±---------+
| Update available: 1.1 (1.1.1) → 1.3.0 |
| |
| Release notes are available below |
| …trise-community/steps-change-android-versioncode-and-versionname/releases |
±–±--------------------------------------------------------------±---------+
| ✓ | gradle-runner | 6.6 min |
±–±--------------------------------------------------------------±---------+
| ✓ | sign-apk | 15.24 sec|
±–±--------------------------------------------------------------±---------+
| ✓ | deploy-to-bitrise-io | 8.86 sec |
±–±--------------------------------------------------------------±---------+
| ✓ | cache-push | 1.1 min |
±–±--------------------------------------------------------------±---------+
| ✓ | slack@3.1 | 3.07 sec |
±–±--------------------------------------------------------------±---------+
| Total runtime: 10.8 min |
±-----------------------------------------------------------------------------+
Submitting anonymized usage information…
For more information visit:

Bitrise build successful