azure-devops-migration-tools icon indicating copy to clipboard operation
azure-devops-migration-tools copied to clipboard

Unable to migrate pipelines using AzureDevOpsPipelineProcessorOptions

Open visagansanthanam-unisys opened this issue 2 years ago • 5 comments

I am running the 12.0 version of the tool trying to migrate data from one project to another in the same Azure DevOps Organisation and i get the following error while using AzureDevOpsPipelineProcessorOptions to migrate build pipelines

[15:26:23 FTL] Error while running AzureDevOpsPipelineProcessor System.NullReferenceException: Object reference not set to an instance of an object. at MigrationTools.Processors.AzureDevOpsPipelineProcessor.<CreateBuildPipelinesAsync>d__15.MoveNext() in D:\a\1\s\src\MigrationTools.Clients.AzureDevops.Rest\Processors\AzureDevOpsPipelineProcessor.cs:line 235 --- 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 [15:26:23 INF] AzureDevOpsPipelineProcessor completed in 00:00:01.1730514

Below is my config file, code repository is already migrated using git commands.

image

visagansanthanam-unisys avatar Jun 20 '22 10:06 visagansanthanam-unisys

Hi @visagansanthanam-unisys!

can you please provide me the full log of your migration run?

tomfrenzel avatar Jul 04 '22 11:07 tomfrenzel

Hi @visagansanthanam-unisys!

can you please provide me the full log of your migration run?

Hi @tomfrenzel

log attached. Any help on this is appreciated pipeline-migration-log.txt

Build definition is migrating successfully but the runs are not migrated.

Source image

Target image

visagansanthanam-unisys avatar Jul 06 '22 05:07 visagansanthanam-unisys

Hi @visagansanthanam-unisys

We are also trying to migrate pipelines using the tool. We got the same error. Could you please help us with config files you had?

AnushaCha avatar Jul 11 '22 07:07 AnushaCha

Hi @visagansanthanam-unisys

We are also trying to migrate pipelines using the tool. We got the same error. Could you please help us with config files you had?

Hi @AnushaCha ,

what version are you in. updating the tool to latest version solved the error for me. but only the pipeline definition gets migrated and not the build history

visagansanthanam-unisys avatar Jul 11 '22 09:07 visagansanthanam-unisys

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

github-actions[bot] avatar Aug 11 '22 00:08 github-actions[bot]

Hi @visagansanthanam-unisys! can you please provide me the full log of your migration run?

Hi @tomfrenzel

log attached. Any help on this is appreciated pipeline-migration-log.txt

Build definition is migrating successfully but the runs are not migrated.

Source image

Target image

We are using th same config.json file and getting the same error , Could some one please assist us, Thank you. We are migrating pipelines from One organization to another organization.

KumarBapun avatar Nov 01 '23 13:11 KumarBapun