diff options
| author | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2025-08-17 18:58:07 +0300 |
|---|---|---|
| committer | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2025-08-17 18:58:07 +0300 |
| commit | d150ca010285dc76add9d9f5606dd6d150a610c5 (patch) | |
| tree | 9a64829f08eae4495bdc97bb60bd2bf988699971 /Software/Visual_Studio | |
| parent | 5282624fc0f2ba7b5191219a0e941c9b53d1843b (diff) | |
| download | Tango-d150ca010285dc76add9d9f5606dd6d150a610c5.tar.gz Tango-d150ca010285dc76add9d9f5606dd6d150a610c5.zip | |
X1 TFS Machine Type & Area.
Diffstat (limited to 'Software/Visual_Studio')
3 files changed, 14 insertions, 6 deletions
diff --git a/Software/Visual_Studio/PPC/Modules/Tango.PPC.BugReporting/TFS/TeamFoundationServicePPCClient.cs b/Software/Visual_Studio/PPC/Modules/Tango.PPC.BugReporting/TFS/TeamFoundationServicePPCClient.cs index c9e39b02b..e564b33fc 100644 --- a/Software/Visual_Studio/PPC/Modules/Tango.PPC.BugReporting/TFS/TeamFoundationServicePPCClient.cs +++ b/Software/Visual_Studio/PPC/Modules/Tango.PPC.BugReporting/TFS/TeamFoundationServicePPCClient.cs @@ -85,7 +85,7 @@ namespace Tango.PPC.BugReporting.TFS { item.Title = title; - item.Area = _buildProvider.IsEureka ? Project.GetAreaByName("Twine X4") : Project.GetAreaByName("PPC"); + item.Area = Project.GetAreaByName(_buildProvider.MachineType.ToTFSAreaName()); item.Iteration = Project.Iterations.FirstOrDefault(); item.CreatedBy = createdBy; @@ -102,7 +102,7 @@ namespace Tango.PPC.BugReporting.TFS item.Type = WorkItemType.Bug; item.Environment = SettingsManager.Default.GetOrCreate<PPCSettings>().DeploymentSlot.ToDescription(); - item.MachineType = (MachineType)_buildProvider.BuildType; + item.MachineType = (MachineType)_buildProvider.MachineType; FileLogger appFileLogger = LogManager.Default.RegisteredLoggers.FirstOrDefault(x => x.GetType() == typeof(FileLogger)) as FileLogger; FileLogger embeddedFileLogger = MachineOperator.EmbeddedLogManager.RegisteredLoggers.FirstOrDefault(x => x.GetType() == typeof(FileLogger)) as FileLogger; diff --git a/Software/Visual_Studio/Tango.BL/Enumerations/MachineTypes.cs b/Software/Visual_Studio/Tango.BL/Enumerations/MachineTypes.cs index 734e26bbe..99d414b27 100644 --- a/Software/Visual_Studio/Tango.BL/Enumerations/MachineTypes.cs +++ b/Software/Visual_Studio/Tango.BL/Enumerations/MachineTypes.cs @@ -13,22 +13,25 @@ namespace Tango.BL.Enumerations public String InstallerBuildFolder { get; set; } - public MachineTypeAttribute(String shortName, String installerBuildFolder) + public String TFSAreaName { get; set; } + + public MachineTypeAttribute(String shortName, String installerBuildFolder, String tfsArea) { ShortName = shortName; InstallerBuildFolder = installerBuildFolder; + TFSAreaName = tfsArea; } } public enum MachineTypes { - [MachineType("TS", "PPC")] + [MachineType("TS", "PPC", "PPC")] [Description("TS-1800")] TS1800 = 0, - [MachineType("X4", "Eureka")] + [MachineType("X4", "Eureka", "Twine X4")] [Description("Twine X4")] Eureka = 1, - [MachineType("X1", "X1")] + [MachineType("X1", "X1", "Twine X1")] [Description("Twine X1")] X1 = 2, } diff --git a/Software/Visual_Studio/Tango.BL/ExtensionMethods/MachineTypesExtensions.cs b/Software/Visual_Studio/Tango.BL/ExtensionMethods/MachineTypesExtensions.cs index 1fea28f06..b3e4e84f9 100644 --- a/Software/Visual_Studio/Tango.BL/ExtensionMethods/MachineTypesExtensions.cs +++ b/Software/Visual_Studio/Tango.BL/ExtensionMethods/MachineTypesExtensions.cs @@ -21,4 +21,9 @@ public static class MachineTypesExtensions { return machineType.GetAttribute<MachineTypeAttribute>().InstallerBuildFolder; } + + public static String ToTFSAreaName(this MachineTypes machineType) + { + return machineType.GetAttribute<MachineTypeAttribute>().TFSAreaName; + } } |
