Maven 1.x CruiseControl Plugin

Add support for <buildstatus>

Details

  • Type: Improvement Improvement
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.4
  • Fix Version/s: 1.5
  • Component/s: None
  • Labels:
    None
  • Environment:
    maven 1.0-rc4, maven-cruisecontrol-plugin-1.3, CruiseControl 2.1.6
  • Number of attachments :
    0

Description

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>

Activity

Hide
David Eric Pugh added a comment -

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

Show
David Eric Pugh added a comment - I went ahead and implemented this for you. Can you verify the fix? I'll then move to cutting 1.5.
Hide
Paul Spencer added a comment -

Looks good. Thank you.

Show
Paul Spencer added a comment - Looks good. Thank you.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: