-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exporting and importing TFS2013 default template builds fails for the tests section #8
Comments
What version of the extension are you using? |
Sorry, TFS version is 2012. Visual Studio version is 2013. |
could you download the template you are using and attach it here. I only have 2013 at hand, it may be the same but I may as well debug it with exactly what you are using... thanks! ,Mike |
Hi Mike, Thanks! On Wed, Mar 18, 2015 at 6:05 PM, Mike Fourie [email protected] /x:Members this:Process.BuildSettings[New Microsoft.TeamFoundation.Build.Workflow.Activities.BuildSettings()]/this:Process.BuildSettings this:Process.DisableTests[False]/this:Process.DisableTests this:Process.TestSpecs[New Microsoft.TeamFoundation.Build.Workflow.Activities.TestSpecList(New Microsoft.TeamFoundation.Build.Workflow.Activities.AgileTestPlatformSpec("***test*.dll"))]/this:Process.TestSpecs this:Process.BuildNumberFormat["$(BuildDefinitionName)_$(Date:yyyyMMdd)$(Rev:.r)"]/this:Process.BuildNumberFormat this:Process.SolutionSpecificBuildOutputs[False]/this:Process.SolutionSpecificBuildOutputs this:Process.AssociateChangesetsAndWorkItems[True]/this:Process.AssociateChangesetsAndWorkItems this:Process.CreateWorkItem[True]/this:Process.CreateWorkItem this:Process.CleanWorkspace[Microsoft.TeamFoundation.Build.Workflow.Activities.CleanWorkspaceOption.All]/this:Process.CleanWorkspace this:Process.MSBuildArguments /this:Process.MSBuildArguments this:Process.RunCodeAnalysis[Microsoft.TeamFoundation.Build.Workflow.Activities.CodeAnalysisOption.AsConfigured]/this:Process.RunCodeAnalysis this:Process.MSBuildMultiProc[True]/this:Process.MSBuildMultiProc this:Process.MSBuildPlatform[Microsoft.TeamFoundation.Build.Workflow.Activities.ToolPlatform.Auto]/this:Process.MSBuildPlatform this:Process.PerformTestImpactAnalysis[True]/this:Process.PerformTestImpactAnalysis this:Process.SourceAndSymbolServerSettings[New Microsoft.TeamFoundation.Build.Workflow.Activities.SourceAndSymbolServerSettings(True, Nothing)]/this:Process.SourceAndSymbolServerSettings this:Process.CreateLabel[True]/this:Process.CreateLabel this:Process.GetVersion /this:Process.GetVersion this:Process.AgentSettings[New Microsoft.TeamFoundation.Build.Workflow.Activities.AgentSettings() With {.MaxWaitTime = New System.TimeSpan(4, 0, 0), .MaxExecutionTime = New System.TimeSpan(0, 0, 0), .TagComparison = Microsoft.TeamFoundation.Build.Workflow.Activities.TagComparison.MatchExactly }]/this:Process.AgentSettings this:Process.Verbosity[Microsoft.TeamFoundation.Build.Workflow.BuildVerbosity.Normal]/this:Process.Verbosity this:Process.Metadata mtbw:ProcessParameterMetadataCollection /mtbw:ProcessParameterMetadataCollection /this:Process.Metadata this:Process.SupportedReasonsAll/this:Process.SupportedReasons this:Process.BuildProcessVersion11.0/this:Process.BuildProcessVersion mva:VisualBasic.SettingsAssembly references and imported namespaces serialized as XML namespaces/mva:VisualBasic.Settings /mtbwa:InvokeForReason mtbwa:AgentScope.Variables /mtbwa:AgentScope.Variables mtbwa:SyncWorkspace.RequestsFailed /mtbwa:SyncWorkspace.RequestsFailed /mtbwa:SyncWorkspace /mtbwa:InvokeForReason /mtbwa:InvokeForReason /mtbwa:InvokeForReason /mtbwa:InvokeForReason mtbwa:InvokeForReason.Variables /mtbwa:InvokeForReason.Variables /mtbwa:SharedResourceScope /mtbwa:InvokeForReason /mtbwa:AgentScope /mtbwa:InvokeForReason |
Mike, |
Thanks I have a repro. Will try get a fix in for you soon. |
Looking forward. Thank you. |
@mduberstein let me know if that works for you |
@mikefourie It didn't, no errors are produced, but the entire Automated Test entry becomes empty
built the entire solution's Release Built, uninstalled version 2.12.0.18 installed 2.12.0.19 TFSBuildManager.Package.vsix. As you could see the entire Automated Test section is stripped. |
@mikefourie I attach the old and new .json, 2.12.0.18{ }2.12.0.19{ |
if you break on line 452 in TFSBuildManager.Views\ViewModels\BuildManagerViewModel.cs I suspect you will be using MSTestSpec rather than agiletestspec. I'll try add support for MSTestSpec soon. |
Hi, Trying to export/import some build definitions from one TFS to VSO. But seems Advanced builds settings are exported incorrectly. They are missing [ ] around the Json array. The export is
So when I try to import the same exported Json I get a error. "Specified cast is not valid."
|
Hi, Our Unit test section is a BuildParameter array so needed to add some "special cases. For Export. After that my templates where imported/exported successfully. |
When exporting and importing a TFS2013 standard build definition the test section of the build information is not written out to the json correctly which means that the import fails to import any of the test information.
The text was updated successfully, but these errors were encountered: