Java 类hudson.model.HealthReport 实例源码

项目:jenkinslint-plugin    文件:Job.java   
public HealthReport getLintHealthReport() {
    if (lintList != null && lintList.size() > 0) {
        int ok = 0;
        for (Lint lint : lintList) {
            if (!lint.isIgnored()) {
                if (! lint.isFound()) { ok++; }
            } else {
                ok++;
            }
        }
        int score = (int) (100.0 * ok / lintList.size());
        return new HealthReport(score, Messages._Job_LintStability(score + "%"));
    }
    return null;
}
项目:jenkinslint-plugin    文件:Slave.java   
public HealthReport getLintHealthReport() {
    if (lintList != null && lintList.size() > 0) {
        int ok = 0;
        for (Lint lint : lintList) {
            if (!lint.isIgnored()) {
                if (! lint.isFound()) { ok++; }
            } else {
                ok++;
            }
        }
        int score = (int) (100.0 * ok / lintList.size());
        return new HealthReport(score, Messages._Job_LintStability(score + "%"));
    }
    return null;
}
项目:cloud-stats-plugin    文件:Health.java   
public HealthReport getWeather() {
    return new HealthReport(round(percent), "Cloud Statistics");
}
项目:flaky-test-handler-plugin    文件:JUnitFlakyTestDataAction.java   
public static String getBigImagePath(int score) {
  HealthReport healthReport = new HealthReport(score, (Localizable)null);
  return healthReport.getIconUrl("32x32");
}
项目:flaky-test-handler-plugin    文件:JUnitFlakyTestDataAction.java   
public static String getSmallImagePath(int score) {
  HealthReport healthReport = new HealthReport(score, (Localizable)null);
  return healthReport.getIconUrl("16x16");
}
项目:DotCi    文件:DbBackedProject.java   
@Override
public HealthReport getBuildHealth() {
    return new HealthReport();
}
项目:DotCi    文件:DbBackedProject.java   
@Override
@Exported(name = "healthReport")
public List<HealthReport> getBuildHealthReports() {
    return new ArrayList<>();
}