meticulous_guy
meticulous_guy

Reputation: 133

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

Upvotes: 6

Views: 16202

Answers (1)

Sergej Lopatkin
Sergej Lopatkin

Reputation: 1107

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

Upvotes: 10

Related Questions