Migrating jenkins - jobs failing


I migrated jenkins 2.373 which was on azure vm (centos) to a new azure vm (ubuntu jammy) .
I backed up the jenkins home directory with a filesystem snapshot. il was on a separate volume.

I attached the new separate volume with the jenkins home directory to the new vm.
jenkins is started and i am seeing everything. the jobs, the user, the plugins…
but the jobs pass only until a certain stage, mostly untill the end of build and then they fail.

also i have to note that both of my jenkins, old and new are running. and they are connected to the same bitbucket. i don’t know though if this is causing the problem

is ther anything else i need to back up or install on the new vm ?