Issue
-
I had a failover happen inside of Jenkins and now any jobs which use TFS for their SCM fail with the message
The workspace $WORKSPACE already exists on computer $COMPUTER
Resolution
This problem is being caused by the workspace not being allowed to be shared between 2 computers as mentioned in the TFS documentation.
The way to resolve this issue is to either move the workspace to a non NFS shared directory and have a workspace per HA controller, or to delete the workspace at the end of the build using something like a post
build step or the workspace cleanup plugin
This article is part of our Knowledge Base and is provided for guidance-based purposes only. The solutions or workarounds described here are not officially supported by CloudBees and may not be applicable in all environments. Use at your own discretion, and test changes in a safe environment before applying them to production systems.