Skip to content

Commit

Permalink
Merge pull request #2125 from fbelzunc/JENKINS-33549
Browse files Browse the repository at this point in the history
[FIXED JENKINS-33549] Specify on the logger the job which cannot create a new build
  • Loading branch information
daniel-beck committed Aug 21, 2016
2 parents 4376fde + 67eaeb6 commit 239ec86
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions core/src/main/java/jenkins/model/lazy/LazyBuildMixIn.java
Expand Up @@ -185,13 +185,11 @@ public final synchronized RunT newBuild() throws IOException {
builds.put(lastBuild);
lastBuild.getPreviousBuild(); // JENKINS-20662: create connection to previous build
return lastBuild;
} catch (InstantiationException e) {
throw new Error(e);
} catch (IllegalAccessException e) {
throw new Error(e);
} catch (InvocationTargetException e) {
LOGGER.log(Level.WARNING, String.format("A new build could not be created in job %s", asJob().getFullName()), e);
throw handleInvocationTargetException(e);
} catch (NoSuchMethodException e) {
} catch (ReflectiveOperationException | IllegalStateException e) {
LOGGER.log(Level.WARNING, String.format("A new build could not be created in job %s", asJob().getFullName()), e);
throw new Error(e);
}
}
Expand Down

0 comments on commit 239ec86

Please sign in to comment.