how to deploy gradle spring boot application to GCP with pipeline

Deleted user July 8, 2019

Is there any example to show how to deploy a gradle spring boot application to GCP using pipeline?

1 answer

0 votes
Oleksandr Kyrdan
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 31, 2019

Hi @[deleted] ,

You can use a new version of the pipe atlassian/google-app-engine-deploy:0.4.0.


To deploy Java Spring Boot application you should provide to pipe

DEPLOYABLES: 'build/staged-app/app.yaml' 

that available after gradle build command.

For example, your bitbucket-pipelines.yml can be:

image: atlassian/default-image:2

pipelines:
default:
- step:
name: Deploy app
script:
- pipe: atlassian/google-app-engine-deploy:0.4.0
variables:
KEY_FILE: $KEY_FILE
PROJECT: 'pipes-java-gradle-spring-boot'
DEPLOYABLES: 'build/staged-app/app.yaml'
# DEPLOYABLES: 'src/main/WEB-INF/appengine-web.xml' # or you can provide web.xml
VERSION: '${BITBUCKET_BUILD_NUMBER}'
EXTRA_ARGS: '--verbosity=debug'

 

Cheers,
Alex 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events