Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
[JENKINS-31202] Using new workflow compatible functions.
  • Loading branch information
benjaminfuchs committed Jul 18, 2016
1 parent 3b8dd54 commit 79a299a5ee71479a4b2f21707635064813734085
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/main/java/hudson/plugins/warnings/WarningsProjectAction.java
@@ -69,15 +69,15 @@ protected GraphConfigurationView createUserConfiguration(final StaplerRequest re

private UserGraphConfigurationView createUserConfiguration(final StaplerRequest request, final String urlName) {
return new UserGraphConfigurationView(
createConfiguration(getAvailableGraphs()), getProject(),
createConfiguration(getAvailableGraphs()), getOwner(),
urlName, WarningsDescriptor.getProjectUrl(null),
request.getCookies(), createBuildHistory());
}

@Override
protected GraphConfigurationView createDefaultConfiguration() {
return new DefaultGraphConfigurationView(
createConfiguration(getAvailableGraphs()), getProject(),
createConfiguration(getAvailableGraphs()), getOwner(),
WarningsDescriptor.getProjectUrl(parser),
createBuildHistory(), WarningsDescriptor.getProjectUrl(null));
}
@@ -106,7 +106,7 @@ protected WarningsResultAction getResultAction(final Run<?, ?> lastBuild) {
*/
@Override
protected BuildHistory createBuildHistory() {
Run<?, ?> lastFinishedBuild = getLastFinishedBuild();
Run<?, ?> lastFinishedBuild = getLastFinishedRun();
if (lastFinishedBuild == null) {
return new NullBuildHistory();
}

0 comments on commit 79a299a

Please sign in to comment.