Migrating Jenkins to Cloud

Hi,
We would like to migrate our on-premise jenkins server to Azure cloud.

  1. what is the best option to migrate : to VM or AppService or AKS container?
  2. Can replacing the Jenkins_HOME from source to destination suffice or some extra steps to be done?
  3. What about slaves and Jenkins environment variables?
  4. Can we have documentation for cloud migration?
    Regards
    J.Jaiganesh

This feels like you were given a checklist and just asking us, most of this pretty searchable

The best one is the one your most comfortable with.

Yep, shutdown one (so it doesn’t do writes), copy the files over, start up new one. Its pretty forgiving

agents. And what environment variables are you meaning? Credentails are stored in JENKINS_HOME so they would get copied over. If your using permanent agents like SSH or JNLP, those are configured in JENKINS_HOME and should get copied over.

First google result for “jenkins migration” is data migration - How to move Jenkins from one PC to another - Stack Overflow which would seem to help. All of our documentation is written by volunteers, so once you figure out more details, feel free to open a PR and contribute back your learnings. I did a quick search on jenkins.io and didn’t see anything about migrating.