Issue with the AzureDevOpsPipelineProcessor
See original GitHub issueI am trying to migrate a pipeline from TFS Version Dev18.M170.6 to Azure devops services. unfortunately, it’s not working. Am i missing a parameter in the endpoints definition?
I tried to look in the example config file from the documentation, but i couldn’t come up with anything.
Here’s the configuration that i am using:
{
"ChangeSetMappingFile": null,
"GitRepoMapping": null,
"LogLevel": "Information",
"Endpoints": {
"AzureDevOpsEndpoints": [
{
"name": "Source",
"$type": "AzureDevOpsEndpointOptions",
"Organisation": "https://devops-uat.ema.com/HR_OPS",
"Project": "TFS Migration POC",
"AuthenticationMode": "AccessToken",
"AccessToken": "token",
"EndpointEnrichers": null
},
{
"Name": "Target",
"$type": "AzureDevOpsEndpointOptions",
"Organisation": "https://dev.azure.com/ifs/",
"Project": "TFS Migration POC",
"AuthenticationMode": "AccessToken",
"AccessToken": "token",
"EndpointEnrichers": null
}
]
},
"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"
}
],
"Version": "11.9"
}
Here’s a copy of the log file
[15:15:44 FTL] Error while running AzureDevOpsPipelineProcessor
System.NullReferenceException: Object reference not set to an instance of an object.
at MigrationTools.Endpoints.AzureDevOpsEndpoint.<GetApiDefinitionsAsync>d__6`1.MoveNext()
--- 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.<CreateServiceConnectionsAsync>d__20.MoveNext() in D:\a\1\s\src\MigrationTools.Clients.AzureDevops.Rest\Processors\AzureDevOpsPipelineProcessor.cs:line 391
--- 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 80
--- 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 78
[15:15:44 INF] AzureDevOpsPipelineProcessor completed in 00:00:00.1255732
[15:15:44 ERR] AzureDevOpsPipelineProcessor The Processor MigrationEngine entered the failed state...stopping run
[15:15:44 INF] Application is shutting down...
Issue Analytics
- State:
- Created 3 years ago
- Comments:34 (2 by maintainers)
Top Results From Across the Web
Troubleshoot pipeline runs - Azure DevOps
If a pipeline doesn't start at all, check the following common trigger related issues. ... An additional reason that runs may not start...
Read more >Azure Devops release failing with error
I have web app service as a deployment from azure devops release pipeline. ... I have applied some of steps to resolve this...
Read more >How to troubleshoot azure pipeline issue step by ... - YouTube
Join this channel to get access to perks: https://www.youtube.com/channel/UCGZmYZrk2Br7v6JIzytxshw/join Securing an Azure DevOps ...
Read more >Do Pipeline Migrations work - been using it and getting the ...
You have to create two "Endpoints" so the Pipeline Processor knows which ones to use. If you check out the source code here, ......
Read more >Azure DevOps Migration Tools
The Azure DevOps Migration Tools allow you to bulk edit and migrate data between Team ... AzureDevOpsPipelineProcessor, Beta, Pipelines.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@FokkoVeegens you’re welcome 😉
Alright, I have no clue why it worked for my organizational TFS but when I try migrating Azure DevOps Services Pipelines from one or to another, I received the same exception as you did.
My PR should fix that 😉