bitrise-steplib / steps-gradle-runner

MIT License
10 stars 28 forks source link

Output APK isn't accessible #29

Closed jpike88 closed 7 years ago

jpike88 commented 7 years ago

Continued from https://github.com/bitrise-steplib/steps-google-play-deploy/issues/22

Build # is 4d804c79c6912ba3

Please help...

EDIT: wtf..... got the file from bitrise deploy, it's only 15 bytes. When using cat on it I get this:

sjelin.is.cool

What's going on here???

EDIT: FOUND THE PROBLEM.

https://github.com/angular/webdriver-js-extender/issues/14

^ this issue has been raised elsewhere. closing now


BUILD SUCCESSFUL

Total time: 4 mins 31.094 secs
Move apk files...
find "." "-path" "*.apk" "!" "-path" "*-unaligned.apk"
copy ./platforms/android/build/outputs/apk/android-release.apk to /bitrise/deploy/android-release.apk
copy ./node_modules/webdriver-js-extender/built/built/built/built/spec/command_tests/totally_real_apk.apk to /bitrise/deploy/totally_real_apk.apk
  1 attempt failed:
file already exists at: /bitrise/deploy/totally_real_apk.apk
  Retrying...
copy ./node_modules/webdriver-js-extender/built/built/built/spec/command_tests/totally_real_apk.apk to /bitrise/deploy/totally_real_apk20170510065708.apk
  1 attempt failed:
file already exists at: /bitrise/deploy/totally_real_apk.apk
  Retrying...
copy ./node_modules/webdriver-js-extender/built/built/spec/command_tests/totally_real_apk.apk to /bitrise/deploy/totally_real_apk20170510065709.apk
  1 attempt failed:
file already exists at: /bitrise/deploy/totally_real_apk.apk
  Retrying...
copy ./node_modules/webdriver-js-extender/built/spec/command_tests/totally_real_apk.apk to /bitrise/deploy/totally_real_apk20170510065710.apk
The apk path is now available in the Environment Variable: $BITRISE_APK_PATH (value: /bitrise/deploy/totally_real_apk20170510065710.apk)
Move mapping files...
find "." "-path" "*/mapping.txt" "!" "-path" ""
No mapping file matched the filters
|                                                                              |
+---+---------------------------------------------------------------+----------+
| ✓ | gradle-runner@1.5.6                                           | 280 sec  |
+---+---------------------------------------------------------------+----------+

                                          ▼

+------------------------------------------------------------------------------+
| (6) deploy-to-bitrise-io@1.2.9                                               |
+------------------------------------------------------------------------------+
| id: deploy-to-bitrise-io                                                     |
| version: 1.2.9                                                               |
| collection: https://github.com/bitrise-io/bitrise-steplib.git                |
| toolkit: bash                                                                |
| time: 2017-05-10T06:57:12Z                                                   |
+------------------------------------------------------------------------------+
|                                                                              |

=> Preparing step ...

Don't run Bundler as root. Bundler can ask for sudo if it is needed, and
installing your bundle as root will break this application for all non-root
users on this machine.
Fetching gem metadata from https://rubygems.org/.
Fetching version metadata from https://rubygems.org/.
Using bundler 1.14.6
Installing plist 3.2.0
Installing rubyzip 1.1.7
Installing ipa_analyzer 0.1.0
Bundle complete! 3 Gemfile dependencies, 4 gems now installed.
Gems in the group test were not installed.
Use `bundle show [gemname]` to see where a bundled gem is installed.

=> Running the step ...

========== Configs ==========
 * Build URL: https://www.bitrise.io/build/4d804c79c6912ba3
 * Build's API Token: 042P_uEt9fiEnCBz3GR40A
 * is_compress: false
 * deploy_path: /bitrise/deploy/totally_real_apk20170510065710.apk
 * notify_user_groups: everyone
 * notify_email_list: 
 * is_enable_public_page: true

## Deploying single file

# Deploying apk file: /bitrise/deploy/totally_real_apk20170510065710.apk
--> Analyze the apk
W/zipro   ( 4381): Error opening archive /bitrise/deploy/totally_real_apk20170510065710.apk: Invalid file
ERROR: dump failed because no AndroidManifest.xml found
  (i) apk_info_hsh: {:file_size_bytes=>15, :app_info=>{:app_name=>"", :package_name=>"", :version_code=>"", :version_name=>"", :min_sdk_version=>""}}
--> Create a Build Artifact on Bitrise
 (i) File Size: 0.0 MB
--> Upload the apk
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100    15    0     0  100    15      0     55 --:--:-- --:--:-- --:--:--    55
--> Finish the Artifact creation

## Success
(i) You can find the Artifact on Bitrise, on the [Build's page](https://www.bitrise.io/build/4d804c79c6912ba3)
|                                                                              |
+---+---------------------------------------------------------------+----------+
| ✓ | deploy-to-bitrise-io@1.2.9                                    | 6.35 sec |
+---+---------------------------------------------------------------+----------+

                                          ▼

+------------------------------------------------------------------------------+
| (7) google-play-deploy@1.2.2                                                 |
+------------------------------------------------------------------------------+
| id: google-play-deploy                                                       |
| version: 1.2.2                                                               |
| collection: https://github.com/bitrise-io/bitrise-steplib.git                |
| toolkit: go                                                                  |
| time: 2017-05-10T06:57:19Z                                                   |
+------------------------------------------------------------------------------+
|                                                                              |
INFO[06:57:19] Start installing (golang) with apt-get       
INFO[06:57:19]  * [OK] Step dependency (go) installed, available. 

Configs:
- JSONKeyPath: https://con***3e6
- PackageName: com.streaka.plantguard
- ApkPath: /bitrise/deploy/totally_real_apk20170510065710.apk
- Track: beta
- UserFraction: 0.5
- WhatsnewsDir: 
Deprecated Configs:
- ServiceAccountEmail: 
- P12KeyPath: 
- UntrackBlockingVersions: true

Authenticating
Authenticated client created

Create new edit
 editID: 03027312593099026970

Upload apks
Failed to upload apk, error: googleapi: Error 403: Invalid APK file., apkInvalidFile
|                                                                              |
+---+---------------------------------------------------------------+----------+
| x | google-play-deploy@1.2.2 (exit code: 1)                       | 6.14 sec |
+---+---------------------------------------------------------------+----------+
| Issue tracker: https://github.com/bitrise-io/steps-google-play-deploy/issues |
| Source: https://github.com/bitrise-io/steps-google-play-deploy               |
+---+---------------------------------------------------------------+----------+

+------------------------------------------------------------------------------+
|                               bitrise summary                                |
+---+---------------------------------------------------------------+----------+
|   | title                                                         | time (s) |
+---+---------------------------------------------------------------+----------+
| ✓ | activate-ssh-key@3.1.1                                        | 3.21 sec |
+---+---------------------------------------------------------------+----------+
| ✓ | git-clone@3.4.3                                               | 43 sec   |
+---+---------------------------------------------------------------+----------+
| ✓ | Do anything with Script step                                  | 1.07 sec |
+---+---------------------------------------------------------------+----------+
| ✓ | Build Tools Install                                           | 131 sec  |
+---+---------------------------------------------------------------+----------+
| ✓ | file-downloader@0.9.1                                         | 1.89 sec |
+---+---------------------------------------------------------------+----------+
| ✓ | gradle-runner@1.5.6                                           | 280 sec  |
+---+---------------------------------------------------------------+----------+
| ✓ | deploy-to-bitrise-io@1.2.9                                    | 6.35 sec |
+---+---------------------------------------------------------------+----------+
| x | google-play-deploy@1.2.2 (exit code: 1)                       | 6.14 sec |
+---+---------------------------------------------------------------+----------+
| Issue tracker: https://github.com/bitrise-io/steps-google-play-deploy/issues |
| Source: https://github.com/bitrise-io/steps-google-play-deploy               |
+---+---------------------------------------------------------------+----------+
| Total runtime: 472 sec                                                       |
+------------------------------------------------------------------------------+

INFO[06:57:24]                                              
INFO[06:57:24] Submitting anonymized usage information...   
INFO[06:57:24] For more information visit:                  
INFO[06:57:24] https://github.com/bitrise-core/bitrise-plugins-analytics/blob/master/README.md 
viktorbenei commented 7 years ago

EDIT: FOUND THE PROBLEM.

Ahh, so problem solved, right? @jpike88

Sorry for not getting back faster. We did check your reports and we thought that it most likely caused by something in your code/project config (not in your bitrise config or step), but as a policy we don't say that it's an issue somewhere in your code unless we can reasonably prove it first.