I have a Jenkins folder that contains 4 subjobs. I want each subjob to use same custom workspace with folder name.
I found this thread discuss about Folder name as Enviroment Variable.
for each subjob, I set custom workspace to C:\CI\workspace/${JOB_NAME%/*}
I set custom workspace from configure->Advanced Project Options->Use custom workspace
but when I build subjobs, I got this error.
java.io.IOException: Failed to mkdirs: C:\CI\workspace/${JOB_NAME%/*}
at hudson.FilePath.mkdirs(FilePath.java:1171)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1210)
at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:566)
at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:491)
at hudson.model.Run.execute(Run.java:1737)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:421)
Finished: FAILURE
Please for advice, I do not know where I'm wrong.
Thanks.