cruisecontrol.netcruisecontrol

CruiseControl with static website?


I maintain a classic asp web application, and I'd like to try to automate some of the merging to and from branches using CruiseControl (CruiseControl.net specifically). But I don't have any use for a build tool. Basically I would want a commit on /trunk to automagically get merged to a bunch of feature branches that would exist as CC projects.

Is this possible/recommended or is there an easier way to do this?

Some parts of the repository do contain VB6 or .NET code, so I would like to be able to automate builds to those parts in the future, but for the time being I would just basically be using it to automate keeping my static website clean.


Solution

  • It is not the normal responsibility of CruiseControl to affect source control, short of tagging commits. You could have another, say release, branch that CruiseControl monitors. The merging can then be done manually to this branch as required - resolving any merge conflicts at point of merge. CruiseControl would then just 'build' these merge commits.

    CruiseControl is a basically a tool for executing commands in a given order based on a trigger. In your case a SourceControlTrigger.

    You can setup CruiseControl to execute msbuild, or not, as required.

    As you are trying to deploy/package a classic asp site, I guess you only need to copy/zip the source files and deploy them to your web server. This can be achieved as so:

    1. Use nant to copy, and zip, your source files, execute it via an nant task
    2. use curl, executed via an exec task to send the zip file via http(s)

    If required you can preceded this with an msbuild task to build your .net projects.