Title: Message Title
Jon Hodgson created an issue
Jenkins / JENKINS-40424
mkdir failing for folders with no existing parent on windows
Issue Type:
Bug
Assignee:
Unassigned
Components:
pipeline
Created:
2016/Dec/13 9:58 PM
Environment:
Jenkins 2.35 java 1.8.0_111-b14 (slave and master), Debian master, Windows 7 slave
Priority:
Critical
Reporter:
Jon Hodgson
When my jenkins pipeline job needs to create a folder on my windows slave (be it the workspace folder, a temporary folder to hold a batch file, whatever) , such as C:\Jenkins\workspace\pipeline-test2@tmp\durable-487de3d5 Then it will fail if the parent does not exist So in the above case, if C:\Jenkins\workspace\pipeline-test2@tmp already exists (e.g. I created it manually), then durable-487de3d5 will be created correctly, and the script will work. But if the parent does not exist, then I get the exception
Failed to mkdirs: C:\Jenkins\workspace\pipeline-test2@tmp\durable-487de3d5
hudson.FilePath.mkdirs(FilePath.java:1169)
org.jenkinsci.plugins.durabletask.FileMonitoringTask$FileMonitoringController.(FileMonitoringTask.java:101)
org.jenkinsci.plugins.durabletask.WindowsBatchScript$BatchController.(WindowsBatchScript.java:94)
org.jenkinsci.plugins.durabletask.WindowsBatchScript$BatchController.(WindowsBatchScript.java:92)
org.jenkinsci.plugins.durabletask.WindowsBatchScript.doLaunch(WindowsBatchScript.java:60)
org.jenkinsci.plugins.durabletask.FileMonitoringTask.launchWithCookie(FileMonitoringTask.java:66)
org.jenkinsci.plugins.durabletask.FileMonitoringTask.launch(FileMonitoringTask.java:61)
org.jenkinsci.plugins.workflow.steps.durabl