private static int Main(string[] args) { var logger = new ConsoleLogger(); Utilities.LogAssemblyVersion(logger, typeof(Program).Assembly, Resources.AssemblyDescription); BuildAgentUpdater updater = new BuildAgentUpdater(); return Execute(args, updater, logger); }
private static int preprocess(ILogger logger, IBootstrapperSettings settings, string[] args) { string downloadBinPath = settings.DownloadDirectory; logger.LogMessage(Resources.INFO_CreatingBinDir, downloadBinPath); if (Directory.Exists(downloadBinPath)) { Directory.Delete(downloadBinPath, true); } Directory.CreateDirectory(downloadBinPath); string server = settings.SonarQubeUrl; Debug.Assert(!string.IsNullOrWhiteSpace(server), "Not expecting the server url to be null/empty"); logger.LogMessage(Resources.INFO_ServerUrl, server); IBuildAgentUpdater updater = new BuildAgentUpdater(); if (!updater.TryUpdate(server, downloadBinPath, logger)) { logger.LogError(Resources.ERROR_CouldNotFindIntegrationZip); return(1); } var preprocessorFilePath = settings.PreProcessorFilePath; var processRunner = new ProcessRunner(); processRunner.Execute(preprocessorFilePath, string.Join(" ", args.Select(a => "\"" + a + "\"")), downloadBinPath, settings.PreProcessorTimeoutInMs, logger); return(processRunner.ExitCode); }
private static int Main(string[] args) { var logger = new ConsoleLogger(); BuildAgentUpdater updater = new BuildAgentUpdater(); return(Execute(args, updater, logger)); }
public static int Main(string[] args) { var logger = new ConsoleLogger(); Utilities.LogAssemblyVersion(logger, typeof(Program).Assembly, Resources.AssemblyDescription); BuildAgentUpdater updater = new BuildAgentUpdater(); return(Execute(args, updater, logger)); }
private static int Main(string[] args) { var logger = new ConsoleLogger(); BuildAgentUpdater updater = new BuildAgentUpdater(); return Execute(args, updater, logger); }