- 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
- CloudBees Jenkins Platform - Client Master (CJP-CM)
- CloudBees Core on traditional platforms - Client Master (CORE-CM)
- TFS Plugin
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 master, or to delete the workspace at the end of the build using something like a
post build step or the workspace cleanup plugin