Renaming artifacts folder - which uses timestamp - with build label

Sreram Balasubramaniyan <[email protected]> Wed, 4 Apr 2012 18:01:04 +0530
Newsgroups gmane.comp.java.cruise-control.user
Message-ID <CABNTSUXRvEktwkM__7R8WjzJmDh8kAFbUMFVYH8NAVWnSV-jMA@mail.gmail.com>
Hello all,

Am Sreram, a new user to Cruise control and thanks for giving such a good
product.

But am trying to put the build output files to a folder created with build
label (say if the build label is 10, am trying to put my output files to
build-10 ) instead of the build timestamp, in vain.

Am trying to rename the build folder created with artifacts by using the
following command.
<publishers>
<onsuccess>
        <artifactspublisher File="($srcfolder)\myfile.jar" Dest="
($destfolder) " />
        </onsuccess>
<onsuccess>
        <execute command="rename ($destfolder)\$(cclastgoodbuildtimestamp)
$(label)" />
      </onsuccess>
</publishers>

The build succeeds, and the created jar file is successfully copied to
my destfolder... But after the copy is complete, while i expect the rename
command to work as desired giving the folder name to be the build number
(say 10), i still see the timestamp folder only. I wanna rename the folder
to say build-10

I even tried giving the folder name instead of determining it with
($cclastgoodbuildtimestamp), but still the same result, leaving me puzzled
whether the command gets executed or not. Can somebody help me?

------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second 
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev

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