You'll need roughly 2 minutes to read this article.
This article is for deploying to Google App Engine with the built-in Codeship integration. This integration runs the older App Engine SDK version
1.9.42 and supports the following languages: Java, Python and Go.
Navigate to your project’s deployment configuration page by selecting Project Settings > Deployment on the top right side of the page.
Edit an existing deployment pipeline or create a new deployment pipeline by selecting + Add new deployment pipeline. Create the deployment pipeline to match the exact name of your deployment branch or a wildcard branch.
Select Google App Engine
The first time you want to connect Codeship to Google App Engine we will ask for credentials through OAuth.
You will then be directed to log into your Google account.
Once connected, you will be brought back to your Google App Engine deployment settings page.
You can set the path of your
appcfg.* file in the Update Path: field. If the file exists on the root of your repository, simply leave it blank.
By default we search for a
app.yml file in the path you’ve set. If we find it we will use the
appcfg.py script to upload your application. If the
app.yml file is not located, we’ll presume the application to be Java based and will use the
appcfg.sh script instead.
You have the option of adding the URL of your GAE app below to call after the deployment to make sure everything is up and running.
You have now successfully setup deployment to Google App Engine. Go ahead and push a commit to your configured deploy branch.
The specific implementation Google App Engines uses to authenticate with other services like Codeship omits certain information if you re-authenticate (specifically the OAuth refresh token).
If you encounter authentication problems with your GAE deployments, please visit the Google OAuth Application Settings and remove the Codeship application from your account.
Once you’ve done the above step, disconnecting and reconnecting to App Engine on Connected Services will update your authentication settings and allow deployments to App Engine.
Please save the deployment settings after reconnecting to GAE to ensure that we use the newly created token.
We also have a couple of code examples and sample projects available.