After a failover in my HA instance, jobs using TFS fail

Article ID:360015979351
1 minute readKnowledge base

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