loe*_*chg 2 grails continuous-integration hudson tomcat6 jenkins
您建议在Grails + Tomcat(+ Ubuntu)环境中持续集成什么工具?詹金斯?哈德森?别的什么?我不是在寻找任何复杂的东西......简单就可以了.
我刚刚在Jenkins中配置了一个grails工作(在debian上运行).我真的不能说其他CI服务器..我也知道apache连续体但多年没用过它.
对于Debian/Ubuntu,你可以简单地添加
deb http://pkg.jenkins-ci.org/debian binary/
Run Code Online (Sandbox Code Playgroud)
在你的/etc/apt/sources.list中,然后通过apt-get update && apt-get install jenkins安装jenkins
创建用户jenkins.
您可能希望更改/ etc/default/jenkins中的默认配置以使用另一个前缀(即将其设置为jenkins,因此url将类似于http:// localhost:port/jenkins)port或JENKINS_HOME.
默认的jenkins主页是/ var/lib/jenkins.
您可以通过init.d脚本启动/停止/重启jenkins(即/etc/init.d/jenkins restart).
在jenkins内部,您可以安装"Jenkins Grails插件"并添加一个新的"自由式软件项目",然后在其配置(部分构建)中执行"添加构建步骤 - >使用Grails构建".
然后对于"目标",您可以输入类似"clean test-app -unit"的内容(添加适合的目标).
对于"发布Junit结果报告",请使用YOUR_PROJECT/target/test-reports/TESTS-TestSuites.xml之类的路径
另外不要忘记为Jenkins安装"Chuck Norris插件"......它是有史以来最重要的插件!
如果您还想在apache站点配置中使用apache2 + Jenkins包含这样的内容:
Include /etc/jenkins/apache2.conf
Run Code Online (Sandbox Code Playgroud)
并使用以下内容创建文件/etc/jenkins/apache2.conf:
ProxyPass /jenkins http://localhost:8080/jenkins
ProxyPassReverse /jenkins http://localhost:8080/jenkins
ProxyPassReverse /jenkins http://example.org/jenkins
ProxyPreserveHost On
ProxyRequests Off
ProxyPassReverseCookiePath /jenkins /jenkins
<Proxy http://localhost:8080/jenkins*>
Order deny,allow
Allow from all
</Proxy>
Run Code Online (Sandbox Code Playgroud)
您必须激活代理模块:
a2enmod proxy proxy_http
Run Code Online (Sandbox Code Playgroud)
然后重启apache2:
/etc/init.d/apache2 restart
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
4193 次 |
| 最近记录: |