当前位置:网站首页>[CruiseControl]Build Result JSP
[CruiseControl]Build Result JSP
2022-07-27 22:05:00 【51CTO】
一 Build Result JSP
Build Result JSP被设计用来呈现CruiseControl的build loop的结果。页面的左边是关于Cruisecontrol是否正在build你的project,同时也提供先前build的链接。页面的右边是build的结果,包括编译错误,测试结果,从上次build后所修改的文件的列表。
Build Result JSP 如下图:
![[CruiseControl]Build Result JSP_html](/img/80/11c2b539c217ecd6ba55668d3e71e9.png)
二 Build Result JSP如何工作
JSP使用自定义的tag来处理大部分过程。这使得code和content分离,开发人员只需要修改code不必关心page的设计,设计人员可以集中精力在page的布局上不必知道任何Java code。所有的字体和颜色都使用css文件来控制,以至于所有的样式都可以被容易地集中地配置。
JSP右边的build detail部分是对CruiseControl build loop的xml log使用xsl转化后生成的html。 JSP左边的部分是由CruiseControl的log目录下的log文件的列表生成的html。JSP根据一定的命名规范来区分log所属的project。JSP通过build loop开始和结束时生成特定的text文件来决定当前那个build正在运行。
三 Build Result JSP的配置
1)build 参数(从源代码安装时)
我们知道build Result JSP页面需要build loop的结果来生成,所以如果手动从源代码生成JSP时,需要指定参数: user.log.dir, user.build.status.file, 和 cruise.build.artifacts.dir。
2)系统属性
系统属性被用来在CruiseControl进程和Report application间传递命令行参数,如下属性:ccname,cruisecontrol.jmxport,cruisecontrol.jmxhost,cruisecontrol.rmiport。
3)配置web.xml
JSP reporting程序使用context参数和servlet初始化参数来配置和自定义。这些参数都可以直接在web.xml中修改。
context参数:
cacheRoot 指定目录作为xsl转化的缓存,web context必须对此目录有写权限,如果没有指定 ,缓存会被保存在logdir的子目录called_cache。但是binary安装不指定此值。logDir 指定cruisecontrol的log目录。如果是在单project模式下,log将直接在此目录下。如果是多project模式,将为每个project建立自己的子目录。默认值是build参数user.log.dir,但是对于binary安装时为logs。
singleProject 指定是否cruisecontrol实例只处理一个project。默认为false。
currentBuildStatusFile 指定currentbuildstatuslistener产生的当前build状态文件的名字,且该文件位于projects的log目录。默认地该值为build参数user.build.status.file所指定的值。但是对于binary安装此值为status.txt。
fileServlet.welcomeFiles 当servlet显示浏览的目录时使用的index页面,可以指定空格分隔的多个index页面,默认为index.htm,index.html。
cruisecontrol.jmxhost 指定JMX HttpAdaptor的host。
cruisecontrol.jmxport 指定JMX HttpAdaptor的port。
xslt.* 任何以xslt开始的参数都被传递到xsl stylesheets当做xslt参数。
servlet参数:
rootDir 指定build 的binary/master存储的绝对路径。如果没有指定logdir将被使用。默认值为build参数,cruise.build.artifacts.dir。但是binary安装时为artifacts。
4)xslt参数
一些xsl stylesheets能通过xslt参数来配置。这些参数作为context参数来传递,但是有xslt前缀。例如参数xslt.viewcvs.url来配置viewcvs.url。
pmd.warning.threshold pmd优先级高于threshod将被认为是警告且在build result页面上报告数量。
viewcvs.url 指定viewcvs的url,此url将被cvstagdiff.xsl, checkstyle-details.xsl and pmd-details.xsl使用,默认不指定。
cvstagdiff.success.show 指定当build成功时,是否viewcvs的不同报告应该被显示。默认只是显示broken build的修改报告。
checkstyle.hide.warnings 指定是否checkstyle错误或所有的checkstyle错误和警告应该被显示在build results页面。设置为true,表示不显示警告,默认为显示所有的错误和警告。这个默认是不指定的。
完!
作者: iTech
微信公众号: cicdops
github: https://github.com/cicdops/cicdops
![[CruiseControl]Build Result JSP_xml_02](/img/c6/daead474a64a9a3c86dd140c097be0.jpg)
边栏推荐
- Leetcode 415. string addition and 43. string multiplication
- 公司7月来了个软件测试工程师,一副毛头小子的样儿,哪想到是新一代卷王...
- Impact of privilege changes on existing connections
- Solve maze problem recursively
- Read cmake in one article
- Jmeter 如何解决乱码问题?
- numpy没有unsqueeze函数
- 网络设备硬核技术内幕 防火墙与安全网关篇 (十二) 零接触办公的奥秘 下
- Firefox 103, the Firefox browser, has been released to improve performance under high refresh rate displays
- A design scheme of Wal
猜你喜欢

Analysis and solution of errors in symbols uploading when baget manages packages

ADB path cannot contain 2 spaces remote could n't create file: is a directory

蓝桥杯单片机第十一届国赛程序设计试题

MATLAB | 那些你不得不知道的MATLAB小技巧(一)

MATLAB | 那些你不得不知道的MATLAB小技巧(四)

Smart convenience store takes you to unlock the future technology shopping experience

In the third week of July, the list of feigua data station B up main ranking list was released!

英特尔发布开源AI参考套件

Matlab | those matlab tips you have to know (4)

MATLAB | 那些你不得不知道的MATLAB小技巧(三)
随机推荐
Buildforge materials
火狐浏览器 Firefox 103 发布,提升高刷新率显示器下的性能
自动推理的逻辑09–自动定理证明
JVM memory model
Code review tool
图片提取文字很神奇?试试三步实现OCR!
Matlab | those matlab tips you have to know (4)
【Meetup预告】OpenMLDB+OneFlow:链接特征工程到模型训练,加速机器学习模型开发
基于Unittest的ddt+yaml实现数据驱动机制
leetcode:1997. 访问完所有房间的第一天【跳跃dp】
The influence of head zeroing and tail zeroing on FFT output
See how well-known enterprises use Web3 to reshape their industries
公司7月来了个软件测试工程师,一副毛头小子的样儿,哪想到是新一代卷王...
In the third week of July, the list of feigua data station B up main ranking list was released!
头补零和尾补零对FFT输出结果的影响
MATLAB如何将k线图设置为经典红绿配色?
Camera and lidar calibration: gazebo simulation livox_ camera_ lidar_ Calibration ---- external parameter calibration calculation and result verification
Current situation of semiconductor testing equipment Market: the localization rate is still less than 10%!
The program design questions of the 11th national competition of Bluebridge cup single chip microcomputer
网络设备硬核技术内幕 防火墙与安全网关篇 (八) 虚拟化神器 (中)