这是我用于迁移的配置文件。
这是我的终点
{
"Version": "11.11",
"workaroundForQuerySOAPBugEnabled": false,
"LogLevel": "Information",
"ChangeSetMappingFile": null,
"GitRepoMapping": null,
"Processors": [
{
"$type": "AzureDevOpsPipelineProcessorOptions",
"Enabled": true,
"MigrateBuildPipelines": true,
"MigrateReleasePipelines": true,
"MigrateTaskGroups": true,
"MigrateVariableGroups": true,
"MigrateServiceConnections": true,
"BuildPipelines": null,
"ReleasePipelines": null,
"ProcessorEnrichers": null,
"SourceName": "Source",
"TargetName": "Target"
},
"Endpoints":
{
"AzureDevOpsEndpoints": [
{
"Name": "Source",
"Organisation": "https://dev.azure.com/source/",
"Project": "srcprj",
"ReflectedWorkItemIdField": "ReflectedWorkItemId" ,
"AuthenticationMode": "AccessToken",
"AccessToken": "token value",
"AllowCrossProjectLinking": false,
"EndpointEnrichers": false
},
{
"Name": "Target",
"Organisation": "https://dev.azure.com/target/",
"Project": "targetproj",
"ReflectedWorkItemIdField": "ReflectedWorkItemId" ,
"AuthenticationMode": "AccessToken",
"AccessToken": "token value",
"AllowCrossProjectLinking": false,
"EndpointEnrichers": false
}
]
}
使用上述配置文件运行迁移器时出现以下错误。
Newtonsoft.Json.JsonSerializationException:*将值 {null} 转换为类型“System.Boolean”时出错。路径“repository.clean”,第 1 行,位置 1316。---> System.InvalidCastException:Null 对象无法转换为值类型。在 System.Convert.ChangeType(Object value, Type conversionType, IFormatProvider provider) 在 Newtonsoft.Json.Serialization.JsonSerializerInternalReader.EnsureType(JsonReader reader, Object value, CultureInfoculture, JsonContract contract, Type targetType)
这是错误迁移错误的屏幕截图*