nerlijma
nerlijma

Reputation: 975

how to change collection config "delete source label" in TFS 2015 build definition

I have a Build definition that creates a label on successful build. I want to be able to delete the build, but retain the label.

  1. When I delete the build manually, the label is deleted.
  2. Also when selecting the option "retain indefinitely", the label is deleted when i delete the build manually
  3. I am not able to change the value of "delete source label" in collection level (as there is no checkbox to change). See below.

enter image description here

How can i retain labels and be able to delete builds?

Upvotes: 0

Views: 369

Answers (2)

Eddie Chen - MSFT
Eddie Chen - MSFT

Reputation: 29976

When you delete a vNext build manually, all the information will be deleted as the dialog indicated even though you have disabled "Delete source label" option. enter image description here

There isn't any way to change this for now. You can submit a feature request for this as Cece's suggestion.

However, if you do want this feature for now, try with XMAL build system which allow you to choose what to keep when delete a build: enter image description here

Upvotes: 0

Cece Dong - MSFT
Cece Dong - MSFT

Reputation: 31093

I could reproduce your scenario. Even uncheck the "delete source label" option in Default Retention Policy. When manually delete "retain indefinitely" builds, the label is still deleted.

You can consider submitting a UserVoice at website below:

https://visualstudio.uservoice.com/forums/121579-visual-studio-2015

Upvotes: 1

Related Questions