Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Getting error CreateProcess error=206, The filename or extension is too long when tried to build gra

When i am trying to build this on windows bamboo agent it keeps on failing with below message.

 

 

when i put my code in same directory near to java8 jdk and execute the gradle build from cmd  it works fine.

so it looks like the path that we are using in the bamboo is too long to process on windows agent.

 

bamboo build failing

"C:\dev\java8\jdk\bin\java.exe" (in directory "C:\bamboo3\xml-data\build-dir\TARGET-PROJECT-JOB1")

 

manually working

"C:\dev\java8\jdk\bin\java.exe" (in directory "C:\dev\java8\my_code_repo\")

 

 

 

 

Error message

 

 



error    11-Oct-2018 03:28:20        at net.rubygrapefruit.platform.internal.WrapperProcessLauncher.start(WrapperProcessLauncher.java:36)
error    11-Oct-2018 03:28:20        at org.gradle.process.internal.ExecHandleRunner.run(ExecHandleRunner.java:67)
error    11-Oct-2018 03:28:20        ... 4 more
error    11-Oct-2018 03:28:20    Caused by: java.io.IOException: Cannot run program "C:\dev\java8\jdk\bin\java.exe" (in directory "C:\bamboo3\xml-data\build-dir\TARGET-PROJECT-JOB1"): CreateProcess error=206, The filename or extension is too long
error    11-Oct-2018 03:28:20        at net.rubygrapefruit.platform.internal.DefaultProcessLauncher.start(DefaultProcessLauncher.java:25)
error    11-Oct-2018 03:28:20        ... 7 more
error    11-Oct-2018 03:28:20    Caused by: java.io.IOException: CreateProcess error=206, The filename or extension is too long
error    11-Oct-2018 03:28:20        ... 8 more
error    11-Oct-2018 03:28:20    
error    11-Oct-2018 03:28:20    
error    11-Oct-2018 03:28:20    * Get more help at https://help.gradle.org
error    11-Oct-2018 03:28:20    
build    11-Oct-2018 03:28:20    6 actionable tasks: 6 executed
error    11-Oct-2018 03:28:20    BUILD FAILED in 2m 23s
build    11-Oct-2018 03:28:21    Stopped 1 worker daemon(s).

3 answers

1 accepted

0 votes
Answer accepted

I was able to correct this problem with below steps: -

 

Login to the  windows bamboo agent.

cd C:\bamboo3\bamboo3

open the bamboo-agent.cfg.xml file in editor

 

change the

 

<buildWorkingDirectory>C:\bamboo3\bamboo3\xml-data\build-dir</buildWorkingDirectory>

to

<buildWorkingDirectory>E:\</buildWorkingDirectory>

and restart the agent services from services.

so after this problem of "CreateProcess error=206, The filename or extension is too long" got resolved.

 

Since i tried to check this manually on windows agent and it was failing in for any location apart from C:\ drive or E:\ drive . so for safer side i selected the E:\ drive.

You can try using LongPathTool software. It will help you
resolve your specific problems regarding File name too long.
Thank you.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bamboo

Bamboo 101 Video

G’day Community! As we gear up to introduce Bamboo Data Center to the world, we wanted to make sure that we shared a bit more about Bamboo, the product. Our team has put together an overview video ...

190 views 4 6
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you