E-mail to the wrong address

Steven Pont <[email protected]> Fri, 13 Jan 2012 10:52:22 -0500
Newsgroups gmane.comp.java.cruise-control.user
Message-ID <CAJs_GSgCrB5ZT=w5ZYmM4Q8kRm+LcCoeb_c_2RkP=9jDOGKebg@mail.gmail.com>
CruiseControl 2.8.4 running on Windows 7 Ultimate

I'm relatively new to CruiseControl, so there's a good chance I messed up
the configuration.  I only want to build a project when it is requested by
someone.  I have a text file on a network location.  If a user wants to
start a build, they modify that text file which contains the new version
number to use and an e-mail address to send a notification to when the
build is complete.

The builds get triggered properly and marked with the right version when
"version.txt" is modified (by using the "modificationset" plugin), but the
e-mail is not always sent to the user whose address is in the text file.
 Sometimes it goes to that user; sometimes it might go to whoever's address
was in the file for the previous build.  The address that is supposed to be
used is "${build.notify}", which is the property read from the text file.
 Is it possible that this property is not being refreshed every time a
project is built?

The text file driving this, version.txt, looks like this:
    build.version=2.8.9.40
    [email protected]

This is a stripped-down version of my config.xml file:

<cruisecontrol>
  <!-- Common Properties -->
  <property name="build.ver.dir"
value="\\MyNetwork\Engineering\Software\Build" />
  <property name="project.ver.dir" value="${build.ver.dir}\${project.name}"
/>
  <property name="projectdir" value="C:\dev\dev_${project.name}" />

  <!-- Common Plugin Parameters -->
  <plugin name="project"
          buildafterfailed="false" />
  <plugin name="propertyfilelabelincrementer"
          propertyfile="${project.ver.dir}\version.txt"
          propertyname="build.version"
          preBuildIncrementer="true" />
  <plugin name="modificationset"
          quietperiod="0">
          <filesystem folder="${project.ver.dir}\version.txt" />
  </plugin>
  <plugin name="htmlemail"
          mailhost="MYMAILSERVER-2010"
          mailport="25"
          returnaddress="[email protected]"
          subjectprefix="AutoBuild: "
          skipusers="true" />

  <!-- ............................................... -->
  <project name="MyProject_Main">
    <property name="product.name" value="MyProject" />
    <property file="${build.ver.dir}\${project.name}\version.txt" />

    <propertyfilelabelincrementer />
    <modificationset />

    <schedule interval="300">
      <exec command="${projectdir}\PX\Release\${product.name}\Build All.bat"
            args="NOERASE ${label} ${project.name}"
            workingdir="${projectdir}\PX\Release\${product.name}"
            errorstr="build failed" />
    </schedule>

    <publishers>
      <htmlemail>
        <always address="${build.notify}" />
      </htmlemail>
    </publishers>
  </project>
</cruisecontrol>

------------------------------------------------------------------------------
RSA(R) Conference 2012
Mar 27 - Feb 2
Save $400 by Jan. 27
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev2

_______________________________________________
Cruisecontrol-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user