Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[JENKINS-48258] add distinctive temp file prefix to aid debugging
  • Loading branch information
mostynb committed Jan 8, 2018
1 parent c604383 commit d4e5536
Showing 1 changed file with 8 additions and 1 deletion.
Expand Up @@ -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);
}
Expand Down

0 comments on commit d4e5536

Please sign in to comment.