azure-devops-migration-tools
azure-devops-migration-tools copied to clipboard
Not able to migrate Azure Devops Pipeline using AzureDevOpsPipelineProcessor
I have been using the latest version (11.12) of the tool and I am receiving the below error.
Here's a copy of the log file
Error while running AzureDevOpsPipelineProcessor
System.NullReferenceException: Object reference not set to an instance of an object.
at MigrationTools.Processors.AzureDevOpsPipelineProcessor.MapRepositoriesInBuidDefinition(IEnumerable1 sourceRepositories, IEnumerable
1 targetRepositories, BuildDefinition definitionToBeMigrated) in D:\a\1\s\src\MigrationTools.Clients.AzureDevops.Rest\Processors\AzureDevOpsPipelineProcessor.cs:line 299
at MigrationTools.Processors.AzureDevOpsPipelineProcessor.<CreateBuildPipelinesAsync>d__15.MoveNext() in D:\a\1\s\src\MigrationTools.Clients.AzureDevops.Rest\Processors\AzureDevOpsPipelineProcessor.cs:line 243
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at MigrationTools.Processors.AzureDevOpsPipelineProcessor.<MigratePipelinesAsync>d__9.MoveNext() in D:\a\1\s\src\MigrationTools.Clients.AzureDevops.Rest\Processors\AzureDevOpsPipelineProcessor.cs:line 93
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at MigrationTools.Processors.AzureDevOpsPipelineProcessor.InternalExecute() in D:\a\1\s\src\MigrationTools.Clients.AzureDevops.Rest\Processors\AzureDevOpsPipelineProcessor.cs:line 47
at MigrationTools.Processors.Processor.Execute() in D:\a\1\s\src\MigrationTools\Processors\Processor.cs:line 106
Here's the configuration that i am using:
{ "ChangeSetMappingFile": null, "Endpoints": { "AzureDevOpsEndpoints": [ { "Name": "Source", "$type": "AzureDevOpsEndpointOptions", "Organisation": "https://dev.azure.com/abc/", "Project": "XYZ", "ReflectedWorkItemIDFieldName": "Custom.ReflectedWorkItemId", "AuthenticationMode": "AccessToken", "AccessToken": "", "EndpointEnrichers": null
},
{
"Name": "Target",
"$type": "AzureDevOpsEndpointOptions",
"Organisation": "https://dev.azure.com/abc/",
"Project": "xyz",
"ReflectedWorkItemIDFieldName": "TfsMigrationTool.ReflectedWorkItemId",
"AuthenticationMode": "AccessToken",
"AccessToken": "",
"EndpointEnrichers": null
}
]
}, "LogLevel": "Information", "Processors": [
{
"$type": "AzureDevOpsPipelineProcessorOptions",
"Enabled": true,
"MigrateBuildPipelines": true,
"MigrateReleasePipelines": true,
"MigrateTaskGroups": true,
"MigrateVariableGroups": true,
"MigrateServiceConnections": true,
"BuildPipelines": null,
"ReleasePipelines": null,
"RefName":null,
"SourceName": "Source",
"TargetName": "Target",
"RepositoryNameMaps": {"xyz":"xyz"}
}
], "Version": "11.12",
"Endpoints": { "InMemoryWorkItemEndpoints": [ { "Name": "Source", "EndpointEnrichers": null }, { "Name": "Target", "EndpointEnrichers": null } ] } }
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 10 days
Hello @Anitharangaswamy!
I need some more information in order to work on your Issue:
Where is the code getting consumed by the Pipeline located? Are there special characters inside the repos name?
Hi @tomfrenzel,
Thanks for reply.
Since we did not hear back we completed Pipeline migration Manually.
Following is the answer to your queries :-
Where is the code getting consumed by the Pipeline located? Code is in Github.
Are there special characters inside the repos name? Yes, we have used '-'
Hi @Anitharangaswamy , hi @tomfrenzel
Me too, i have the same error, version (12.0)
"MigrationTools.Processors.AzureDevOpsPipelineProcessor.MapRepositoriesInBuidDefinition(IEnumerable1 sourceRepositories, IEnumerable
1 targetRepositories, BuildDefinition definitionToBeMigrated)"
The repos name contains "-" and "_" these repos are in azure devops,
please, have you already found the solution or how did you solve it?
thank you
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 10 days