Hi,
I have a build in CCNet (or even outside using Nant). The label task seems to give an odd message:
The Folder <myFolder> could not be labeled A label with the same name has already been applied to {0}, which prohibits this object from being labeled the same.
Looks like there's a replacement that's supposed to be done, but its not getting done. This is the label Nant task. I was hoping it'd be fixed with the 3.5 release, but no joy..
Andy
Label task error message
Moderator: SourceGear
Yes; the build is failing because its trying to add the label, which already exists. That's fine, but the Nant label task's output shouldn't have an {0} place holder in it.. (I suspect thats where the label attempted should go).jclausius wrote:There are no reports of this type of problem that we are aware of.
If you do a "Show Labels" within the Vault GUI, does the Label already exist?
I've had this problem since I started using Vault, just never posted it before.
I get the message with this task:jclausius wrote:Vault would have logged a message of "A label with the same name has already been applied to <FOLDER>, which prohibits this object from being labeled the same."
My guess is the message is generated from the originator of your label (CC.Net or NAnt).
<vaultlabel
comment="Build ${CCNetLabel} @ ${datetime::now()}"
labelstring="${CCNetLabel}"
url="${BuildServer}" username="${BuildUser}"
password="${BuildPwd}"
path="${RepositorySolutionRoot}"
repository="${BuildRepository}"
/>
I don't think Nant is adding anything to the output in this case; it doesn't really know what the 'vaultlabel' task is.. i just calls it..