Bitrise Build Issue Report template
Description of the issue
I have uploaded a key from the code signing menu of the website together with the respective environment variables for keystore and password. I have used them in the following way in my app gradle:
def keystorePath = System.getenv("BITRISEIO_ANDROID_KEYSTORE_URL")
def keystorePass = System.getenv("BITRISEIO_ANDROID_KEYSTORE_PASSWORD")
def alias = System.getenv("BITRISEIO_ANDROID_KEYSTORE_ALIAS")
def password = System.getenv("BITRISEIO_ANDROID_KEYSTORE_PRIVATE_KEY_PASSWORD")
storeFile file(keystorePath != null ? keystorePath : signingProps["KEY_STORE_FILE_PATH"])
storePassword (keystorePass != null ? keystorePass : signingProps["KEY_STORE_PASSWORD"])
keyAlias (alias != null ? alias : signingProps["KEY_ALIAS"])
keyPassword (password != null ? password : signingProps["KEY_PASSWORD"])
The build fails with the following log:
±-----------------------------------------------------------------------------+
| (4) install-missing-android-tools@2.1.1 |
±-----------------------------------------------------------------------------+
| id: install-missing-android-tools |
| version: 2.1.1 |
| collection: GitHub - bitrise-io/bitrise-steplib: New Bitrise StepLib |
| toolkit: go |
| time: 2018-07-30T02:29:49Z |
±-----------------------------------------------------------------------------+
| |
INFO[02:29:49] Start installing (golang) with apt-get
INFO[02:29:49] * [OK] Step dependency (go) installed, available.
Configs:
- GradlewPath: gradlew
- AndroidHome: /opt/android-sdk-linux
Preparation
Set executable permission for gradlew
Initialize Android SDK
Ensure android licences
Ensure required Android SDK components
Searching for missing SDK components using:
$ ./gradlew âdependenciesâ
Failed to find missing components, retryingâŠ
Searching for missing SDK components using:
$ ./gradlew âdependenciesâ
Failed to find missing components, retryingâŠ
Searching for missing SDK components using:
$ ./gradlew âdependenciesâ
Project evaluation failed including an error in afterEvaluate {}. Run with --stacktrace for details of the afterEvaluate {} error.
FAILURE: Build failed with an exception.
- Where:
Build file â/bitrise/src/app/build.gradleâ line: 55 - What went wrong:
A problem occurred evaluating project â:appâ.
Cannot convert URL âhttps://concrete-userfiles-production.s3.us-west-2.amazonaws.com/project_file_storage_documents/uploads/14170/original/âŠâ to a file.
I have read the following Can't create a release apk with keystore file but does not solve my issue because I do want to use environment variables to get the signing config from rather than removing them from gradle as suggested in the answer to that question.
The issue is not also related to missing android tools because when I replace the environment variables signing config with the ones bundled with the app in the repository I donât get this issue. However, I donât want to expose my signing config inside the repository and this is why I do want to use the environment variables for the signing config.
Environment:
Where did the issue happen?
(4) install-missing-android-tools@2.1.1
(4) install-missing-android-tools@2.1.1
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) : NO
- Does a rebuild without caches help? (You can remove the
Cache:Pull
andCache:Push
steps temporarily to not to use the cache, or you can delete all the caches on theSettings
tab of the app. : 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 ( https://www.bitrise.io/cli )? If no, can it be reproduced with Docker (using the same docker images / environment we use on bitrise.io)? Related guide: Running your build locally in Docker - Bitrise Docs .
Build log
Please copy paste the buildâs bitrise.io URL here (or if the issue happens somewhere else then the full logs), or if you canât share the url / log here then send the url or full log through a private channel (e.g. email - Contact us ), with a link to the related Discuss issue.
Bitrise - Mobile Continuous Integration and Delivery - iOS & Android Build Automation