use of org.jenkinsci.test.acceptance.plugins.warnings.WarningsBuildSettings in project acceptance-test-harness by jenkinsci.
the class AnalysisCollectorPluginTest method addAndConfigureWarningsPublisher.
private void addAndConfigureWarningsPublisher(final FreeStyleJob job) {
WarningsBuildSettings warningsSettings = job.addPublisher(WarningsBuildSettings.class);
AnalysisConfigurator<WarningsBuildSettings> warningsConfigurator = settings -> {
settings.addWorkspaceScanner("Java Compiler (javac)", "**/*");
settings.addWorkspaceScanner("JavaDoc Tool", "**/*");
settings.addWorkspaceScanner("MSBuild", "**/*");
};
warningsConfigurator.accept(warningsSettings);
}
Aggregations