Skip to content
Permalink
Browse files
Merge pull request #293 from mostynb/text_file_busy_debugging
[JENKINS-48258] add distinctive temp file prefix to aid debugging
  • Loading branch information
MarkEWaite committed Feb 17, 2018
2 parents 1bfc00f + d4e5536 commit 4241e818dbe27fb78093094f29ebcd2203166610
Showing 1 changed file with 8 additions and 1 deletion.
@@ -1541,12 +1541,19 @@ private File createTempFileInSystemDir(String prefix, String suffix) throws IOEx
*
* Package protected for testing. Not to be used outside this class
*
* @param prefix file name prefix for the generated temporary file
* @param prefix file name prefix for the generated temporary file (will be preceeded by "jenkins-gitclient-")
* @param suffix file name suffix for the generated temporary file
* @return temporary file
* @throws IOException on error
*/
File createTempFile(String prefix, String suffix) throws IOException {
String common_prefix = "jenkins-gitclient-";
if (prefix == null) {
prefix = common_prefix;
} else {
prefix = common_prefix + prefix;
}

if (workspace == null) {
return createTempFileInSystemDir(prefix, suffix);
}

0 comments on commit 4241e81

Please sign in to comment.