ianalyse
文件大小: unknow
源码售价: 5 个金币 积分规则     积分充值
资源说明:the tool to analyse cruisecontrol build



ianalyse - Take a closer look at your project



	

Configure Ianalyse

Create configuration files

The confguration files need to be created under directory:

/Users/twer/Workspace/ianalyse/analyse/tests/configs
The configuration file should end with .cfg as file extension, each file stands for one project in Ianalyse. You should be able to find a template file named ianalyse.sample under the directory above. You can easily create your first project by renaming your template like this:
$ cd /Users/twer/Workspace/ianalyse/analyse/tests/configs
$ mv ianalyse.sample nightly-build.cfg

Change the settings in configuration file

There are only two sections in the file: [Basic] and [CSV]

Sections: [Basic]

The only option here is logdir, which should point to the directory contains all the CruiseControl logs. for example, if you have directory tree like this:

/var/logs
|____connectfour
| |____log20051209122103Lbuild.0.xml
| |____log20091011161151Lbuild.1.xml
| |____log20091011161557Lbuild.2.xml
| |____log20091011165733Lbuild.3.xml
| |____log20091011170008Lbuild.4.xml
| |____log20091011172237Lbuild.5.xml
| |____status.txt	
you should define the logdir option like this:
[Basic]
logdir: /var/logs/connectfour
Another option under [Basic] section is builds, which means lastest N builds need be be analyzed, the default value is 30.
[Basic]
logdir: /var/logs/connectfour
builds: 50

Sections: [CSV]

The options defined here are used to tell ianalyse which value need to be exported to CSV file from log.xml, the key is column name, the value is XPATH, Let's see you have many log files like this, and you want to export projectname, build time, buildate to CSV.

<cruisecontrol>
  <info>
    <property name="projectname" value="connectfour4" />

    <property name="lastbuild" value="20091011201149" />
    <property name="lastsuccessfulbuild" value="20091011201149" />
    <property name="builddate" value="2009-10-13T14:03:24" />
    <property name="cctimestamp" value="20091013220324" />
    <property name="label" value="build.18" />
    <property name="interval" value="300" />

    <property name="lastbuildsuccessful" value="true" />
    <property name="logdir" value="/Users/twer/Desktop/cruisecontrol-bin-2.8.2/logs/connectfour4" />
    <property name="logfile" value="log20091013220324.xml" />
  </info>
  <build time="1 minute(s) 2 second(s)" error="exec error">
    <target name="exec">

      <task name="echa">
        <message priority="error"/>
      </task>
    </target>
  </build>
</cruisecontrol>	

You can define options under your [CSV] like this:
[CSV]
project name: //property/[@name='projectname']/@value
buid time: //build/@time
start time: //property[@name='builddate']/@value	
Click the export button on ianalyse, you will get a CSV file :
[CSV]
project name, buid time,start time
connectfour4, 1 minute(s) 2 second(s), 2009-10-13T14:03:24

FAQ

I saw MISSING REPORTS on the screen, what does it mean, how to resolve it?

This means there is no report generate for you, after you got everything configured properly, you can click the "generate this report NOW!" button to create reports.


本源码包内暂不包含可直接显示的源代码文件,请下载源码包。