Push-To-Deploy to GitHub : Continuous Integration Enhancement

As described in this article, we can bind in a very simply way an App Engine project to a Github repository. The hook notification will hang perfectly at each change on the master branch. The sources will be recovered, and a build will be launched.

First of all, the project must be a standard Maven project with the pom.xml at the root. The next stage will follow three steps: Compilation, Tests and Deployment . We have a feedback for each step, and all will stop if an operation failed.

Finally, a log file is generated, and downloadable. If there is problem, this file is an entry point for further investigation.  Fortunately, it is very exhaustive because it is the console output of a Jenkins in background.

The user interface is clear, simple and effective. At each release, a line will be added, displaying the last commit, the possibility to review the git differences for release, and an icon of feedback for different steps.

 Here the steps to make it rock :

  • Go to the Google Developers Console
  • Create a new project or use one already created
  • Click on Source Code and Browse in the left-hand navigation panel
  • Click on the Connect Button to link the project’s repository to GitHub
  • Click on Authorize Application to deliver access to Google Cloud Plateform
  • Choose a repository, Agree the Google disclaimer and click on Connect
  • The GitHub repository now appears on the Releases page
  • Create the release pipeline to determine how the application is released by :
    • Entering the pipeline name
    • Choosing the pipeline task
    • Setting the email notification
  •  Every push to GitHub will generate a resume line of the operations

This great, simple and smart feature has the merit of putting you on the right track , your project is standardized , and Unit Testing being launched regularly from the beginning of your project.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s