Script to increment build number fails #2864
-
If you are looking for help, please confirm the following...
Which mobile framework are you using?React Native Steps to reproduceAll the build steps work fine, but the publishing step fails. This is because the build number already exists.
The variable UPDATED_BUILD_NUMBER is assigned the value BUILD_NUMBER, because getting the latest build number fails. I am not sure why this happens because I have all the credentials set up fine, the build is also generated fine. What could I be missing? Expected resultsCorrect latest build number value is fetched from PlayStore Actual resultsFallback build number value is used Build id (optional)674ea9be04baa359747fab4a |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hello @MbuthiaWaKihara,
More details about this can also be found here |
Beta Was this translation helpful? Give feedback.
Hello @MbuthiaWaKihara,
Please can you confirm that the value of
GCLOUD_SERVICE_ACCOUNT_CREDENTIALS
is in plain text and not base64 encoded? If you would like to encode the value, then you will need to decode it before thegoogle-play get-latest-build-number
step usingMore details about this can also be found here