Pipeline migrate/copy with versions as well

When I am copying the pipeline from one project to another, the version information on the source project is not available in the target project space for the same pipeline.

What is the best to way to copy/migrate the pipeline with version information as well.