0
votes

We have a mapped workspace where each project is having multiple references to other projects. On the same workspace, we perform our whole product build nightly.

When we enable gated check-in for individual projects, its creating a new workspace and trying to build. As the other projects are not mapped as part of gated check-in, its failing to build.

Do we have any way to fetch shelveset created during Gated check-in in the tfs build, so that we can use it to unshelve in our local mapped workspace?

Any help/lead is appreciated.

1
Map a workspace containing the required references. If you need to split your application into multiple discrete units that can be built and referenced separately, use NuGet packages.Daniel Mann
Hello, I have updated my answer. Please check whether it can help you.Jane Ma-MSFT

1 Answers

1
votes

Do we have any way to fetch shelveset created during Gated check-in in the tfs build

You can use the REST API Shelvesets - Get.

GET https://{instance}/{collection}/_apis/tfvc/shelvesets?shelvesetId={shelvesetId}&api-version=5.0

If you don't know the shelvesetId you need, you can use the REST API Shelvesets - List to get all your shelvesets.

GET https://{instance}/{collection}/_apis/tfvc/shelvesets?api-version=5.0