Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Converting CruiseControl to Hudson

I am currently writing a Perl script that will convert CruiseControl config.xml files to a Hudson config.xml for each project. However I am stuck at one key part: How do I make it so the sub modules of a project also get the goals from there CC config?

I can do the root module fine, and set up the configurations fine as well. I just need a way to configure Hudson to add the sub modules, copy the goals from a file, import the goals, then run the build for the module. The way I am thinking right now is that I could either:

  1. Make a Perl script that runs before the build or
  2. Make a groovy script that integrates with Hudson and have it manually do these steps.

Side Note: If anyone is interested about using this script I would be willing to publish it once it is done.

like image 518
Colin Wood Avatar asked Nov 14 '22 06:11

Colin Wood


1 Answers

So I beleive I figured out my own problem. Essentially what I am going to do is have every module set to clean, I will add a text file with what module has what goals then add the goals section to the config.xml.Then reload hudson from the disk so it can add the goals then re run the job with the proper goals for the sub job. I did this via perl.

like image 104
Colin Wood Avatar answered Jan 26 '23 00:01

Colin Wood