Google Cloud: Configuring Jenkins Using Google Marketplace and Deployment Manager

Rajeev Ghosh
Jan 22 · 5 min read
Image for post


In this article we are going to learn how to use Google Cloud Marketplace and Google Cloud Deployment Manager to Deploy Jenkins with minimum effort.

What is Google Cloud Marketplace?

Google Cloud Marketplace lets you quickly deploy functional software packages that run on Google Cloud. Even if you are unfamiliar with services like Compute Engine or Cloud Storage, you can start up a familiar software package without having to manually configure the software, virtual machine (VM) instances, storage, or network settings. You can deploy a software package now, and scale that deployment later when your apps require additional capacity.

What is Google Cloud Deployment Manager?

Google Cloud Deployment Manager allows you to specify all the resources needed for your application in a declarative format using yaml. You can also use Python or Jinja2 templates to parameterize the configuration and allow reuse of common deployment paradigms such as a load balanced, auto-scaled instance group. Treat your configuration as code and perform repeatable deployments.

Use Marketplace to build a deployment

Navigate to Marketplace

  1. In the Cloud Console, on the Navigation menu , click Marketplace.

2. Locate the Jenkins deployment by searching for Jenkins Certified by Bitnami.

3. Click on the deployment and read about the service provided by the software.

Jenkins is an open-source continuous integration environment. You can define jobs in Jenkins that can perform tasks such as running a scheduled build of software and backing up data. Notice the software that is installed as part of Jenkins shown in the left side of the description.

The service you are using, Marketplace, is part of Google Cloud. The Jenkins template is developed and maintained by an ecosystem partner named Bitnami.

4. Click Launch.

Image for post

5. Verify the deployment, accept the terms and services and click Deploy.

6. Click Close on the Welcome to Deployment Manager window.

It will take a minute or two for Deployment Manager to set up the deployment. You can watch the status as tasks are being performed. Deployment Manager is acquiring a virtual machine instance and installing and configuring software for you.

You will see jenkins-1 has been deployed when the process is complete.

Deployment Manager is a Google Cloud service that uses templates written in a combination of YAML, python, and Jinja2 to automate the allocation of Google Cloud resources and perform setup tasks.

Behind the scenes a virtual machine has been created. A startup script was used to install and configure software, and network Firewall Rules were created to allow traffic to the service

View installed software and login to Jenkins

7. In the right pane, click More about the software to view additional software details. Look at all the software that was installed.

8. Copy the Admin user and Admin password values to a text editor.

9. Click Visit the site to view the site in another browser tab. If you get an error, you might have to reload the page a couple of times.

10. Log in with the Admin user and Admin password values.

11. After logging in, if you are asked to Customize Jenkins. Click Install suggested plugins, and then click Restart after the installation is complete.

View the deployment and SSH to the VM

12. In the Cloud Console, on the Navigation menu, click Deployment Manager.

13. Click jenkins-1.

14. Click SSH to connect to the Jenkins server.

The Console interface is performing several tasks for you transparently. For example, it has transferred keys to the virtual machine that is hosting the Jenkins software so that you can connect securely to the machine using SSH.

Shut down and restart the services

15. In the SSH window, enter the following command to shut down all the running services:

sudo /opt/bitnami/ stop

16. Refresh the browser window for the Jenkins UI. You will no longer see the Jenkins interface because the service was shut down.

17. In the SSH window, enter the following command to restart the services:

sudo /opt/bitnami/ restart

18. Return to the browser window for the Jenkins UI and refresh it. You may have to do it a couple of times before the service is reachable.

This concludes our tutorial for Configuring Jenkins Using Google Marketplace and Deployment Manager.

Happy Learning !!!

👋 Join FAUN today and receive similar stories each week in your inbox! ️ Get your weekly dose of the must-read tech stories, news, and tutorials.

Follow us on Twitter 🐦 and Facebook 👥 and Instagram 📷 and join our Facebook and Linkedin Groups 💬

If this post was helpful, please click the clap 👏 button below a few times to show your support for the author! ⬇


The Must-Read Publication for Creative Developers & DevOps Enthusiasts

Sign up for FAUN


Medium’s largest and most followed independent DevOps publication. Join thousands of aspiring developers and DevOps enthusiasts Take a look.

By signing up, you will create a Medium account if you don’t already have one. Review our Privacy Policy for more information about our privacy practices.

Check your inbox
Medium sent you an email at to complete your subscription.

Rajeev Ghosh

Written by

Artificial Intelligence | Machine Learning | DevOps enthusiast



The Must-Read Publication for Creative Developers & DevOps Enthusiasts. Medium’s largest DevOps publication.

Medium is an open platform where 170 million readers come to find insightful and dynamic thinking. Here, expert and undiscovered voices alike dive into the heart of any topic and bring new ideas to the surface. Learn more

Follow the writers, publications, and topics that matter to you, and you’ll see them on your homepage and in your inbox. Explore

If you have a story to tell, knowledge to share, or a perspective to offer — welcome home. It’s easy and free to post your thinking on any topic. Write on Medium

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store