aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Modules
diff options
context:
space:
mode:
authorVictoria Plitt <Victoria.Plitt@twine-s.com>2023-05-08 19:39:21 +0300
committerVictoria Plitt <Victoria.Plitt@twine-s.com>2023-05-08 19:39:21 +0300
commit41463773c087d7aa8d085edf78613530d948e950 (patch)
treebb1f737609ba24892fc08c3f950c0550f34acfd2 /Software/Visual_Studio/PPC/Modules
parent3e4153adad28e60090f0c33893de80d55d74abef (diff)
parentf5ac681980059138858eabd2eeff6e0173f11e95 (diff)
downloadTango-41463773c087d7aa8d085edf78613530d948e950.tar.gz
Tango-41463773c087d7aa8d085edf78613530d948e950.zip
Merge branch 'eureka' of https://twinetfs.visualstudio.com/Tango/_git/Tango into eureka
Diffstat (limited to 'Software/Visual_Studio/PPC/Modules')
-rw-r--r--Software/Visual_Studio/PPC/Modules/Tango.PPC.BugReporting/TFS/TeamFoundationServicePPCClient.cs7
1 files changed, 6 insertions, 1 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 b84d11c37..c21d56f2a 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
@@ -15,6 +15,7 @@ using Tango.Core.ExtensionMethods;
using Tango.Core.Helpers;
using Tango.Settings;
using Tango.PPC.Common;
+using Tango.PPC.Common.Build;
namespace Tango.PPC.BugReporting.TFS
{
@@ -22,6 +23,7 @@ namespace Tango.PPC.BugReporting.TFS
{
private IPPCApplicationManager _applicationManager;
private IMachineProvider _machineProvider;
+ private IBuildProvider _buildProvider;
public Project Project { get; private set; }
@@ -33,6 +35,7 @@ namespace Tango.PPC.BugReporting.TFS
{
_applicationManager = TangoIOC.Default.GetInstance<IPPCApplicationManager>();
_machineProvider = TangoIOC.Default.GetInstance<IMachineProvider>();
+ _buildProvider = TangoIOC.Default.GetInstance<IBuildProvider>();
_applicationManager.ApplicationReady += ApplicationManager_ApplicationReady;
}
@@ -82,7 +85,7 @@ namespace Tango.PPC.BugReporting.TFS
{
item.Title = title;
- item.Area = Project.GetAreaByName("PPC");
+ item.Area = _buildProvider.IsEureka ? Project.GetAreaByName("Twine X4") : Project.GetAreaByName("PPC");
item.Iteration = Project.Iterations.FirstOrDefault();
item.CreatedBy = createdBy;
@@ -99,6 +102,8 @@ namespace Tango.PPC.BugReporting.TFS
item.Type = WorkItemType.Bug;
item.Environment = SettingsManager.Default.GetOrCreate<PPCSettings>().DeploymentSlot.ToDescription();
+ item.MachineType = _buildProvider.IsEureka ? MachineType.TwineX4 : MachineType.TS1800;
+
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;