Hello everyone,
I’m running a Bitbucket pipeline on a self-hosted Windows runner and facing an issue where the path length exceeds the 260-character limit. The error I’m getting is:
The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.
One part of the path causing this issue is:
C:\atlassian-bitbucket-pipelines-runner\temp\3d11a41f-2e60-591a-a062-7bd73203596d\1722928878980
The numeric value (1722928878980) changes every time I start the runner, making it challenging to manage the path length.
Is there a way to shorten or control the path length in Bitbucket pipelines, especially for dynamically generated paths? How can I prevent this error from occurring?
Any advice would be greatly appreciated!