views:

82

answers:

3

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?

A: 

I was using ScheduleTrigger for CruiseControl.net.

Some time ago I've migrated CI server from CC.net to TeamCity - do take a look at it (they have free version as well). It's much better and easier to configure (say goodbye to those huge unmanageable XML config files;-)

Jakub Konecki
@Jakub Is it possible to use this plugin with CruiseControl 2.8.3? Btw, those huge XML files are a good thing for me, since I can configure CC automatically, without any user interface.
Vincenzo
@Vincenzo - I don't think you can use it in CC (it's in CC.net). As a side note, I also once thought that having automatic cc config files generator is a nice thing. In TeamCity you just don't need that much configuration (they have build templates, etc)
Jakub Konecki
@Jakub Thanks for your comment, but I can't migrate to CC.net (because of the platform), and I'm not ready to migrate to TeamCity. So, I'm looking for a solution for CruiseControl 2.8.3.
Vincenzo
+1  A: 

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.

Stefan Egli
@Stefan Is it possible to accomplish what I'm trying to do?
Vincenzo
I think so. Define two projects: One for the nightly build and one for the "modification" builds.
Stefan Egli
+1  A: 

As I understand there is no possibility in CruiseControl to do this :(

Vincenzo

related questions