Are you in the loop? Keep up with the latest by making sure you're subscribed to Community Announcements. Just click Watch and select Articles.

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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Artifact fails to copy into original folder

I tried to make an artifact of my node_modules. The artifact has all the files in it but after extracting, it fails on copying the same file every time. I think the windows runner thinks it's a directory instead of a file. I've watched the folders while the step was running and the artifact directory had all the files but the copy stops part way through with this error. It's always this file every time

 

Copy-Item : Could not find a part of the path 'E:\atlassian\atlassian-bitbucket-pipelines-runner\temp\82885005-9ced-516
5-a84d-a1b4d3b8ddab\1657559674402\artifact\2f585524-6ec1-49b0-b5ee-01b9e600ebe3\Trader.UI\node_modules\@babel\plugin-bu
gfix-safari-id-destructuring-collision-in-function-expression\LICENSE'.
At E:\atlassian\atlassian-bitbucket-pipelines-runner\temp\82885005-9ced-5165-a84d-a1b4d3b8ddab\1657559674402\tmp\setupA
rtifacts17884213904454524061.ps1:3 char:1
+ Copy-Item -Path "E:\atlassian\atlassian-bitbucket-pipelines-runner\bi ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : WriteError: (LICENSE:FileInfo) [Copy-Item], DirectoryNotFoundException
+ FullyQualifiedErrorId : CopyDirectoryInfoItemIOError,Microsoft.PowerShell.Commands.CopyItemCommand

1 answer

0 votes
Mark C
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Jul 14, 2022

Hi @Patrick Bye,

Thanks for reaching out to the community.

I've confirmed this with our Bitbucket Pipelines team and this appears to be a limitation with the Windows maximum path length.
You can check this link for more information: Windows - Maximum Path Length Limitation

I've also gone ahead and created a public bug ticket for this that can be located through this link so that we can track it. - https://jira.atlassian.com/browse/BCLOUD-22022

As a workaround, you can try:

Hope it helps and do let me know how it goes.

Regards,
Mark C

Suggest an answer

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

Atlassian Community Events