mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-08 17:46:03 +00:00
make sure that the base directory exists first.
See http://www.nabble.com/ClearCase-plugin-0.2-not-working-with-1.160-tf4948031.html git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@6220 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
c953a77a78
commit
539789f11a
1 file changed
+2
@@ -445,6 +445,8 @@ public final class FilePath implements Serializable {
|
||||
public String invoke(File dir, VirtualChannel channel) throws IOException {
|
||||
if(!inThisDirectory)
|
||||
dir = null;
|
||||
else
|
||||
dir.mkdirs();
|
||||
File f = File.createTempFile(prefix, suffix, dir);
|
||||
|
||||
Writer w = new FileWriter(f);
|
||||
|
||||
Reference in new issue
Block a user