Package hudson.plugins.rubyMetrics.flog.model

Examples of hudson.plugins.rubyMetrics.flog.model.FlogBuildResults


        }
        listener.getLogger().println("Publishing flog report...");

        Map<String, ByteArrayOutputStream> execResults = flog.execute(splittedDirectories, launcher, environment, workspace, build.getRootDir());

        FlogBuildResults buildResults = buildResults(build, execResults);

        FlogBuildAction action = new FlogBuildAction(build, buildResults);
        build.getActions().add(action);

        return true;
View Full Code Here


        return true;
    }

    private FlogBuildResults buildResults(AbstractBuild<?, ?> build, Map<String, ByteArrayOutputStream> execResults) {
        final FlogParser parser = new FlogParser();
        FlogBuildResults buildResults = new FlogBuildResults();

        for (Map.Entry<String, ByteArrayOutputStream> entry : execResults.entrySet()) {
            FlogFileResults resultsForFile = parser.parse(entry.getKey(), entry.getValue());
            if (resultsForFile != null) {
                buildResults.addFileResults(entry.getKey(), resultsForFile);
            }
        }

        return buildResults;
    }
View Full Code Here

TOP

Related Classes of hudson.plugins.rubyMetrics.flog.model.FlogBuildResults

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.