How to upgrade ubuntu 20.04 to ubuntu 22.04 local repo in foreman?

Problem:
Hello,
I want to perform an upgrade of ubuntu 20.04 to ubuntu 22.04 in our dev environment.
Our servers are connected to a foreman server with subscription-manager.

I have tested with the do-release-upgrade tool but it needs an internet connection to check the next LTS version. After that, do-release-upgrade tool download a “jammy” upgrade tool to perform the upgrade.

But our servers don’t have internet connection so i would like to perform this upgrade with local sources in our foreman server.

PS: I have make an Content Views Composite with focal sources and jammy sources and one server is linked to this CVC.

Expected outcome:

Foreman and Proxy versions:
3.0.1

Foreman and Proxy plugin versions:
foreman-tasks = 5.1.1
foreman_puppet = 1.0.5
foreman_remote_execution = 4.8.0
katello = 4.2.1

Distribution and version:
RHEL Linux Server release 7.9 (Maipo)

Other relevant data: