简体   繁体   中英

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.

在此处输入图片说明

Update

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

在此处输入图片说明

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.

Sometimes this is due to the Previous build being deleted.

Overriding MSBuild properties - SkipLabel and/or SkipPostBuild should help

Team Foundation Build Properties

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM