Google Cloud: Configuring Jenkins Using Google Marketplace and Deployment Manager

Share At:


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.

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 !!!

Share At:
0 0 votes
Article Rating
Notify of
Oldest Most Voted
Inline Feedbacks
View all comments
đăng ký tài khoản binance

Can you be more specific about the content of your article? After reading it, I still have some doubts. Hope you can help me.

gate io türkiye
22 days ago

After reading your article, it reminded me of some things about gate io that I studied before. The content is similar to yours, but your thinking is very special, which gave me a different idea. Thank you. But I still have some questions I want to ask you, I will always pay attention. Thanks.

Finance Your Crypto on gate io

Reading your article helped me a lot and I agree with you. But I still have some doubts, can you clarify for me? I’ll keep an eye out for your answers.

Back To Top

Contact Us