Issue Details (XML | Word | Printable)

Key: MPCRUISECONTROL-7
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: Paul Spencer
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Maven 1.x CruiseControl Plugin

Add support for <buildstatus>

Created: 06/Jul/04 10:23 AM   Updated: 24/Jul/04 06:18 AM   Resolved: 23/Jul/04 04:39 AM
Return to search
Component/s: None
Affects Version/s: 1.4
Fix Version/s: 1.5

Time Tracking:
Not Specified

Environment: maven 1.0-rc4, maven-cruisecontrol-plugin-1.3, CruiseControl 2.1.6


 Description  « Hide

CruiseControl will build a project if another project successfully builds. This is controlled by the <buildstatus> tag in cruisecontrol.xml. This functionality allows a project to be build when one of it's depend jars is built, even though the project has not changed.

Suggested implementation:
1) Add the property "maven.cruisecontrol.triggerProjects". This property contains a list of cruisecontrol projects that will trigger the current project to build.

2) In cruisecontrol.jsl, generate a <buildstatus> tag for each item in the property list.

<buildstatus logdir="${maven.cruisecontrol.logs.dir}/${item}">

Example:
maven.cruisecontrol.triggerProjects=proj_a, proj_b

output file cruisecontrol.xml:
<cruisecontrol>
...
<project name="proj_c">
...
<modificationset>
<buildstatus logdir="c:\cc\cc-logs\proj_a">
<buildstatus logdir="c:\cc\cc-logs\proj_b">
..
</modificationset>
..
<log dir="c:\cc\cc-logs\proj_c">
..
</project>
<cruisecontrol>



David Eric Pugh added a comment - 23/Jul/04 04:39 AM

I went ahead and implemented this for you. Can you verify the fix? I'll then move to cutting 1.5.


Paul Spencer added a comment - 24/Jul/04 06:18 AM

Looks good. Thank you.