private static int Main(string[] args) { var logger = new ConsoleLogger(includeTimestamp: false); Utilities.LogAssemblyVersion(logger, typeof(Program).Assembly, Resources.AssemblyDescription); logger.IncludeTimestamp = true; var settings = TeamBuildSettings.GetSettingsFromEnvironment(logger); Debug.Assert(settings != null, "Settings should not be null"); var config = GetAnalysisConfig(settings, logger); bool succeeded; if (config == null) { succeeded = false; } else { var postProcessor = new MSBuildPostProcessor( new CoverageReportProcessor(), new SonarScannerWrapper(), new SummaryReportBuilder(), logger, new TargetsUninstaller()); succeeded = postProcessor.Execute(args, config, settings); } return(succeeded ? SuccessCode : ErrorCode); }
private static int Main(string[] args) { ConsoleLogger logger = new ConsoleLogger(includeTimestamp: true); TeamBuildSettings settings = TeamBuildSettings.GetSettingsFromEnvironment(logger); Debug.Assert(settings != null, "Settings should not be null"); AnalysisConfig config = GetAnalysisConfig(settings, logger); bool succeeded; if (config == null) { succeeded = false; } else { MSBuildPostProcessor postProcessor = new MSBuildPostProcessor(new CoverageReportProcessor(), new SonarRunnerWrapper(), new SummaryReportBuilder()); succeeded = postProcessor.Execute(args, config, settings, logger); } return(succeeded ? SuccessCode : ErrorCode); }
private static int Main(string[] args) { ConsoleLogger logger = new ConsoleLogger(); Utilities.LogAssemblyVersion(logger, typeof(Program).Assembly, Resources.AssemblyDescription); logger.IncludeTimestamp = true; TeamBuildSettings settings = TeamBuildSettings.GetSettingsFromEnvironment(logger); Debug.Assert(settings != null, "Settings should not be null"); AnalysisConfig config = GetAnalysisConfig(settings, logger); bool succeeded; if (config == null) { succeeded = false; } else { MSBuildPostProcessor postProcessor = new MSBuildPostProcessor(new CoverageReportProcessor(), new SonarRunnerWrapper(), new SummaryReportBuilder()); succeeded = postProcessor.Execute(args, config, settings, logger); } return succeeded ? SuccessCode : ErrorCode; }
private static int Main(string[] args) { ConsoleLogger logger = new ConsoleLogger(includeTimestamp: true); TeamBuildSettings settings = TeamBuildSettings.GetSettingsFromEnvironment(logger); Debug.Assert(settings != null, "Settings should not be null"); AnalysisConfig config = GetAnalysisConfig(settings, logger); bool succeeded; if (config == null) { succeeded = false; } else { MSBuildPostProcessor postProcessor = new MSBuildPostProcessor(new CoverageReportProcessor(), new SonarRunnerWrapper(), new SummaryReportBuilder()); succeeded = postProcessor.Execute(args, config, settings, logger); } return succeeded ? SuccessCode : ErrorCode; }