After a checkout step is executed with a repository that has the "Merge with Shelved Changes' enabled and the running build is cancelled, then the unshelved changelist will remain in the workspace on the build machine. This causes subsequent builds to fail as soon as it is triggered. It appears that in this situation, the build process attempts to delete the workspace and recreate it but because the pending changelists exist, it fails.
To work around the issue the user who owns the shelved changelist has to remote desktop into the build machine and log into perforce in order to revert the pending changelist.
Description
After a checkout step is executed with a repository that has the "Merge with Shelved Changes' enabled and the running build is cancelled, then the unshelved changelist will remain in the workspace on the build machine. This causes subsequent builds to fail as soon as it is triggered. It appears that in this situation, the build process attempts to delete the workspace and recreate it but because the pending changelists exist, it fails.
To work around the issue the user who owns the shelved changelist has to remote desktop into the build machine and log into perforce in order to revert the pending changelist.