hello, I am trying to build ant task using gitlab ci file. runner is installed on kubernetes. following are details. I see JAVA_HOME is already set.
Please let me know if I missing anything here. thanks
base image: timbru31/java-node - this node and java image .
when I try to build ant tasks it is failing with following error . I am able to build this project on my local machine without any issue where JAVA and ant already installed on my local.
Unable to locate tools.jar. Expected to find it in /usr/local/openjdk-11/lib/tools.jar
Buildfile: build.xml does not exist!
below is build job in my gitlab-ci file.
- export JAVA_HOME="/usr/local/openjdk-11"
- echo “building xyz project”
- echo $JAVA_HOME
- cd project/xyz
- npm install
- apt-get update
- apt-get -y install openjdk-8-jdk
- apt-get -y install ant
- ant my_task