VSO Ranger
VSO Ranger

Reputation: 156

Visual Studio Team Services Build with label not found

I have a label in my project When I queue a build, and put the label in the "Source Version" field, prefixed with a L, it always comes up the following error:

    500: TF14064: Could not find label mylabel@$/.

Anyone been able to get this functionality to work?

Upvotes: 2

Views: 992

Answers (3)

Abhimanyu
Abhimanyu

Reputation: 59

I was facing the same issue for TFS build and the error says like: “Cannot find the current label tfs build”.

How to resolve the issue:

  1. Go to Configuration of your TFS build
  2. Make the Label sources as true
  3. Build the solution now and it's building fine.

Please reach out if any issues.

Upvotes: 0

Will Lennon - MSFT
Will Lennon - MSFT

Reputation: 41

Most likely the problem is that your label is not collection-scoped and therefore you need to provide a scope with your label. If you created your label in Visual Studio, the scope is probably project-scoped. So for example if your label is 'mylabel' and your project name is 'myproject' then in the Source Version field you should enter this:

Lmylabel@$/myproject

Here are a couple links that help explain labels and scopes if you are interested. https://msdn.microsoft.com/en-us/library/9ew32kd1(v=vs.100).aspx http://teamfoundation.blogspot.com/2008/03/label-scope-revealed.html

I'll update the Microsoft Connect Page with this information too.

Upvotes: 1

Eddie Chen - MSFT
Eddie Chen - MSFT

Reputation: 29976

I can reproduce this issue and have help you submit a feedback on Microsoft Connect Page, you can track the status here: https://connect.microsoft.com/VisualStudio/feedback/details/2345698/500-tf14064-could-not-find-label-error-occurs-when-queue-a-build-with-specified-label

Upvotes: 0

Related Questions