Skip to content
Permalink
Browse files

Merge pull request #16 from batmat/remove-spurious-warning

[JENKINS-50439] Remove spurious warning when starting Jenkins
  • Loading branch information...
oleg-nenashev committed Mar 28, 2018
2 parents 091c30f + c62b89d commit 1d2a1c7721cb54c6f07a9128880b059030096ff1
Showing with 11 additions and 0 deletions.
  1. +7 −0 CHANGELOG.md
  2. +4 −0 src/main/java/Main.java
@@ -1,6 +1,13 @@
Changelog
====

### 1.39

Release date: Mar 28, 2018

* [JENKINS-50439](https://issues.jenkins-ci.org/browse/JENKINS-50439) -
Remove spurious "Failed to delete the temporary Winstone file /tmp/winstone/jenkins-2.x.war" warning when starting Jenkins

### 1.38

Release date: Mar 10, 2018
@@ -475,6 +475,10 @@ private static void deleteContentsFromFolder(File folder, final String...pattern
}

private static void deleteWinstoneTempContents(File file) throws IOException {
if (!file.exists()) {
LOGGER.log(Level.FINEST, "No file found at {0}, nothing to delete.", file);
return;
}
if(file.isDirectory()) {
File[] files = file.listFiles();
if(files!=null) {// be defensive

0 comments on commit 1d2a1c7

Please sign in to comment.
You can’t perform that action at this time.