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))); }
private void CreateBranchInApprovalSystem(RootBranchVersion sourceBranchVersion) { using (var proxy = DeveloperToolServiceProxyFactory.CreateProxy()) { proxy.CreateNewBranch(new DeveloperToolService.CreateNewBranchRequest() { SourceBranchName = sourceBranchVersion.ToString(), TargetBranchName = (sourceBranchVersion + 1).ToString() }); } }
public GGPSolutionBuilder(RootBranchVersion ggpBranchName, BuildType buildType, IBuildServices buildServices, string distributionFolderServerPath) { _ggpBranchName = ggpBranchName; _buildType = buildType; _services = buildServices; _distributionFolderServerPath = distributionFolderServerPath; _logger = buildServices.LoggerFactory.CreateLogger(this.GetType()); }
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)); }
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); }
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; }
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 }); } }
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; }
private CommandLineParameters(RootBranchVersion branchName, BuildType buildType) { this.BranchName = branchName; this.BuildType = buildType; }
public IComponentsReader QAMainBranchComponentsReader(RootBranchVersion branchName) { return(new ComponentsReader(new LogicalComponentFactory(_serviceLocator, new RegularVersionsProvider(branchName)))); }