Thanks for providing the above solutions. We are working on the same and will get in touch with you if we have any issues.
We have implemented Option 1 in Azure pipeline and now it has been reduced the build run time up to 30 minutes. Thanks for your support.