简体   繁体   中英

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?

在此处输入图片说明

转到 Jenkins -> 管理 Jenkins -> 配置系统 -> 全局属性 选中“环境变量”框并添加 JAVA_HOME 路径

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM