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
application.
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:
https://cloud.google.com/sdk/release_notes
#============================================================#
#= 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...
...........................................................done.
Update done!
Restarting command:
$ gcloud app deploy src/main/webapp/WEB-INF/appengine-web.xml --quiet
ERROR: (gcloud.app.deploy) 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