gradle-jenkins-jobdsl-plugin icon indicating copy to clipboard operation
gradle-jenkins-jobdsl-plugin copied to clipboard

Unable to run dslGenerateXML task in Windows

Open ghost opened this issue 5 years ago • 3 comments

Hello, I ran into an issue while running the following command on Windows 10: gradlew clean dslGenerateXml

I'm running into following error: "CreateProcess error=206, The filename or extension is too long".

While this task is working fine in RHEL OS. I think it seems to be an issue with classpath and windows limit. I tried various ways to mitigate this (uber/pathing jar etc.,), but no success.

I'm using Gradle 5.4.1. Can you please help address this issue.

TIA.

ghost avatar Jun 19 '19 01:06 ghost

One of our team members had the same issue and issue was related to wrong gradle version used. He used "gradlew task" instead of "./gradlew task", one takes gradle from project config, and one takes it from system environments. I don't know if this s a solution but worth to try

vudzkostek avatar Jun 24 '19 10:06 vudzkostek

@stridertheranger : Did @vudzkostek's tip help you fixing this issue? Or is it still there?

mnonnenmacher avatar Aug 27 '19 09:08 mnonnenmacher

I recently tried with the latest version of Gradle 5.6 and it seems that the issue still persists when invoked via windows. I believe the issue is related to executing generating dsl via "gradlew clean dslGenerateXml" command.

ghost avatar Sep 04 '19 01:09 ghost