jenkins build 报错: mvn: command not found 解决
jenkins build 报错:
[hello-world-freestyle] $ /bin/sh -xe /root/softs/apache-tomcat-9.0.35/temp/jenkins5323864766359302328.sh + mvn clean package /root/softs/apache-tomcat-9.0.35/temp/jenkins5323864766359302328.sh: line 2: mvn: command not found Build step ‘Execute shell‘ marked build as failure Finished: FAILURE1、查询系统环境变量: echo $PATH
[_0_8_centos ~]# echo $PATH
/root/jenkins_home/downloads/apache-maven-3.6.3/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin
2. 在jenkins中设置环境变量:
【系统管理】->【系统设置】->【全局属性】->【环境变量】
相关推荐
达观数据 2020-11-11
汪康 2020-10-30
ppppfly 2020-10-24
synshitou 2020-10-21
programmeryu 2020-09-24
Topbeyond 2020-08-21
lrcoop 2020-08-18
young依然 2020-08-17
oden 2020-08-16
lrcoop 2020-08-15
yserver 2020-08-15
王永迪 2020-08-15
pursuemylife 2020-08-14
pandaphinex 2020-08-09
leonranri 2020-07-26
CloasGao 2020-07-21
zccheu 2020-07-18