Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to Shorten Path Length in Bitbucket Pipeline on Windows Runner to Avoid the 260-Character Limit?

Yogesh Kumar August 20, 2024

 

 

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!

1 answer

1 accepted

0 votes
Answer accepted
Patrik S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 23, 2024

Hello @Yogesh Kumar ,

and welcome to the Atlassian Community!

The 260 character limits is actually a limitation on the Windows environment itself. A few workarounds you may want to try are :

I hope that helps! Let us know if you have any questions.

Thank you, @Yogesh Kumar !

Patrik S

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin Site Admin
TAGS
AUG Leaders

Atlassian Community Events