Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

build an apk (v1 signature) using pipeline

Victor Hernandez August 16, 2021

Hello I already have the steps to build an apk using bitbucket pipelines, the problem I got is, I don't know how to specify how to sign it as V1, it seems the default is V2, here my yml file

 

image: androidsdk/android-30

pipelines:
branches:
'base':
- step:
name: Create Keystores
script:
- mkdir keys # create new directory
- echo $DEBUG_KEYSTORE_FILE_BASE64 | base64 -d > keys/$DEBUG_KEYSTORE_FILE # decode base64 then use DEBUG_KEYSTORE_FILE as file name defined in repository variable
artifacts:
- keys/** # keep these artifacts for subsequent pipeline steps

- step:
name: Build & Deploy (Internal)
caches: # caching speed up subsequent execution https://support.atlassian.com/bitbucket-cloud/docs/cache-dependencies/
- gradle
script:
# publish the aab file to the internal testing channel
# the plugin publishes to the internal testing track by default
- chmod +x gradlew
- "./gradlew -PDEBUG_KEYSTORE_FILE=../keys/$DEBUG_KEYSTORE_FILE
-PDEBUG_KEYSTORE_PASSWORD=$DEBUG_PASSWORD
-PDEBUG_KEYSTORE_KEY_ALIAS=$DEBUG_KEY_ALIAS
-PDEBUG_KEYSTORE_KEY_PASSWORD=$DEBUG_KEY_PASSWORD
assembleDebug"
artifacts:
- app/build/outputs/** # artifacts are files that are produced by a step https://support.atlassian.com/bitbucket-cloud/docs/use-artifacts-in-steps/

  Where and how can I specify the V1 jar signature?

Thank you!!

1 answer

1 accepted

0 votes
Answer accepted
Victor Hernandez August 18, 2021

It's working now, I added the signing configs on my android build.gradle, that was the problem. 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events