Label task error message

This forum is now locked, since Gold Support is no longer offered.

Moderator: SourceGear

Locked
ajj3085
Posts: 228
Joined: Thu Feb 16, 2006 11:39 am

Label task error message

Post by ajj3085 » Fri Jul 21, 2006 1:06 pm

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

jclausius
Posts: 3706
Joined: Tue Dec 16, 2003 1:17 pm
Location: SourceGear
Contact:

Post by jclausius » Fri Jul 21, 2006 1:27 pm

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?
Jeff Clausius
SourceGear

ajj3085
Posts: 228
Joined: Thu Feb 16, 2006 11:39 am

Post by ajj3085 » Fri Jul 21, 2006 1:41 pm

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?
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).

I've had this problem since I started using Vault, just never posted it before.

jclausius
Posts: 3706
Joined: Tue Dec 16, 2003 1:17 pm
Location: SourceGear
Contact:

Post by jclausius » Fri Jul 21, 2006 2:11 pm

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).
Jeff Clausius
SourceGear

ajj3085
Posts: 228
Joined: Thu Feb 16, 2006 11:39 am

Post by ajj3085 » Fri Jul 21, 2006 2:27 pm

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).
I get the message with this task:

<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..

jclausius
Posts: 3706
Joined: Tue Dec 16, 2003 1:17 pm
Location: SourceGear
Contact:

Post by jclausius » Fri Jul 21, 2006 2:52 pm

This problem must be in the Vault NAnt Task, not Vault itself.

I'll inform the Vault NAnt developers of the invalid error message.
Jeff Clausius
SourceGear

Locked