*/
private void runUnreviewedPatchSets() {
logger.info("Checking non-reviewed patch sets from allowed jobs for: {}.", serverName);
Map<String, ArrayList<GerritTrigger>> gerritProjectContainer = GerritProjectList.getGerritProjects();
for (Map.Entry<String, ArrayList<GerritTrigger>> entry : gerritProjectContainer.entrySet()) {
IGerritHudsonTriggerConfig config = getConfig();
String projectName = entry.getKey();
ArrayList<GerritTrigger> triggers = entry.getValue();
if (triggers == null || triggers.isEmpty()) {
continue;
}
try {
List<JSONObject> changeList = getCurrentPatchesFromGerrit(projectName);
createPatchReviwersList(changeList);
searchUnreviewedPatches(config.getGerritUserName());
for (GerritTrigger trigger : triggers) {
triggerUnreviewedPatches(trigger);
}
} catch (Exception ex) {
logger.error("Unable to identify unreviewed patch sets!\nProject name: " + projectName, ex);