Hello jenkins

install jenkins

Download jenkins.war, tomcat 8
if install suggested plugins report error like this
“No such plugin: cloudbees-folder”

install cloudbees-folder.hpi first

install plugins

install Maven Integration, if error then in plugin management
upload plugin package manually.

proxy server

if jenkins server can’t visit internet then use proxy, and have a try again.
https://github.com/adamfisk/LittleProxy
username:user1
password:user2

maven setting

maven can set proxy too, modify setting.xml, add proxy setting

1
2
3
4
5
6
7
8
9
10
11
<proxy>
<id>optional</id>
<active>true</active>
<protocol>http</protocol>
<username>user1</username>
<password>user2</password>
<host>192.168.1.2</host>
<port>8080</port>
<nonProxyHosts>localhost|127.0.0.1</nonProxyHosts>
</proxy>
</proxies>

git setting

save git account in linux server
vim .git-credentials
add http(s)://{username}:{password}@serverAddress
add setting
git config --global credential.helper store

prevent preocess be killed

  1. add command BUILD_ID=DONTKILLME in every shell input
  2. add param -Dhudson.util.ProcessTree.disable=true in java command
  3. add setting JAVA_OPTS="$JAVA_OPTS -Dhudson.util.ProcessTree.disable=true" in catalina.sh

install jenkins

https://blog.csdn.net/utopiaofartoria/article/details/79612754
https://blog.csdn.net/ming19951224/article/details/80958761

jenkins experience

https://www.jianshu.com/p/06d2c7fda227

setting of tools

https://www.cnblogs.com/wkrbky/p/6351243.html
https://www.cnblogs.com/zhuiluoyu/p/7723949.html

global proxy

https://www.cnblogs.com/EasonJim/p/9826681.html

resources

http://ftp.icm.edu.pl/packages/jenkins/plugins
https://mirrors.tuna.tsinghua.edu.cn/jenkins/plugins/