#OS …上方添加配置
export JENKINS_HOME=/home/jekins
1
[root@master bin]# vim catalina.sh
export JENKINS_HOME=/opt/k8s/project
OS specific support. $var must be set to either true or false.
cygwin=false
darwin=false
os400=false
hpux=false
case "uname
" in
CYGWIN) cygwin=true;;
Darwin) darwin=true;;
OS400) os400=true;;
HP-UX) hpux=true;;
esac
resolve links - $0 may be a softlink
修改 /etc/profile
在web容器启动之前修改配置
在profile文件内添加配置
export JENKINS_HOME=/opt/k8s/project
使profile文件生效即可
source /etc/profile
然后重启你的tomcat下的war包就可以了
原文:https://blog.51cto.com/14143894/2446796