Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 324837
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T09:09:39+00:00 2026-05-12T09:09:39+00:00

We have a CruiseControl.NET Server 1.5.0.4401 running. One project uses an external compiler, which

  • 0

We have a CruiseControl.NET Server 1.5.0.4401 running. One project uses an external compiler, which is included via exec-task. This compiler is configured to write its output into a textfile that is located in the artifact directory. The filename is keil_Revision-x.txt (x is the revision number) whereas the configuration for this file looks like %ccnetartifactdirectory%\keil_%ccnetlabel%.txt.

We want this output file to be attached to the e-mail report CC is sending for each build. The configuration of the email-publisher is (a bit shortened) the following:

<email from="buildmaster@xxx.yy" mailhost="zzz" mailport="25" includeDetails="TRUE" useSSL="FALSE">
    <users>
        <!-- Here are some users -->
    </users>
    <groups>
        <!-- Here are some groups -->
    </groups>
    <converters>
        <!-- LDAP converter-->
    </converters>
    <modifierNotificationTypes>
        <!-- Several notification types -->
    </modifierNotificationTypes>
    <subjectSettings>
        <!-- Here are some subject settings -->        
    </subjectSettings>
    <attachments>
        <file>${CCNetArtifactDirectory}\keil_${CCNetLabel}.txt</file>
    </attachments>
</email>

The only problem is, that the files are not attached. The debug output on the cruise control console doesn’t contain any error message. The artifact directory contains all files, only they are not attached. Where is the failure?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T09:09:39+00:00Added an answer on May 12, 2026 at 9:09 am

    Are Integration Properties like CCNetLabel available inside CCNET configuration? I venture to doubt that. Up to CCNET 1.4.4 SP1 they weren’t. So please check the attachment node in Your project configuration to see if CCNetLabel has been resolved properly.

    You need to define preprocessor constants that can replace the integration properties like this:

    <cruisecontrol xmlns:cb="urn:ccnet.config.builder">
        <cb:define project.artifact.dir="C:\foodir" />
        <project name="foo">
            <artifactDirectory>$(project.artifact.dir)</artifactDirectory>
            ...
            <publishers>
                ...
                <email
                    from="buildmaster@xxx.yy"
                    mailhost="zzz"
                    mailport="25"
                    includeDetails="TRUE"
                    useSSL="FALSE">
                    ....
                    <attachments>
                        <file>$(project.artifact.dir)\keil.txt</file>
                    </attachments>
                </email>
            </publishers>
        </project>
    </cruisecontrol>
    

    You need to instruct your compiler to write the results to a file whose name is predictable by CCNET configuration. Since configuration has no access to the label it must not be part of the filename. If you want to keep the result files from being overwritten by each build, add an executable task that triggers a simple batch file whose purpose is to copy %ccnetartifactdirectory%\keil.txt to %ccnetartifactdirectory%\keil_%ccnetlabel%.txt.

    Otherwise the answer to this question might help here as well.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a build server running CruiseControl.NET. It works well for the 7 projects
I have a website project that I want to build using CruiseControl.net. On one
We have a CruiseControl server running various AntUnit, MbUnit and NUnit tests via Ant.
I have CruiseControl.NET Version 1.4 set up on my development server. Whenever a developer
I have CruiseControl.net running Visual Studio (2005/2008 - using devenv.com) as we need to
We have a job which runs every morning in CruiseControl.net to import a datafile
I'm running several projects in CruiseControl.NET. Many of them have no build errors and
We have tests using WatiN that we want to run on our CruiseControl.NET server.
I have just set up cruise control.net on our build server, and I am
I currently have CruiseControl.NET set up with SVN to automatically grab the code source

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.