Skip to content
Failed

Console Output

Started by user Mike Dawson
Running as SYSTEM
[EnvInject] - Loading node environment variables.
[EnvInject] - Preparing an environment for the build.
[EnvInject] - Keeping Jenkins system variables.
[EnvInject] - Keeping Jenkins build variables.
[EnvInject] - Injecting as environment variables the properties content 
ANDROID_SDK_ROOT=/var/lib/jenkins/Android/Sdk
KEYSTORE=/var/lib/jenkins/javakey/android-release-keystore.properties
ANDROID_HOME=/var/lib/jenkins/Android/Sdk

[EnvInject] - Variables injected successfully.
[EnvInject] - Injecting contributions.
Building in workspace /home/jenkins/.jenkins/workspace/RESPECT-Primary
ERROR: Not all environment variables could be successfully injected. Check for similarly-named environment variables.
The recommended git tool is: NONE
No credentials specified
ERROR: Not all environment variables could be successfully injected. Check for similarly-named environment variables.
 > git rev-parse --resolve-git-dir /home/jenkins/.jenkins/workspace/RESPECT-Primary/.git # timeout=10
Fetching changes from the remote Git repository
 > git config remote.origin.url https://github.com/UstadMobile/Respect.git # timeout=10
Fetching upstream changes from https://github.com/UstadMobile/Respect.git
 > git --version # timeout=10
 > git --version # 'git version 2.43.0'
 > git fetch --tags --force --progress -- https://github.com/UstadMobile/Respect.git +refs/heads/*:refs/remotes/origin/* # timeout=10
 > git rev-parse refs/remotes/origin/main^{commit} # timeout=10
ERROR: Not all environment variables could be successfully injected. Check for similarly-named environment variables.
Checking out Revision e8ac8dd5e387128ef9d3ecf6e8e048f7a08a28f6 (refs/remotes/origin/main)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f e8ac8dd5e387128ef9d3ecf6e8e048f7a08a28f6 # timeout=10
Commit message: "Add respectLaunchVersion parameter to URL"
 > git rev-list --no-walk 327f5fdbcba0ffe6bbe46f60eade9746946bb0b1 # timeout=10
ERROR: Not all environment variables could be successfully injected. Check for similarly-named environment variables.
[Gradle] - Launching build.
ERROR: Not all environment variables could be successfully injected. Check for similarly-named environment variables.
[RESPECT-Primary] $ /home/jenkins/.jenkins/workspace/RESPECT-Primary/gradlew clean build
Starting a Gradle Daemon (subsequent builds will be faster)
Type-safe project accessors is an incubating feature.

> Configure project :respect-app-compose
Keystore exists: true

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':respect-app-compose:compileDebugJavaWithJavac'.
> Several environment variables and/or system properties contain different paths to the SDK.
  Please correct and use only one way to inject the SDK location.
  
  ANDROID_HOME: /home/jenkins/Android/Sdk
  ANDROID_SDK_ROOT: /var/lib/jenkins/Android/Sdk
  
  It is recommended to use ANDROID_HOME as other methods are deprecated

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.

BUILD FAILED in 6s
Build step 'Invoke Gradle script' changed build result to FAILURE
Build step 'Invoke Gradle script' marked build as failure
ERROR: Not all environment variables could be successfully injected. Check for similarly-named environment variables.
Archiving artifacts
[Slack Notifications] found #10 as previous completed, non-aborted build
[Slack Notifications] will send OnEveryFailureNotification because build matches and user preferences allow it
ERROR: Not all environment variables could be successfully injected. Check for similarly-named environment variables.
Finished: FAILURE