Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jenkins cannot find JAVA_HOME automatically

I have java 1.8 installed and environment variable set on my windows 10 laptop. But when I run my maven project through Jenkins pipeline, Jenkins cannot find JAVA_HOME variable by itself. Would anyone guide me so resolve this issue, please?

enter image description here

like image 706
meticulous_guy Avatar asked Mar 03 '17 01:03

meticulous_guy


1 Answers

Go to Jenkins -> Manage Jenkins -> Configure System -> Global properties Check the box 'Environment variables' and add the JAVA_HOME path

like image 128
Sergej Lopatkin Avatar answered Oct 10 '22 20:10

Sergej Lopatkin