Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to configure CruiseControl for two separate builds?

I'm trying to configure CruiseControl to build the project on every modification of source code and every day at 3:00am. This is what I've done so far in project.xml (and it doesn't work, daily builds are not done):

...
<schedule interval="120">
  <maven2 … />
  <maven2 … time="0300"/>
</schedule>
...

What am I doing wrong?

like image 634
yegor256 Avatar asked Sep 14 '10 16:09

yegor256


1 Answers

I usally use cc.net, but when I understand the documentation correctly you have two options:

  • Use 2 projects
  • Set the requireModifications attribute to false (which is not exactly what you want)

What happens with your configuration is the following: The "modification" build will be run throughout the day and thus at 03:00 am CruiseControl cannot detect any modifications (at least I would assume so). As there are no modifications the daily build is not run.

From the documentation:

... it is usually not a good idea to mix time builds and multiple builds in the same project as the multiple builds will "eat" all the changes before they can be detected by the time based builds.

like image 89
Stefan Egli Avatar answered Nov 02 '22 05:11

Stefan Egli