我正在尝试在 Azure DevOps Server 2019 中迁移区域路径和迭代路径。这是我的配置文件:
{
"Version": "11.9",
"LogLevel": "Verbose",
"Processors": [
{
"$type": "TfsAreaAndIterationProcessorOptions",
"Enabled": true,
"PrefixProjectToNodes": false,
"NodeBasePaths": ["/"],
"SourceName": "Source",
"TargetName": "Target"
}
],
"Endpoints": {
"TfsEndpoints": [
{
"Name": "Source",
"Organisation": "collection URL",
"Project": "CustomMigrationTest",
"ReflectedWorkItemIdField": "TfsMigrationTool.ReflectedWorkItemId",
"AuthenticationMode": "AccessToken",
"AccessToken": "<<token>>",
"AllowCrossProjectLinking": false,
"LanguageMaps": {
"AreaPath": "Area",
"IterationPath": "Iteration"
}
},
{
"Name": "Target",
"Organisation": "collection URL",
"Project": "AgileMigrationTest",
"ReflectedWorkItemIdField": "TfsMigrationTool.ReflectedWorkItemId",
"AuthenticationMode": "AccessToken",
"AccessToken": "<<token>>",
"AllowCrossProjectLinking": false,
"LanguageMaps": {
"AreaPath": "Area",
"IterationPath": "Iteration"
}
}
]
}
}
运行迁移器时出现此错误,但我不知道我的配置中缺少什么:
[13:27:51 INF]处理器:TfsAreaAndIterationProcessor
[13:27:51 INF]迁移上下文开始:TfsAreaAndIterationProcessor
[13:27:51 INF]处理器::InternalExecute::Start
[13:27:51 INF]处理器::EnsureConfigured
[13:27:51 INF]ProcessorEnricherContainer::ProcessorExecutionBegin
[13:27:51 INF] 在处理器运行之前迁移所有节点。
[13:27:51 FTL] 运行 TfsAreaAndIterationProcessor 时出错
System.ArgumentNullException:值不能为空。
参数名称:配置
在 D:\a\1\s\src\MigrationTools.Clients.AzureDevops.ObjectModel_EngineV1\Clients\TfsMigrationClient.cs:line 72 中的 MigrationTools._EngineV1.Clients.TfsMigrationClient.Configure(IMigrationClientConfig config, NetworkCredential credentials)
在 D:\a\1\s\src\MigrationTools\MigrationEngine.cs:146 行中的 MigrationTools.MigrationEngine.GetSource()
在 D:\a\1\s\src\MigrationTools.Clients.AzureDevops.ObjectModel\ProcessorEnrichers\TfsNodeStructure.cs:line 129 中的 MigrationTools.Enrichers.TfsNodeStructure.EntryForProcessorType(IProcessor 处理器)
在 D:\a\1\s\src\MigrationTools.Clients.AzureDevops.ObjectModel\ProcessorEnrichers\TfsNodeStructure.cs:line 117 中的 MigrationTools.Enrichers.TfsNodeStructure.ProcessorExecutionBegin(IProcessor 处理器)
在 D:\a\1\s\src\MigrationTools.Clients.AzureDevops.ObjectModel\Processors\TfsAreaAndIterationProcessor.cs:line 41 中的 MigrationTools.Processors.TfsAreaAndIterationProcessor.InternalExecute()
在 D:\a\1\s\src\MigrationTools\Processors\Processor.cs:line 78 [13:27:51 INF] 中的 MigrationTools.Processors.Processor.Execute()
TfsAreaAndIterationProcessor 在 00:00:00.0069124 完成