全部博文(150)
分类: 敏捷开发
2016-02-26 17:39:59
jenkins的配置篇—系统配置
一、简要说明
jenkins安装完成后,先进系统管理—系统配置,对相关的参数进行配置,这些参数影响到jenkins全局应用
二、本例jenkins集成了项目说明
git:源代码管理
JDK:服务端代码构建使用的jdk信息
Sonar:代码分析和检查
Maven:构建系统
Repo:代码版本管理工具
Reviewboard:代码审查工具
Ftp:代码构建完成会上传到特定ftp服务器备存
SSH:jenkins master和slave及build服务器通讯
三、具体配置及样例
1、执行者数量
2 #按照核数或者cpu颗数进行设置
2、JDK
JDK安装配置 ,填写
别名:jdk1.7.0._71
JAVA_HOME:/usr/java/jdk1.7.0_71
3、GIT
name:git_1.7.1 #名字是自定义的
Path to Git executable :git
4、Groovy
name:system
勾选自动安装
5、Sonar Runner安装
Name:Sonar Runner 2.3
SONAR_RUNNER_HOME:/opt/tiros-ci/sonar/sonar-runner-2.3
6、Maven
Name:Maven 3.1.1
MAVEN_HOME:/opt/tiros-ci/maven/apache-maven-3.1.1
7、Jenkins Location
Jenkins URL:
系统管理员邮箱:jenkins@xiaocheben.com
8、Repo
Repo command line executable: repo
9、CVS
Default Compression Level:3
Private Key Location:/opt/tiros-ci/jenkins/.ssh/id_rsa
Private Key Password:somePassword #自定义
Know Hosts Location:/opt/tiros-ci/jenkins/.ssh/known_hosts
10、Extended E-mail Notification
SMTP server:smtp.exmail.qq.com
System Admin E-mail Address:jenkins@xiaocheben.com
Default Subject:$PROJECT_NAME - Build # $BUILD_NUMBER - $BUILD_STATUS!
Default Content:$PROJECT_NAME - Build # $BUILD_NUMBER - $BUILD_STATUS:
download war:
/pub/$PROJECT_NAME/$BUILD_NUMBER($BUILD_ID)
11、Sonar
Name:Sonar 4.0
Server URL:
Sonar account login:
Sonar account password: somePassword
Database login:sonar
Database password:somePassword
12、邮件通知
SMTP服务器:smtp.exmail.qq.com
勾选使用smtp认证
用户名:jenkins@xiaocheben.com
密码:somePassword
SMTP端口:25
Reply-To Address:jenkins@xiaocheben.com
字符集:UTF-8
13、Publish over FTP
Name:ftpSver_236
Hostname:192.168.1.236
Username:ftp
Password:somePassword
Remote Directory:pub
14、Publish over SSH
SSH Servers
Name:build
Hostname:192.168.1.200
Username:builder
勾选 Use password authentication, or use a defferent key
Passphrase / Password:somePassword
Port:2221
Timeout(ms):300000
15、reviewboard
URL:
Username:test
Password:somePassword