jessehouwing / azure-pipelines-tfvc-tasks

Azure Pipelines tasks for Team Foundation Version Control
https://marketplace.visualstudio.com/items?itemName=jessehouwing.jessehouwing-vsts-tfvc-tasks
MIT License
28 stars 17 forks source link

Gated Check-in fails while checking in gated changes while other tasks succeed #98

Closed Prateek1584990 closed 4 years ago

Prateek1584990 commented 4 years ago

Hi, While trying to check-in the code the build fails at 'check in gated changes' step with the error: The shelveset _Build_55;Build\54765f06-3a38-4a0a-9813-79a9da79a93f could not be found for check-in. Could not find any resolution for this. Please find the logs attached. Please help in resolving this ASAP. Let us know if any other information may be required.https://developercommunity.visualstudio.com/content/problem/901131/gated-check-in-fails-while-checking-in-gated-chang.html 116302-logs-57.zip

jessehouwing commented 4 years ago

Please help in resolving this ASAP.

I'm sorry, but this is an open-source volunteer maintained task. I can't be compelled to act immediately.


That said, welcome to the TFVC tasks project, I'd love to help out if I can, but I'd need more information:

Unfortunately, I can't access the attachment on the developer community, can you attach it here? If possible, can you run the following bit of powershell? With your Project collection URI of course.

$collection="https://dev.azure.com/jessehouwing-dev/"
([xml] $( tf vc shelvesets /collection:$collection /format:xml /owner:*)) | %{$_.Shelvesets.Shelveset} | ?{[string]$_.name -like "Gated*" -and $_.owner -like "Build*"}
jessehouwing commented 4 years ago

But what it looks like, is that the build isn't running a Gated build, but a manual or CI build instead.

Prateek1584990 commented 4 years ago

116302-logs-57.zip Hi Jesse, thank you for your response. You might have missed, however I had attached the build logs in my initial request itself. Attaching them again.

TFS/Azure DevOps version - latest Agent version - running on Azure pipelines (Current agent version: '2.164.6')

jessehouwing commented 4 years ago

I don't see the task being executed at all in this phase. Can you share the actual build definition?

Prateek1584990 commented 4 years ago

image

jessehouwing commented 4 years ago

That's not my check-in gated changes task. Sorry, I'm going to have to send you back to Microsoft.