microsoft / google-play-vsts-extension

Visual Studio Team Services (VSTS) extension for performing continuous delivery to the Google Play store from your automated CI builds
Other
84 stars 57 forks source link

Error signing debug variant bundle to publish android app by Azure pipeline #442

Closed meltanan closed 4 months ago

meltanan commented 4 months ago

Hey

I have my Azure pipeline building (release variant/environment), signing, and releasing app to production with no issues.

When I try to build the app for debug/beta variant/environment I get an error when it tries to sign the bundle. I'm using the same YML file, the only thing I changed in YML file ( from release to debug) is "tasks: ':app:bundleRelease'" ---> "tasks: ':app:bundleDebug'". and I was getting this error:

jarsigner: unable to sign jar: java.util.zip.ZipException: invalid entry compressed size (expected 7521 but got 7106 bytes).

I made sure there is no existing aab file and I did remove //signingConfig signingConfigs.debug

I'm not sure what I'm missing, or if I'm using the script correctly or building the bundle correctly using the task.

I attached screen shot of my YML file and the error page.

I appreciate any help please. Screenshot 2024-05-28 at 10 21 17 AM Screenshot 2024-05-28 at 10 27 55 AM

meltanan commented 4 months ago

FYI, if I modify the signing script to: instead of SHA225withRSA TO SHA1withRSA and from SHA-225 To SHA1 signing is successful but I get an error when it tries to deploy that there is an issue with signature. And yes this is also for debug variant only!!! If I do it for release there is no issue. Screenshot 2024-05-29 at 5 57 51 PM

KonstantinTyukalov commented 4 months ago

Hi @meltanan, what task do you use from this repository? Could you share the full repro yaml and all repro steps? thanks

meltanan commented 4 months ago

Hi @KonstantinTyukalov

Download secure file task

Generate bundle for debug task

Sign the generated bundle task

Copy files task

Publish build task

I shared the full yml file by two screen shots

Screenshot 2024-05-30 at 6 35 27 PM

Screenshot 2024-05-30 at 6 35 49 PM

KonstantinTyukalov commented 4 months ago

@meltanan, as I see you do not use tasks from the Google Play extension. This repository is focused only on the Google Play extension tasks. In this case, please open a ticket in the tasks repo to have the right eyes on it. I'm closing this ticket, please let me know if you have any concerns.