Enabling Continuous Integration and Delivery for Apigee
Nowadays, customers demand satisfaction in digital experiences and expect changes right away. To bring in such a fast-paced experience, organizations are adopting APIs where changes can be made within hours. However, will adopt APIs make the development cycle agile? What are the teams that are not able to deliver the APIs at the speed that is required? What if testing is manual and time-consuming or if the deployment is on hold for a few days?
This article will show how you can resolve contemporary API challenges and automate the build and deploy cycles of your Apigee with GitHub, Jenkins, Maven, and Grunt.
Use case
Many of you might have used the EDGE UI to create API Proxy, manage developers, deploy proxies, apps, keys, products, etc. But several customers want to automate everything and do not want to do it via the UI.
Objective
We need to devise DevOps with GitHub to manage the API Bundle, Maven, and Grunt's source to make administrative tasks on Apigee Edge and Jenkins as the continuous integration tool to start/manage those tasks.
What is Jenkins?
Problem Statement
APIGEE Manual Deployment Challenge
Errors due to manual deployments.
Repetition of the tasks on several nodes and domains
Manual work and time essential for Configurations and policies differs across all environments.
Collaboration challenges between business and IT
No standard repository
Solution
APIGEE Deployment Automation Benefits
Improvement in productivity as work is replaced with automation.
Reduction in errors eliminates rework
An automation system must record and show what it does to improve visibility and auditability.
Automatically deploy and configure.
Process Flow
Download API bundle
Add pom file for maven
Push the project to GitHub
Deploy the project from GitHub to Apigee cloud through Jenkins
Technical Overview
Using Git and GitHub
Put the API folder on a local system
Users can create GitHub repository and push the project from local system to GitHub
Build and Deploy the API Bundle Using Maven and Jenkins
Need to create new job in the Jenkins wizard
All parameters of Apigee needs to be set here
Connect your tasks with the GitHub repository from where we need to Deploy the API
Then give Apigee URL to where it needs to be deployed
This query will take all the parameters we used above.
Successfully Deployed
Successful Deployment on Apigee
Build and Deploy the API Bundle via Grunt and Jenkins
Undeploy one revision and deploy another revision:
Create new job for Grunt
Write the query in batch command
Success in Grunt
Success in Apigee
Learn what it takes to manage modern APIs at an enterprise scale. For more information on Apigee integration, you can write to us at [email protected] or visit www.royalcyber.com.









