How to recover a remote assembly definition

We are using the TFS 2015 โ€œnew, scriptable build systemโ€, and suddenly one of our build definitions disappears. It seems that he retired himself.

Is there a way to restore or restore an assembly definition?

Where are the assembly definitions (these JSON files) stored?

+7
tfs2015
source share
2 answers

If you are at the premiere and you just chose to remove from the GUI ... run this in the TFS database for your specific identifier:

update Build.tbl_Definition set Deleted = 0 --was 1 where DefinitionId = <your build ID goes here> 

You will lose the history of your construction without any additional work, I did not find time to delve into it, but it can also be useful.

NOTE. . You will also lose the credentials stored as build parameters that you will need to recreate. You might be better off re-creating the new assembly using this as a template to avoid other unknowns.

+8
source share

TFS build definitions are not version control elements. . So now it is impossible to restore the definitions of the deleted assembly.

A function request was programmed into uservoice: to provide a way to determine version build versions . According to a response from PM, this is still in the process.

In the new build system coming with TFS 2015, you can see a complete history of changes in the definition of your build. A feature that is currently lacking the ability to undo or rollback to a previous revision.

We expect rollbacks to be deployed to our service in the next few months.

Chris Patterson

Program manager

In addition, assembly definitions are stored in the TFS database.

+2
source share

All Articles