jenkins 經常使用設置

1.framework總項目關閉下級構建,只是更新maven依賴

Enable triggering of downstream projectsjava

2.下級關閉上級依賴,上級構建的時候,不構建下級項目

Build whenever a SNAPSHOT dependency is builtweb

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/profiletomcat

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

或者
[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=20less

相關文章
相關標籤/搜索