1.framework总项目关闭下级构建,只是更新maven依赖

Enable triggering of downstream projects

2.下级关闭上级依赖,上级构建的时候,不构建下级项目

Build whenever a SNAPSHOT dependency is built

3.jenkins tomcat启动方式

vi /etc/profile
export JENKINS_HOME=/jk 单独挂载一块磁盘出来
[root@localhost bin]# cat setenv.sh
export CATALINA_OPTS="$CATALINA_OPTS -Xms4096m"
export CATALINA_OPTS="$CATALINA_OPTS -Xmx4096m"
export CATALINA_OPTS="$CATALINA_OPTS -XX:MaxPermSize=512m"
[root@localhost bin]# pwd
/usr/local/jenkins-tomcat/bin
cat startup.sh
#!/bin/sh
source /etc/profile

内存10G
[root@localhost bin]# sysctl -p
vm.swappiness = 0

或者
[root@localhost jenkins]# ps -ef|grep java
root 1526 1 0 02:17 ? 00:04:20 /etc/alternatives/java -Dcom.sun.akuma.Daemon=daemonized -Djava.awt.headless=true -DJENKINS_HOME=/var/lib/jenkins -jar /usr/lib/jenkins/jenkins.war --logfile=/var/log/jenkins/jenkins.log --webroot=/var/cache/jenkins/war --daemon --httpPort=8080 --debug=5 --handlerCountMax=100 --handlerCountMaxIdle=20