ubuntu 14.04 - GitLab CI: Unable to set JAVA_HOME -
i running git-lab server ubuntu 14 trying compile build on git-lab ci reasons keep getting same error on , on again:
error: java_home set invalid directory: /usr/lib/jvm/java-7-openjdk-amd64/jre please set java_home variable in environment match location of java installation.
no matter how change path of java_home same results. have 4 folders inside jvm folder:
java-8-oracle java-7-openjdk-amd64 java-1.7.0-openjdk-amd64 default-java
but again no matter directory set path same result.
here .gitlab-ci.yml
file:
before_script: - export java_home=/usr/lib/jvm/java-7-openjdk-amd64/jre - export android_home="/opt/android-sdk" - chmod +x gradlew dev: script: - ./gradlew assembledebug
what cause of error?
try change .gitlab-ci.yml
this:
before_script: - export android_home="/opt/android-sdk" - export java_home="/usr/lib/jvm/java-1.7.0-openjdk-amd64" - chmod +x gradlew dev: script: - ./gradlew assembledebug
Comments
Post a Comment