-
Bug
-
Resolution: Fixed
-
Critical
-
None
Latest version of the job dsl plugin fails on Windows, 100%.
ERROR: invalid script name 'Z:\export\jenkins\workspace\test_generate_jenkins_jobs\dev\dev.dsl; script names may only contain letters, digits and underscores, but may not start with a digit
The same exact job name works on Linux. The job-dsl plugin is presumably using the full pathname to the workspace to create the class which has a colon in it on windows.
Our config looks like:
{{
<javaposse.jobdsl.plugin.ExecuteDslScripts plugin="job-dsl@1.57">
<targets>dsl/*.dsl</targets>
<usingScriptText>false</usingScriptText>
<ignoreExisting>false</ignoreExisting>
<ignoreMissingFiles>false</ignoreMissingFiles>
<failOnMissingPlugin>false</failOnMissingPlugin>
<unstableOnDeprecation>false</unstableOnDeprecation>
<removedJobAction>DELETE</removedJobAction>
<removedViewAction>DELETE</removedViewAction>
<lookupStrategy>JENKINS_ROOT</lookupStrategy>
</javaposse.jobdsl.plugin.ExecuteDslScripts>
}}
- is related to
-
JENKINS-32011 JOBDSL should allow dash ("-") in a job name
- Closed