Package hudson.plugins.analysis.util

Examples of hudson.plugins.analysis.util.StringPluginLogger


    }

    private String registerResults(final ParserResult result, final MavenBuild mavenBuild) {
        T buildResult = createResult(mavenBuild, result);

        StringPluginLogger pluginLogger = new StringPluginLogger(pluginName);
        if (new NullHealthDescriptor(this).isThresholdEnabled()) {
            String baseUrl = getDescriptor().getPluginResultUrlName();
            buildResult.evaluateStatus(thresholds, useDeltaValues, canComputeNew(), pluginLogger, baseUrl);
        }
        mavenBuild.getActions().add(createMavenAggregatedReport(mavenBuild, buildResult));
        mavenBuild.registerAsProjectAction(HealthAwareReporter.this);
        AbstractBuild<?, ?> referenceBuild = buildResult.getHistory().getReferenceBuild();
        if (referenceBuild != null) {
            pluginLogger.log("Computing warning deltas based on reference build " + referenceBuild.getDisplayName());
        }
        return pluginLogger.toString();
    }
View Full Code Here


     * @param message
     *            the message
     */
    protected void log(final String message) {
        if (stringLogger == null) {
            stringLogger = new StringPluginLogger(pluginId);
        }
        stringLogger.log(message);
    }
View Full Code Here

        }
        return logger;
    }

    private StringPluginLogger createLogger() {
        return new StringPluginLogger("[" + StringUtils.defaultString(pluginName, "ANALYSIS") + "] "); // NOCHECKSTYLE
    }
View Full Code Here

TOP

Related Classes of hudson.plugins.analysis.util.StringPluginLogger

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.