You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
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).
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 must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can try using LongPathTool software. It will help you
resolve your specific problems regarding File name too long.
Thank you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.