mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-06 00:25:58 +00:00
fixed a bug.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@1693 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
a7cc8ed961
commit
5a7df682ce
1 file changed
+2
-2
@@ -323,7 +323,7 @@ public final class FilePath implements Serializable {
|
||||
*/
|
||||
public FilePath createTextTempFile(final String prefix, final String suffix, final String contents, final boolean inThisDirectory) throws IOException, InterruptedException {
|
||||
try {
|
||||
return new FilePath(this,act(new FileCallable<String>() {
|
||||
return new FilePath(channel,act(new FileCallable<String>() {
|
||||
public String invoke(File dir, VirtualChannel channel) throws IOException {
|
||||
if(!inThisDirectory)
|
||||
dir = null;
|
||||
@@ -333,7 +333,7 @@ public final class FilePath implements Serializable {
|
||||
w.write(contents);
|
||||
w.close();
|
||||
|
||||
return f.getName();
|
||||
return f.getAbsolutePath();
|
||||
}
|
||||
}));
|
||||
} catch (IOException e) {
|
||||
|
||||
Reference in new issue
Block a user