0

我正在尝试在 Azure DevOps Server 2019 上的两个不同集合之间进行第一次迁移。

新集合具有自定义继承过程模型。

我现在只尝试迁移测试用例。我想迁移测试用例、测试套件和测试计划。

我已经根据我的理解添加了配置,但是迁移一直失败。

错误信息:

migration.exe Warning: 0 : [EXCEPTION] Microsoft.TeamFoundation.WorkItemTracking.Client.ValidationException: Expecting end of string. The error is caused by «BY».
at Microsoft.TeamFoundation.WorkItemTracking.Client.Query.Initialize(WorkItemStore store, String wiql, IDictionary context, Int32[] ids, Int32[] revs, Boolean dayPrecision)

从下面的配置文件中编辑处理器。

谢谢!

  "Processors": [
    {
      "ObjectType": "VstsSyncMigrator.Engine.Configuration.Processing.NodeStructuresMigrationConfig",
      "PrefixProjectToNodes": false,
      "Enabled": false,
      "BasePaths": [
        "****\\Market Regulation\\Market Surveillance - Bonds",
        "****\\Trading Value Stream"
      ]
    },
    {
      "ObjectType": "VstsSyncMigrator.Engine.Configuration.Processing.WorkItemMigrationConfig",
      "ReplayRevisions": true,
      "PrefixProjectToNodes": false,
      "UpdateCreatedDate": true,
      "UpdateCreatedBy": true,
      "UpdateSourceReflectedId": false,
      "BuildFieldTable": false,
      "AppendMigrationToolSignatureFooter": false,
      "QueryBit": "AND  [System.AreaPath] = '****\\Market Regulation\\Market Surveillance – Bonds'  AND [System.WorkItemType] = 'Test Case' ",
      "OrderBit": "ORDER BY [System.Id]",
      "Enabled": true,
      "LinkMigration": true,
      "AttachmentMigration": true,
      "AttachmentWorkingPath": "c:\\temp\\WorkItemAttachmentWorkingFolder\\",
      "FixHtmlAttachmentLinks": false,
      "SkipToFinalRevisedWorkItemType": false,
      "WorkItemCreateRetryLimit": 5,
      "FilterWorkItemsThatAlreadyExistInTarget": true,
      "PauseAfterEachWorkItem": false,
      "AttachmentMazSize": 480000000,
      "CollapseRevisions": false
    }
  ]
4

1 回答 1

1

我相信你的“OrderBit”语法是错误的,它应该是这样的:

"OrderBit": "[System.ChangedDate] desc"

只需根据您的情况进行调整即可。

于 2020-07-17T13:18:13.003 回答