Esempio n. 1
0
        public IRootFolder GetRootFolder(RootBranchVersion rootVersion)
        {
            var root       = CreateServerPathDescriptor(ROOT_FOLDER);
            var serverPath = TryGetSubFolder(root, rootVersion.ToString()).First();
            var localPath  = GetLocalPathForServerPath(serverPath);

            return(new RootBranchFolder(root,
                                        new TfsFolder(serverPath, localPath, this)));
        }
Esempio n. 2
0
 private void CreateBranchInApprovalSystem(RootBranchVersion sourceBranchVersion)
 {
     using (var proxy = DeveloperToolServiceProxyFactory.CreateProxy())
     {
         proxy.CreateNewBranch(new DeveloperToolService.CreateNewBranchRequest()
         {
             SourceBranchName = sourceBranchVersion.ToString(),
             TargetBranchName = (sourceBranchVersion + 1).ToString()
         });
     }
 }
Esempio n. 3
0
        public GGPSolutionBuilder(RootBranchVersion ggpBranchName,
                                  BuildType buildType,
                                  IBuildServices buildServices,
                                  string distributionFolderServerPath)
        {
            _ggpBranchName = ggpBranchName;
            _buildType     = buildType;
            _services      = buildServices;
            _distributionFolderServerPath = distributionFolderServerPath;

            _logger = buildServices.LoggerFactory.CreateLogger(this.GetType());
        }
Esempio n. 4
0
        public static CommandLineParameters Parse(string[] args)
        {
            if (args.Length == 0)
            {
                throw new InvalidCommandLineArgumnentsException(GetUsageInfo());
            }

            var parser = new CommandLineParametersParser(args, GetUsageInfo());

            var branchName = RootBranchVersion.Parse(parser.GetMandatoryParameterValue <string>(BRANCH_ARG));
            var buildType  = parser.GetMandatoryParameterValue <BuildType>(BUILD_TYPE_ARG);

            return(new CommandLineParameters(branchName, buildType));
        }
Esempio n. 5
0
        private IEnumerable <ISourceControlFolder> GetRootFolders()
        {
            var roots = new List <ISourceControlFolder>();

            foreach (var root in this.TfsGateway.GetRoots())
            {
                if (RootBranchVersion.TryParse(root.Name).Any())
                {
                    roots.Add(root);
                }
            }

            return(roots);
        }
Esempio n. 6
0
        public DeploymentContentBuilder(string publisherEmailAddress,
                                        RootBranchVersion branchName,
                                        BuildType buildType,
                                        Optional <GGPDeploymentContent.InstallerCustomizationInfo> customizedInstaller)
        {
            if (string.IsNullOrEmpty(publisherEmailAddress))
            {
                throw new ArgumentNullException(nameof(publisherEmailAddress));
            }

            _publisherEmailAddress = publisherEmailAddress;
            _branchName            = branchName;
            _buildType             = buildType;
            _customizedInstaller   = customizedInstaller;
        }
Esempio n. 7
0
        public void DeleteComponents(IEnumerable <ILogicalComponent> components, RootBranchVersion branchName)
        {
            if (!components.Any())
            {
                throw new ArgumentException("No components to delete provided!");
            }

            var componentsUniqueIDs = DeleteAndGetComponentsUniqueIDs(components).ToArray();

            using (var proxy = DeveloperToolServiceProxyFactory.CreateProxy())
            {
                proxy.DeleteComponents(new DeveloperToolService.DeleteComponentsRequest()
                {
                    Branch = branchName.ToString(),
                    ComponentsUniqueIDs = componentsUniqueIDs
                });
            }
        }
Esempio n. 8
0
        public GGPDeploymentContent(RootBranchVersion branchName,
                                    BuildType buildType,
                                    string publisherEmailAddress,
                                    Optional <InstallerCustomizationInfo> customizedInstaller,
                                    IEnumerable <CoreComponentDeployContent> coreComponents,
                                    IEnumerable <GameEngineDeployContent> gameEngines,
                                    IEnumerable <GameMathDeployContent> gamesMaths,
                                    IEnumerable <GameLimitsDeployContent> gamesLimits)
        {
            _branchName            = branchName;
            _buildType             = buildType;
            _publisherEmailAddress = publisherEmailAddress;
            _customizedInstaller   = customizedInstaller;

            this.CoreComponents = coreComponents;
            this.GameEngines    = gameEngines;
            this.GamesMaths     = gamesMaths;
            this.GamesLimits    = gamesLimits;
        }
Esempio n. 9
0
 private CommandLineParameters(RootBranchVersion branchName, BuildType buildType)
 {
     this.BranchName = branchName;
     this.BuildType  = buildType;
 }
Esempio n. 10
0
 public IComponentsReader QAMainBranchComponentsReader(RootBranchVersion branchName)
 {
     return(new ComponentsReader(new LogicalComponentFactory(_serviceLocator, new RegularVersionsProvider(branchName))));
 }