Пример #1
0
        public async Task Execute(object options)
        {
            var compareBuildsOptions = options as CompareBuildsOptions;

            if (compareBuildsOptions == null)
            {
                throw new ArgumentNullException("compareBuildsOptions");
            }

            Log.Info("BuildId #1: " + compareBuildsOptions.NewBuildId + " -- BuildId #2: " + compareBuildsOptions.OldBuildId);

            await _compareBuildsUseCase.Execute(compareBuildsOptions.NewBuildId, compareBuildsOptions.OldBuildId, compareBuildsOptions.BCompare, compareBuildsOptions.Dump);

            Log.Info("================Compare Builds: done ================");
        }
Пример #2
0
            public void CompareBuilds()
            {
                var compareBuildsUseCase = new CompareBuildsUseCase(new TeamCityClient("teamcityserver:8080", "user", "pass"));

                compareBuildsUseCase.Execute(178416, 180701, false, false).Wait();
            }