Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TFS Build Server stuck after warning "Cannot find the last label"

I setup an automate build on tfs server. I could not get it work because it always stuck after build source code process is completed. The processes after that is copy data from a folder to another folder which also works but it just stuck on step after that. It's like in the picture below.

I have no idea how to fix this since it does not show any error message or gives me any clue. I would like to know how can I fix this problem?

This is a proof of concept C# application. It can compile perfectly fine on my machine and it used to compile on the test server.

enter image description here

Update

After I applied parameters to MSBuild SkipLabel and/or SkipPostBuild the result is like the image below.

enter image description here

like image 502
Anonymous Avatar asked Nov 14 '12 12:11

Anonymous


2 Answers

I experienced the same problem; probably because some builds got deleted along with the label.

I fixed by following the steps here as provided by Andy Geldman for which the last good label is passed into the activity which associates work items and changesets to the build.

like image 193
PJL Avatar answered Nov 15 '22 11:11

PJL


Sometimes this is due to the Previous build being deleted.

Overriding MSBuild properties - SkipLabel and/or SkipPostBuild should help

Team Foundation Build Properties

like image 38
Webplanet TFS Consulting Avatar answered Nov 15 '22 11:11

Webplanet TFS Consulting