Hi All,
I need help with below issue …i’m getting in jenkins one of job i’m running
Gradle version :- 4.5 i’m using in server
java version :- 1.8 and 13 both using in jenkins and also in server and for below task i’m using java8 version to run but when i execute the job in jenkins it showing java13 in logs and java13 version i’m for other job in jenkins
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine java version <span>from</span> <span>'13'</span>.
As you can see below jenkins job showing logs is using jdk-13 it should use java1.8
Even i have use different gradle version also 6.7 in that case also it showing same error
[Netbanking] $ <span>/bin/</span>sh -xe <span>/tmp/</span>jenkins1529297276379477004.sh
+ echo <span>/opt/</span>jdk/jdk-<span>13</span>
<span>/opt/</span>jdk/jdk-<span>13</span> ===> because of <span>this</span> showing my job is failing it should show java1.<span>8</span>
+ which java
<span>/opt/</span>jdk<span>/jdk1.8.0_291/</span>bin/java
+ java -version
java version <span>"1.8.0_291"</span>
Java(TM) SE <span>Runtime</span> Environment (build <span>1.8</span>.<span>0</span>_291-b10)
Java HotSpot(TM) <span>64</span>-Bit Server VM (build <span>25.291</span>-b10, mixed mode)
Below is the details in server i<span>'m using
Two path showing in server
ls /opt/jdk/jdk1.8.0_291
ls /opt/java/openjdk/
Below is the path of java which using in jenkins
root@bfdbda8e4489:/# ls /opt/jdk
jdk-13 jdk-15 jdk1.8.0_291
Different version using for different jenkins jobs</span>