-
ivy的settings文件在【Manage Hudson->Configure System->Global properties->Environment variables->Add】中设置;
-
build.xml中需要的变量可以在项目的Configure->Build->Advanced->Properties】中添加, 例如: ivy.settings.path=d:/workspace/ivysettings.xml ;
-
一个job的源代码在该job的【Configure->Source Code Management->Subversion->Modules->Repository URL】中指定, 例如: http://10.0.2.59:8118/svn/godu/Development-Area/3-SCL/Trunk/GAPI ;
-
发送Email在【Manage Hudson->Configure System->E-mail Notification】中指定, 【SMTP server】指定邮件服务器的IP地址(可用 ping boco.com.cn 获取), 【System Admin E-mail Address】写上发件人Email地址, 【Advanced->Use SMTP Authentication】下写上发件人的用户名和密码;
-
如果Hudson服务器设置了安全管理,匿名用户无法管理, 可以将hudson根目录下的config.xml中的
<authorizationStrategy .../>
改为<authorizationStrategy class="hudson.security.AuthorizationStrategy$Unsecured"/>
2013-05-09更新:
-
安装为Windows服务:用java -jar jenkins.war启动后在管理界面中点击“Install as a windows service”, 安装完毕后在控制面板的服务里可以看到一个名为"jenkins"的系统服务,启动类型为“自动”, 这样每次启动机器后jenkins服务就自动启动了, 参考 https://wiki.jenkins-ci.org/display/JENKINS/Installing+Jenkins+as+a+Windows+service
-
修改界面语言:Jenkins使用浏览器的语言作为它的界面语言, 所以如果使用IE的话可以通过更改iE的语言配置达到更改Jenkins界面语言的目的: IE菜单->Internet选项->常规->外观->语言,将英语放在语言列表的第一位。
-
配置邮件帐号: [Jenkins Location -> System Admin e-mail address]中填写管理员email地址,此地址将作为BVT的发送地址; [邮件通知 -> SMTP服务器] 中写邮件服务器的ip地址;勾选“使用SMTP认证”,“用户名”和“密码”填写管理员帐号的用户名和密码; 验证方法:勾选“通过发送测试邮件测试配置”,填写"Test e-mail recipient"地址,然后点击"Test configuration";
-
隐藏Disable状态的Project
新建一个View,在[Job Filters -> Status Filter]中选择"Enabled jobs only";
- Trouble Shooting
如果报找不到Gradle.bat错误,尝试将浏览器默认语言改为中文,Jenkins全局配置的GRADLE_HOME的路径名后面加反斜杠;
如果Gradle构建成功,提取测试结果失败,在项目配置里,Gradle Task中写两个任务:clean和build;
install jenkins on Ubuntu
install jenkins FAILED following these instructions on jenkins official site:
wget -q -O - http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add -
sudo sh -c 'echo deb http://pkg.jenkins-ci.org/debian binary/ > /etc/apt/sources.list.d/jenkins.list'
sudo apt-get update
sudo apt-get install jenkins
So download jenkins.war manually and start it as following:
nohup java -jar jenkins.war 1>jenkins.log 2>jenkins.log &
reinstall jenkins plugin failed for some reason, so if you upgrade jenkins, you have to:
-
stop jenkins service
-
remove $HOME/.jenkins folder;
-
download new jenkins.war;
-
restart jenkins service.
some other dir:
/etc/logrotate.d/jenkins /etc/jenkins /etc/default/jenkins /usr/share/jenkins /var/lib/jenkins /var/log/jenkins /opt/jenkins /run/jenkins /root/.jenkins
remove jenkins and install new one give some good advices to remove Jenkins completely.
基于Jenkins 1.5。