Cloud Technology

Best strategies for migrating Jenkins from on-premise to Google Cloud Platform?

TH Asked by Thomas Hernandez · 05-02-2024
0 upvotes 5,650 views 0 comments
The question

My organization is planning to migrate our entire CI/CD infrastructure from an on-premise server to GCP. We have a lot of legacy plugins and custom shell scripts. Should we use the Jenkins GKE setup or just mirror our current VM setup using Google Compute Engine? I'm concerned about plugin compatibility and the migration of our build history and artifacts.

3 answers

0
SU
Answered on 06-02-2024

Use the "Configuration as Code" (JCasC) plugin to rebuild your Jenkins instance on GCP. It makes the migration much cleaner and reproducible.

MA 08-02-2024

Susan is right. JCasC is essential for cloud migrations to ensure your configuration isn't lost and can be easily updated in the new environment.

0
MA
Answered on 07-02-2024

If you want to modernize, GKE is the way to go, but if you have a lot of "legacy" dependencies, a "Lift and Shift" to Google Compute Engine (GCE) is safer and faster. You can use the Google Cloud Storage (GCS) plugin to offload your build artifacts, which solves the storage scaling issue. For build history, you can simply rsync your JENKINS_HOME directory to the new persistent disk on GCE. Once you are stable on GCE, you can slowly containerize your build environments and eventually migrate those agents to GKE without moving the entire controller at once.

0
RI
Answered on 09-02-2024

Are you worried about the networking latency between your on-premise bitbucket and the new Jenkins instance on GCP during the transition?

TH 11-02-2024

Latency is definitely a concern, Richard. We are setting up a Cloud VPN to ensure a secure and fast connection. To mitigate issues, we are moving our Git repositories to Google Cloud Source Repositories first. This minimizes the cross-environment traffic. Mary's suggestion of a staged migration is what we've decided on; we'll start with the agents on GCE and keep the controller on-premise for a few weeks to ensure all our custom hooks still work before making the final jump.

Share your thoughts

Your email address will not be published. Required fields are marked (*)

Professional Counselling Session

Still have questions?
Schedule a free counselling session

Our experts are ready to help you with any questions about courses, admissions, or career paths. Get personalized guidance from industry professionals.

Request a Call Back

Search Online

We Accept

We Accept

Follow Us

"PMI®", "PMBOK®", "PMP®", "CAPM®" and "PMI-ACP®" are registered marks of the Project Management Institute, Inc. | "CSM", "CST" are Registered Trade Marks of The Scrum Alliance, USA. | COBIT® is a trademark of ISACA® registered in the United States and other countries.

Book Free Session