Workspace folder names exceed character limit on Windows

Article ID:360031022751
1 minute readKnowledge base

Issue

When running Pipeline Multibranch projects on a Jenkins controller or agent on Windows, you may see this or similar errors:

"The path is too long after being fully qualified. Make sure the full path is less than 260 characters and the directory name is less than 248 characters."

Pipeline Multibranch jobs need to create a unique path for each workspace, and to do this Jenkins used to generate a hash to give a random value for each one. This would often exceed Windows’s filesystem character limit. A fix for this issue was added to the Branch API plugin.

Resolution

Update the Branch API plugin to version 2.0.21 or newer.

References