Hi Marcus.

I assume you've already figured out how to copy builds to a known
location using a task in the publishers block.
http://localhost/ccnet/doc/CCNET/Build%20Publisher.html. Make sure you
investigate the cleanUpMethod so you can limit how many builds go in
this location.

This isn't going to describe how to create a link directly to a single
file, but more how you might configure the website to allow you to
browse the build outputs.

I would do it by adding a location to the website where files can be
downloaded (two ways to do that), and then publishing a link within
your project.

1. Add a location to the website.

1.a. - Use physical directories
Add a physical directory to your server under the CCNET application
named Builds, then create folder for each project you have.
Usually the CCNET web-application is pointing to C:\Program Files
(x86)\CruiseControl.NET\webdashboard, so you will create the folder
named builds at C:\Program Files (x86)\CruiseControl.NET\webdashboard
\builds, and then create folders under that directory for each
project. Enable Directory browsing on those folders.

1.b. - Use virtual directories for each build
Add a physical directory to your server under the CCNET application
named Builds, then create folder for each project you have.
Usually the CCNET web-application is pointing to C:\Program Files
(x86)\CruiseControl.NET\webdashboard, so you will create the folder
named builds at C:\Program Files (x86)\CruiseControl.NET\webdashboard
\builds. This step diverges from 1.a. where you will not create
physical locations for the build output. create a virtual directory in
IIS Manager under the builds directory to point at wherever you're
currently creating your build outputs. Enable directory browsing on
those folders.

2. Add the link via the externalLinks element, which lives inside the
project element.
<externalLinks>
         <externalLink name="My Project Builds" url="http://
myCCNetServer/CCNet/Builds/MyProjectName/" />
</externalLinks>

If you wanted to make that fancier, you could always add some kind of
simple aspx page to that directory that displays files by date/time in
descending order or something.

Best wishes -
Jeremy


On Oct 5, 8:09 am, KD8ITX <[email protected]> wrote:
> I have setup CruiseControl.net to compile several .NET projects, the
> end result of the build is a .zip file with the files I need to push
> to production, the zip is named using the build label.
>
> How would I put a link that I could click from each build to download
> this file?  Or is there a different way I should be accomplishing this
> task?  I would like to be able to do everything from the web interface
> so I don't have to give access to the filesystem on the build server
> to download them from there.  I also know that I will need to have
> these files available in a web accessible directory for it to work.
>
> Thank You.
> --
> Marcus

Reply via email to