Skip to content
Permalink
Browse files
[JENKINS-48258] add distinctive temp file prefix to aid debugging
  • Loading branch information
mostynb committed Jan 8, 2018
1 parent c604383 commit d4e55360e2dd5f41bc556d7c181ecc29e4258109
Showing 1 changed file with 8 additions and 1 deletion.
@@ -1521,12 +1521,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 d4e5536

Please sign in to comment.