GitRepositoryEnricher: Target Repo not found, TfsGitRepositoryTool #2493
kannnababu
started this conversation in
General
Replies: 1 comment 2 replies
-
No, the tool does not support having linked repos in a separate project from the one work items are migrated to. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Title: TfsGitRepositoryTool
Path: _reference/reference.tools.tfsgitrepositorytool.md
I discovered that the links to Commits are broken and displaying the following error after the migration was completed
GitRepositoryEnricher: Target Repo not found. Cannot map https://*****/***Collection/Test/_git/ to ???
Upon analysing the problem, I have determined that it is looking for the repository in the target project that is mentioned in the configuration; if it is not found, an error is being thrown.
In my situation, the repository is located in a different project than what is specified in the configuration file. Therefore, the repository name must be searched in a different project. However, it can't do that.
Could you please check if this tool allows you to locate the repository in a separate project for work item commits?
Below is configuration i used,
"Processors": [
{
"ProcessorType": "TfsWorkItemMigrationProcessor",
"Enabled": true,
"UpdateCreatedDate": true,
"UpdateCreatedBy": true,
"WIQLQuery": "SELECT [System.Id] FROM WorkItems WHERE [System.TeamProject] = @teamproject AND [System.WorkItemType] NOT IN ('Test Suite', 'Test Plan','Code Review Request','Shared Steps','Shared Parameter','Feedback Request','Code Review Response') AND [System.ID] IN (251655) ORDER BY [System.ChangedDate] desc",
"FixHtmlAttachmentLinks": true,
"WorkItemCreateRetryLimit": 5,
"FilterWorkItemsThatAlreadyExistInTarget": false,
"PauseAfterEachWorkItem": false,
"AttachRevisionHistory": false,
"GenerateMigrationComment": true,
"WorkItemIDs": null,
"MaxGracefulFailures": 0,
"SkipRevisionWithInvalidIterationPath": false,
"SkipRevisionWithInvalidAreaPath": false,
"Enrichers": null,
"SourceName": "Source",
"TargetName": "Target",
"RefName": null
}
],
"CommonTools": {
"TfsGitRepositoryTool": {
"Enabled": "True",
"Mappings": [{"Test.ProjectName" : "Test3.ProjectName"}]
},
"StringManipulatorTool": {
"Enabled": "True",
"Manipulators": [
{
"$type": "RegexStringManipulator",
"Description": "Remove invalid characters from the end of the string",
"Enabled": "False",
"Pattern": "[^( -~)\n\r\t]+",
"Replacement": ""
}
],
"MaxStringLength": "1000000"
},
"FieldMappingTool": {
"Enabled": true,
"FieldMaps": [
]
}
}
Beta Was this translation helpful? Give feedback.
All reactions