1.1 CruiseControl executes scripts
The process of continuous integration is defined by the default file name config.xml configuration file. Config.xml is determined to the build cycosity, and the configuration of the configuration library state, call the ANT configuration file for build steps. In order to achieve the continuous integration of automation, an ANT package (Wrapper) configuration file should also be prepared by calling the original Ant build script (equivalent to the original Ant script package), add steps for continuously integrated update source code. .
1.1.1 CruiseControl project profile
The CruiseControl project profile describes an integration project, which is defined by the bootstrappers, the ModificationsEt, the Schedule, the Schedule, the Publishers, Plugin Definition Plugin consists. The boot segment is used to set the initialization task related to the continuous integration process, such as updating the specified file in the source code management; the detection modification segment specifies the target source code that needs to be detected, so that there is After the source update, start the subsequent build steps, such as a branch in ClearCase, a directory in a view; the scheduling section is the core part of the continuous integrated process, which determines the build cyclic interval, hibernation time, and describes the build Target, the target usually points to an ANT package configuration file; the logging segment specifies the log records that will provide data to the publishing step; the release segment sets the contents of the build result, such as the E-mail of the specified report. Address, etc. The plug-in definition segment is used to specify the corresponding plugin class for the CruiseControl function.
1.1.2 CRUISEControl configuration file example
Below is an example of a CruiseControl project:
XML Version = "1.0"?>
bootstrappers>
ViewPath = "D: / shared_views / pchl_v1_dev / pchl_components / protocols_api / peripheral" /> modificationSet> schedule> log> CSS = "c: /development_tools/building-utils/cruiseControl-2.1.5/reporting/jsp/css/cruiseControl.css" XSLDIR = "C: /Development_tools/building-utils/cruiseControl-2.1.5/reporting/jsp/xsl"> email> publishers> ClassName = "Net.SourceForge.cruiseControl.BootstrapPers.currentBuildStatusBootstrapper" /> ClassName = "Net.SourceForge.cruiseControl.BootstrapPers.clearcaseBootstrapper" /> ClassName = "Net.SourceForge.cruiseControl.Builders.antbuilder" /> ClassName = "Net.SourceForge.cruiseControl.Pausebuilder" /> ClassName = "Net.SourceForge.cruiseControl.publishers.htmlemailpublisher" /> ClassName = "Net.SourceForge.cruiseControl.Publishers.currentBuildStatuspublisher" /> ClassName = "Net.SourceForge.cruiseControl.labelincrementers.defaultlabelincrementer" /> provject> cruiseControl> 1.1.3 ANT Package (Wrapper) Profile Example Below is an example of an ANT package (WRAPPER) configuration file: XML Version = "1.0"?> target> target> Target> target> target> Description = "Cruise Control Master Build" /> Description = "Cruise Control Clean Build" /> provject> Note The UPDATE target is mainly added in this Ant project configuration file to update all the proj.path = d: / shared_views / pchl_v1_dev / pchl_components / protocols_api / peripheral directory in the Proj.Properties file. 1.1.4 CruiseControl Example CruiseControl executes an example in the command line: