“The shelveset ‘xyz’ could not be found for check-in” – Error using Azure hosted builds for gated check-ins with D365

MarijanFinance & Operations4 years ago8 Views

In my latest project, we wanted to set up the Azure hosted build pipeline also as a gated check in for our D365 – TFVC repository.
Setting up the pipeline itself is quite easy, especially when you follow the DevOps ALM guide / bible from Adriá Ariste: MSDyn365 & Azure DevOps ALM – ariste.info
To set the gated check in up, we then only need to activate the option in the trigger section from the build definition.

But after checking in the first changes we received a ‘build failed’ – email. The code / the build itself was fine, but afterwards the shelveset could not be found to be checked in:

After some research on this, I found an Azure DevOps setting, which is defaulted to yes in newer DevOps organizations. When it’s enabled the build pipeline has no permission to check in the shelveset. So all we needed to do was to disable this setting. The setting is present in the organization and in the project settings.

We disabled it in the project settings and were good to go. The gated check in now works with the hosted build pipeline.

Here is the link to the Azure DevOps documentation regarding this issue: Build TFVC repositories – Azure Pipelines | Microsoft Docs

Original Post https://d365fostuff.wordpress.com/2021/03/08/the-shelveset-xxx-could-not-be-found-for-check-in-error-using-azure-hosted-builds-for-gated-check-ins/

0 Votes: 0 Upvotes, 0 Downvotes (0 Points)

Leave a reply

Join Us
  • X Network2.1K
  • LinkedIn3.8k
  • Bluesky0.5K
Support The Site
Events
March 2025
MTWTFSS
      1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31       
« Feb   Apr »
Follow
Sign In/Sign Up Sidebar Search
Popular Now
Loading

Signing-in 3 seconds...

Signing-up 3 seconds...