Workspace folder names exceed character limit on Windows

Issue

When running Pipeline Multibranch projects on a Jenkins master 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.

Environment

Resolution

Update the Branch API plugin to version 2.0.21 or newer.

References

JENKINS-34564

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.