Google Cloud Platform Blog
Using Bitbucket for Push-to-Deploy
Wednesday, September 17, 2014
A few months ago, we rolled out support for
Push-To-Deploy with GitHub repositories
. Today we are happy to extend Push-To-Deploy’s support to
Bitbucket
Git repositories. By connecting your App Engine project to your Bitbucket Git repository, you can trigger a deployment of your Java, Python or PHP app by pushing to the project’s master branch on Bitbucket.
Push to Deploy automates your build, test and deploy process triggered by your familiar git commands. It makes delivering code changes to your application easy, safe and fast. Furthermore, managing your release on Google Cloud Platform gives you access to the other exciting devops tools such as
Log to Source linking
.
"Bitbucket users can now easily deploy their apps to Google App Engine." said Jens Schumacher, Group Product Manager at
Atlassian
. "With Push-to-Deploy, developers can trigger a deployment by pushing to the repository’s master branch or by merging an approved pull request on Bitbucket."
Let’s walk through an example.
Connecting the repository
Go to the
Google Developers Console
and create a project or click on an existing project that you wish to sync with Bitbucket.
Click Source Code and then Browse in the left-hand navigation panel.
The next step is to link your project’s repository to Bitbucket.
If your project does not have git repo or has an empty git repo, you will come directly to the “Source Repository Settings” page. Click “Connect” below the Bitbucket logo.
If your project has a non empty git repo, you will see a screen listing the content of the current repo. You can change repo setting to connect with a Bitbucket repo (note that this will override the current content of the Project’s repo). Click the Settings icon to get to the “Source Repository Settings” page shown above and then click “Connect” below the Bitbucket logo.
You will be redirected to Bitbucket to authenticate and grant access to your Bitbucket repositories. Click “Grant access”. You may be prompted to log into your Bitbucket account.
Once you have granted access, you will see a list of all Bitbucket Git repositories that you have access to. Choose the repository that you want to connect this project to.
Read and accept the consent option in the dialog box and click
Connect
.
The Bitbucket repository now appears on the Repo Settings page
You can setup your release pipeline following
these instructions
Once your release pipeline is setup, every time you push to your project’s master branch on Bitbucket using
git push origin master
the source code will be deployed to App Engine. The Release page also shows you the status of the current and past deployments.
-Posted by Rae Wang, Product Manager
No comments :
Post a Comment
Don't Miss Next '17
Use promo code NEXT1720 to save $300 off general admission
REGISTER NOW
Free Trial
GCP Blogs
Big Data & Machine Learning
Kubernetes
GCP Japan Blog
Labels
Announcements
56
Big Data & Machine Learning
91
Compute
156
Containers & Kubernetes
36
CRE
7
Customers
90
Developer Tools & Insights
80
Events
34
Infrastructure
24
Management Tools
39
Networking
18
Open Source
105
Partners
63
Pricing
24
Security & Identity
23
Solutions
16
Stackdriver
19
Storage & Databases
111
Weekly Roundups
16
Archive
2017
Feb
Jan
2016
Dec
Nov
Oct
Sep
Aug
Jul
Jun
May
Apr
Mar
Feb
Jan
2015
Dec
Nov
Oct
Sep
Aug
Jul
Jun
May
Apr
Mar
Feb
Jan
2014
Dec
Nov
Oct
Sep
Aug
Jul
Jun
May
Apr
Mar
Feb
Jan
2013
Dec
Nov
Oct
Sep
Aug
Jul
Jun
May
Apr
Mar
Feb
Jan
2012
Dec
Nov
Oct
Sep
Aug
Jul
Jun
May
Apr
Mar
Feb
Jan
2011
Dec
Nov
Oct
Sep
Aug
Jul
Jun
May
Apr
Mar
Feb
Jan
2010
Dec
Oct
Sep
Aug
Jul
Jun
May
Apr
Mar
Feb
Jan
2009
Dec
Nov
Oct
Sep
Aug
Jul
Jun
May
Apr
Mar
Feb
Jan
2008
Dec
Nov
Oct
Sep
Aug
Jul
Jun
May
Apr
Feed
Subscribe by email
Technical questions? Check us out on
Stack Overflow
.
Subscribe to
our monthly newsletter
.
Google
on
Follow @googlecloud
Follow
Follow
No comments :
Post a Comment