Answered TFS 2010 (SP1) Retention Policy with Unchecked Labels missing

  • Thursday, August 02, 2012 2:38 PM
     
     

    Hi all,

    We came across an issue (I believe this is somehow related to Retention Policy) that "some" labels for builds marked "Retain Indefinitely" disappears from SourceControl...

    So I have BuildDefinition which have in Retention settings "Keep Last 10 builds" and Delete all except "Symbols and Labels" in result I can see:

    1) A lot of Labels in source control (around 50)

    2) I can see in logs message that label was created

    3) I can see that "previous" builds before this marked "Retain Indefinitely" was not removed yet (by retention)

    But label does not exist in SourceControl...

    Is there any table where I can see "work done by Retention Policy"? Can I enable logging for it somehow?

    Thanks.

All Replies

  • Friday, August 03, 2012 7:22 AM
    Moderator
     
     

    Hi Oleg, 

    Thanks for your post.

    It seems that there’s no a table that we can find who deleted the label or when it be deleted.

    Can you ensure this label didn’t be deleted manually, or this label hasn’t be deleted before you mark this build  as “Retain Indefinitely”?

    If you can reproduce this scenario on another build definition, please share your detailed steps here, I will follow your detailed steps to reproduce this scenario on my build definition.

    If you have any further research of this issue, please share your experience here.   


    John Qiao [MSFT]
    MSDN Community Support | Feedback to us

  • Monday, August 06, 2012 6:51 AM
    Moderator
     
     

    Hi Oleg, 

    If misunderstood anything, please describe your question in more detail and we will be able to provide the better responses.


    John Qiao [MSFT]
    MSDN Community Support | Feedback to us

  • Monday, August 06, 2012 8:19 AM
     
     Answered

    Hi John,

    thank you for quick response.

    I was able to repro issue and seems like it's related to our build process, basically we have "Build Templates" and "Promotion Templates" (which used to "take built assemblies and deploy it somewhere)... in Promotion there are assignment of "Label" from Build Template and in result when we remove "Build Details" for "Promotion" - it does remove Label which was created in Build Template.

    So not an issue.

    Thank you.

    • Marked As Answer by Oleg Semenchuk Monday, August 06, 2012 8:19 AM
    •