Run Jenkins on Google App Engine Standard environment

44 views
Skip to first unread message

Krisztian Zagonyi

unread,
Dec 16, 2020, 11:01:34 AM12/16/20
to Google App Engine
Hello.
I want to run Jenkins on GAE in Standard environment, but I cant find any tutorial, project, document or anything...
Somebody did that before?
Maybe can you help me where, to start?
Thanks for your reply. :)

Elliott (Cloud Platform Support)

unread,
Dec 16, 2020, 3:32:59 PM12/16/20
to Google App Engine

Hello,

Using the information I have available to me from your question, I was able to find a video link that has a laboratory setting up Jenkins with Google App Engine.

I hope this is sufficient for you since I do not have more detail to go on. If you have some more specific questions, please reply.

From the link:

Google App Engine is a platform as a service offered by Google. It helps in running our application on world class Google infrastructure without worrying too much. So, how do we automate the deployment of applications onto Google App Engine with a continuous Integration and continuous delivery tool like Jenkins.

In this video, you will learn about custom plugins, configuring Google service-account-credentials in Jenkins and deploying applications onto Google App Engine securely while also stopping and deleting previous versions along with rolling back the changes in case of test failure.

I hope this helps.

C Mos

unread,
Dec 16, 2020, 8:39:24 PM12/16/20
to Google App Engine
Hello,
From what I understand from your question, you want to run Jenkins in App Engine.  GAE is design for microservice architecture and I really doubt it can be used to run Jenkins loads.   May I ask what features do you find in App Engine appealing to do this? 
I would like to suggest exploring using GCE instance with auto-scaling features. You should be able to find tutorials for this.

If your question is related to deploying App Engine instances using Jenkins, I have not done it myself but this should be possible.

Krisztian Zagonyi

unread,
Dec 17, 2020, 10:54:20 AM12/17/20
to Google App Engine
Thanks for your answers. And yes, I want to run Jenkins inside App Engine. Currently I am running Jenkins inside GCE, but I need that feature what App Engine gives us, it can scale down to zero and, the engine runs only, when a request comes. GCE is running in 0-24. And I have to pay 0-24, aren't I? Or can we scale to zero the GCE? :O 

Elliott (Cloud Platform Support)

unread,
Dec 17, 2020, 12:11:57 PM12/17/20
to Google App Engine
Hello,

Thank you for the information you provided. I was able to find a tutorial on how to use Jenkins with Cloud Run here. The guide explains how to build docker image in dockerized Jenkins, push image to Google Container Registry and deploy it to Cloud Run.

I believe that Cloud Run would be appropriate for your use case since it can scale down to zero. Look here.

Cloud Run abstracts away all infrastructure management by automatically scaling up and down from zero almost instantaneously—depending on traffic.

For your question on Virtual Machine scaling, I was able to find this document. One Compute VM must be turned on to operate.

Pricing for Compute Engine is based on per-second usage of the machine types, persistent disks, and other resources that you select for your virtual machines.

I hope this helps.

Krisztian Zagonyi

unread,
Dec 21, 2020, 4:33:05 AM12/21/20
to Google App Engine
Thank for your reply, but I figured it out. The Jenkins is not capable to run on AppEngine or Cloud run, because both of are serverless environments, and the Jenkins is a server. 
However you didn't understand my question, because I wanted to run Jenkins on AppEngine or Cloud Run, because of scale to zero. But I figured it out and successfully deployed Jenkins to Cloud Run, It worked until the server scaled to 0, when it happened, the Jenkins died, and needed to reconfigure it. 
Thats why I will use GCE in the future. But thanks for your time. :)

Reply all
Reply to author
Forward
0 new messages