Package hudson.plugins.cobertura

Examples of hudson.plugins.cobertura.CoberturaBuildAction


            }
            Run<?, ?> prevBuild = owner.getPreviousNotFailedBuild();
            if (prevBuild == null) {
                return null;
            }
            CoberturaBuildAction action = null;
            while ((prevBuild != null) && (null == (action = prevBuild.getAction(CoberturaBuildAction.class)))) {
                prevBuild = prevBuild.getPreviousNotFailedBuild();
            }
            if (action == null) {
                return null;
            }
            return action.getResult();
        } else {
            CoverageResult prevParent = parent.getPreviousResult();
            return prevParent == null ? null : prevParent.getChild(name);
        }
    }
View Full Code Here


            Run run = job.getLastSuccessfulBuild();
            if (run == null) {
                continue;
            }

            CoberturaBuildAction rbb = run
                    .getAction(CoberturaBuildAction.class);

            if (rbb != null) {
                allResults.add(run);
            }
View Full Code Here

        return allResults;
    }

    public CoverageResult getCoverageResult(Run run) {
        CoberturaBuildAction rbb = run.getAction(CoberturaBuildAction.class);
        return rbb.getResult();
    }
View Full Code Here

            Run run = job.getLastSuccessfulBuild();
            if (run == null) {
                continue;
            }

            CoberturaBuildAction rbb = run
                    .getAction(CoberturaBuildAction.class);

            if (rbb == null) {
                continue;
            }

            CoverageResult result = rbb.getResult();
            Set<CoverageMetric> metrics = result.getMetrics();

            for (CoverageMetric metric : metrics) {
                if (totalRatioMap.get(metric) == null) {
                    totalRatioMap.put(metric, result.getCoverage(metric));
View Full Code Here

TOP

Related Classes of hudson.plugins.cobertura.CoberturaBuildAction

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.