Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
badges earned

Your Points Tracker
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

App Engine deployment pipe fails to deploy Spring Boot app

I'm testing out Bitbucket Pipe for GCloud App Engine deployment. It turns out the deployment fails with the following message, stating that Java environment is missing:

INFO: Starting deployment to GCP app engine...
gcloud app deploy src/main/webapp/WEB-INF/appengine-web.xml --quiet
The component [app-engine-java] is required for staging this
Your current Cloud SDK version is: 242.0.0
Installing components from version: 242.0.0
| These components will be installed. |
| Name | Version | Size |
| Cloud Datastore Emulator | 2.1.0 | 18.4 MiB |
| gRPC python library | 1.9.1 | 12.1 MiB |
| gRPC python library | | |
| gcloud app Java Extensions | 1.9.73 | 104.8 MiB |
| gcloud app Python Extensions | 1.9.85 | 6.0 MiB |
For the latest full release notes, please visit:
#= Creating update staging area =#
#= Installing: Cloud Datastore Emulator =#
#= Installing: gRPC python library =#
#= Installing: gRPC python library =#
#= Installing: gcloud app Java Extensions =#
#= Installing: gcloud app Python Extensions =#
#= Creating backup and activating new installation =#
Performing post processing steps...
Update done!
Restarting command:
$ gcloud app deploy src/main/webapp/WEB-INF/appengine-web.xml --quiet
ERROR: ( To use the local staging for java, a Java 7+ JRE must be installed and on your system PATH
Deployment failed.

I manually examined the pipe Docker container and indeed it doesn't seem to have any Java installed:

docker run -i -t --entrypoint /bin/bash bitbucketpipelines/google-app-engine-deploy:0.3.1
bash-4.4# java -version
bash: java: command not found


1 answer

I got around this, somewhat, by using atlassian/google-app-engine-deploy:0.3.0 (version 0.3.0 instead of 0.3.1). I looked at the sizes of the two versions on dockerhub and noticed a very large difference in size. Assumed that a JRE was missing and thought I'd have nothing to lose in trying the downgrade.


So I get messages that tell me the app has deployed successfully, however something is still not right with it, as when I go to use it I get a "404 Not Found" - and the stackdriver logs aren't really telling me much yet. But according to the appengine dashboard the correct version of application seems to be running and available.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Marketplace Apps & Integrations

Staying organized with Jira: best practices for a better project management

Project managers know this problem: A “mountain of work” lays in front of you, and you don’t know how and where to tackle them. Different to-dos lie ahead, but just one task after the other can be ha...

190 views 2 1
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you