Skip to content
Permalink
Browse files

Small fix for error in JENKINS-28983

  • Loading branch information
MadsNielsen committed Aug 27, 2015
1 parent 46d3b92 commit a20a2e0f2d4aab7ed268678f132f8290bb3bb98d
@@ -177,8 +177,11 @@ public static String itemizeForHtml(ConfigurationRotatorBuildAction action ) {
ConfigurationRotator rotator = (ConfigurationRotator)action.getBuild().getProject().getScm();

//Arg1 previous configuration:
List<? extends AbstractConfigurationComponent> listArg1 = rotator.getAcrs().getPreviousResult(action.getBuild(), null).getConfiguration().getList();

List<? extends AbstractConfigurationComponent> listArg1 = new ArrayList<AbstractConfigurationComponent>();
ConfigurationRotatorBuildAction crba = rotator.getAcrs().getPreviousResult(action.getBuild(), null);
if(crba!=null) {
listArg1 = crba.getConfiguration().getList();
}
//Arg2 current components
AbstractConfiguration ac = action.getConfiguration();
List<? extends AbstractConfigurationComponent> listArg2 = ac != null ? ac.getList() : new ArrayList<AbstractConfigurationComponent>();

0 comments on commit a20a2e0

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