Reputation: 133
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?
Upvotes: 6
Views: 16202
Reputation: 1107
Go to Jenkins -> Manage Jenkins -> Configure System -> Global properties Check the box 'Environment variables' and add the JAVA_HOME path
Upvotes: 10