SlideShare a Scribd company logo
1 of 36
Download to read offline
[NYC] MuleSoft Meetup Group
Deep Dive on Continuous Integration and Continuous Delivery
( CI / CD )
29th May, 2021
Introduction
3
Host
Neeraj Kumar
ERP Development and
Integration Architect
Casper, NYC
About the host:
⮚ Working as ERP and Integration Architect @Casper, NYC.
⮚ 13.5+ Years of Experience in Oracle ERP and Integrations.
⮚ Managed multiple End to End Integration projects with ERP.
⮚ Certified MuleSoft Integration Architect and Developer.
Safe Harbor Statement
• Both the speaker and host are organizing this meet up in individual capacity only.
We are not representing our companies here.
• This presentation is strictly for learning purpose only. Organizer/Presenter do not
hold any responsibility that same solution will work for your business
requirements also.
• This presentation is not meant for any promotional activities.
About Speakers
5
Technology evangelist and integration architect having ~10 years of expertise on
technology Consulting, creating Solutions and building Innovative offerings. Worked
with Fortune 100 Financial Services/Product Companies and delivered multiple
flagship solutions
Certifications :
✓ MuleSoft Certified Integration Architect – Level 1
✓ MuleSoft Certified Developer – Level 1
✓ MuleSoft Certified Developer Integration and API – Associate
✓ AWS Certified Solution Architect – Associate SAA C02
https://www.linkedin.com/in/naimish-kakkad/
https://dzone.com/users/4534067/naimishkakkad.html
Persistent Systems
Integration Architect
Persistent Systems
Lead Developer
MuleSoft certified Developer and Technology enthusiast having around 3+ years of
expertise in
Integration space and API Development.
Certifications :
✓ MuleSoft Certified Developer – Level 1
https://www.linkedin.com/in/akshay-gupta15/
https://dzone.com/articles/deep-dive-on-continuous-integration-and-continuous-1
Agenda
6
✓ Manual Deployment Process – CloudHub
✓ Manual Steps for API Discovery and Policy Setup – CloudHub
✓ What is CI and CD?
✓ Tools and techniques to enable CICD with AnyPoint Platform
✓ How to enable CICD with Anypoint-CLI , Jenkins and Connected App
✓ Deep-Dive on CICD
✓ Jenkins Pipeline Orchestration
✓ API Deployment using Anypoint-CLI via Connected App
✓ API Discovery and Policy Setup within CD Flow from Jenkins Pipeline via Groovy Script
✓ Q and A
✓ Trivia Quiz
7
Deployment Process – CloudHub
8
API Discovery and Policy Setup
9
This Photo by Unknown Author is licensed under CC BY-SA-NC
How does it happen Manually ??
What is that I need to Automate ??
Do I have right tools ?
Let’s Begin for Deep Dive in CI/CD
10
Image Credit -https://www.insurancejournal.com/app/uploads/2020/02/Screen-Shot-2020-02-07-at-10.28.15-AM-580x331.png
11
Continuous Integration
An approach to be continually validating the state of a codebase through automated testing.
Best achieved through integration with version control and artifact store
Continuous Delivery / Deployment
An approach to regularly deploying artifacts that successfully pass the CI phase to ensure confidence around the
deployment
CI and CD
Image Ref- https://www.synopsys.com/glossary/what-is-cicd.html
12
Objective for today’s session
1. CI 2. CD 3. Deep Dive
Tools and Prerequisites
✓ Jenkins → Automation Server
✓ Groovy → Jenkins Pipeline and API calls from Pipeline
✓ Maven → Build automation tool
✓ AnyPoint Studio →Development
✓ AnyPoint CloudHub → Active Anypoint subscription
✓ Connected App → Make sure App has required scope associated with deploy the api and api instance
✓ MuleSoft Enterprise Nexus Repo Access
✓ Nexus Repository → Store Artifacts
✓ Mail Server → Email Notification
✓ Anypoint-Cli
Nexus Repository
Mail Server
CI Workflow
CD Workflow
appName , version
Let’s see the Magic first
16
https://cambridgewords.files.wordpress.com/2017/11/magic-wand.jpg
17
Quick Setup Overview - Jenkins
Maven Integration plugin
Groovy
Nexus Artifact
Uploader
Email Plugin
Git plugin
Pipeline Utility
Steps
Connected
Apps
Anypoint-CLI
18
Quick Setup Overview - AnyPoint
CI Flow
CD Flow
21
API Policy Setup and Auto Discovery within CD
API Discovery and Policy Setup within
CD Flow
23
API Policy Setup and Auto Discovery within CD
API Discovery and Policy Setup
Anypoint Login API:
POST /accounts/login
Get API details:
GET
/apimanager/api/v1/organizations/{orgId}/environments/{environmentId}/
apis?assetId=“<API_NAME>”
Create New API:
POST
/apimanager/api/v1/organizations/{orgId}/environments/{environmentId}/
apis
Get Policy details:
GET
/apimanager/api/v1/organizations/{orgId}/environments/{environmentId}/
apis/{apiID}/policies
Get policy templates:
GET /apimanager/api/v1/organizations/{organizationId}/policy-templates
Create New policy:
POST
/apimanager/api/v1/organizations/{orgId}/environments/{environmentId}/
apis/{apiID}/policies
Groovy Script Flow
Connected App
Credentials
MUnit Coverage Validation within CI
Flow
POM Configuration for MUnit Coverage Criteria
true
* Make sure you have Mule Nexus EE Configured in Maven settings.xml
28
CI CD Deep Dive
Q&A
Questions at the heart of learning — The Learner's Way
This Photo by Unknown Author is licensed under CC BY-SA
“If you can’t explain it simply, you don’t understand
it well enough.” – Albert Einstein
Get ready to WIN a Special Gift from MuleSoft Community
Quiz Time
Question 1
Can I create “Connected App” in Child Business Group ?
A) Yes
B) No
31
Question 2
While running Munit “test” phase from Jenkins Job it gave error “The port is
already in use. The application fails with a port binding exception” How to
resolve (Choose 2)(Assume you are system and Jenkins admin)
A) mvn test -Dhttp.port=<someOther Port>
B) mvn test
C) mvn test port=<someOtherPort>
D) Kill process running on the port which gave error and re-run the job
32
Question 3
How can I connect to EU Plane from Anypoint-Cli (Choose 2)
A) export ANYPOINT_HOST=eu1.anypoint.mulesoft.com
B) export ANYPOINT_HOST=eu1
C) Set "host" in the credential file to "eu1.anypoint.mulesoft.com“
D) export %ANYPOINT_HOST%=eu1
33
Reference
Source Code
● https://github.com/naimishkakkad/mule-cicd-demo/tree/cli
Other Tools and Plugins
● https://docs.mulesoft.com/runtime-manager/anypoint-platform-cli
● https://plugins.jenkins.io/groovy
● https://docs.mulesoft.com/access-management/connected-apps-overview
● https://plugins.jenkins.io/git
● https://plugins.jenkins.io/nexus-artifact-uploader
● https://plugins.jenkins.io/maven-plugin
34
35
Topic: Unleashing Caching Strategies with MuleSoft
Date: Saturday, June 12th 2021, 12PM EDT
Speaker: Mary Joy Sabal from New Zealand
https://meetups.mulesoft.com/events/details/mulesoft-new-york-city-presents-unleashing-caching-strategies-with-mulesoft/
Upcoming Meetups
Thank you

More Related Content

What's hot

What's hot (20)

MuleSoft Surat Virtual Meetup#16 - Anypoint Deployment Option, API and Operat...
MuleSoft Surat Virtual Meetup#16 - Anypoint Deployment Option, API and Operat...MuleSoft Surat Virtual Meetup#16 - Anypoint Deployment Option, API and Operat...
MuleSoft Surat Virtual Meetup#16 - Anypoint Deployment Option, API and Operat...
 
MuleSoft Surat Virtual Meetup#8 - Anypoint Business Group Connected Apps and ...
MuleSoft Surat Virtual Meetup#8 - Anypoint Business Group Connected Apps and ...MuleSoft Surat Virtual Meetup#8 - Anypoint Business Group Connected Apps and ...
MuleSoft Surat Virtual Meetup#8 - Anypoint Business Group Connected Apps and ...
 
Session on API auto scaling, monitoring and Log management
Session on API auto scaling, monitoring and Log managementSession on API auto scaling, monitoring and Log management
Session on API auto scaling, monitoring and Log management
 
Melbourne Virtual MuleSoft Meetup October 2021
Melbourne Virtual MuleSoft Meetup October 2021Melbourne Virtual MuleSoft Meetup October 2021
Melbourne Virtual MuleSoft Meetup October 2021
 
NYC MuleSoft Meetup 2019 Q2- MuleSoft for Mobile Applications
NYC MuleSoft Meetup 2019 Q2- MuleSoft for Mobile ApplicationsNYC MuleSoft Meetup 2019 Q2- MuleSoft for Mobile Applications
NYC MuleSoft Meetup 2019 Q2- MuleSoft for Mobile Applications
 
MuleSoft Kochi Meetup #3– Integration with Web Sockets
 MuleSoft Kochi Meetup #3– Integration with Web Sockets MuleSoft Kochi Meetup #3– Integration with Web Sockets
MuleSoft Kochi Meetup #3– Integration with Web Sockets
 
Api complete life cycle with api security
Api complete life cycle with api securityApi complete life cycle with api security
Api complete life cycle with api security
 
MuleSoft Meetup Singapore - Reliable Messaging & RTF Operations
MuleSoft Meetup Singapore - Reliable Messaging & RTF OperationsMuleSoft Meetup Singapore - Reliable Messaging & RTF Operations
MuleSoft Meetup Singapore - Reliable Messaging & RTF Operations
 
Meetup bangalore-may22nd2021
Meetup bangalore-may22nd2021Meetup bangalore-may22nd2021
Meetup bangalore-may22nd2021
 
Nashik MuleSoft Virtual Meetup#1 - Shared and Dedicated Load Balancer
Nashik MuleSoft Virtual Meetup#1 - Shared and Dedicated Load BalancerNashik MuleSoft Virtual Meetup#1 - Shared and Dedicated Load Balancer
Nashik MuleSoft Virtual Meetup#1 - Shared and Dedicated Load Balancer
 
Mule ESB- Data Validation- Best Practices
Mule ESB-  Data Validation- Best PracticesMule ESB-  Data Validation- Best Practices
Mule ESB- Data Validation- Best Practices
 
Milano Meetup #6 - Training & Certification and Internal Support Models
Milano Meetup #6 - Training & Certification and Internal Support ModelsMilano Meetup #6 - Training & Certification and Internal Support Models
Milano Meetup #6 - Training & Certification and Internal Support Models
 
Anypoint Monitoring - Built in Dashboards, Custom Dashboards, Alerts and Func...
Anypoint Monitoring - Built in Dashboards, Custom Dashboards, Alerts and Func...Anypoint Monitoring - Built in Dashboards, Custom Dashboards, Alerts and Func...
Anypoint Monitoring - Built in Dashboards, Custom Dashboards, Alerts and Func...
 
Meetup_Bangalore_Rajesh
Meetup_Bangalore_RajeshMeetup_Bangalore_Rajesh
Meetup_Bangalore_Rajesh
 
Operationalizing your C4E VirtualMuleys & Deployment Considerations: Cloudhub...
Operationalizing your C4E VirtualMuleys & Deployment Considerations: Cloudhub...Operationalizing your C4E VirtualMuleys & Deployment Considerations: Cloudhub...
Operationalizing your C4E VirtualMuleys & Deployment Considerations: Cloudhub...
 
MuleSoft Meetup Bangalore - March 6 2021
MuleSoft Meetup Bangalore - March 6 2021MuleSoft Meetup Bangalore - March 6 2021
MuleSoft Meetup Bangalore - March 6 2021
 
MuleSoft Architecture Presentation
MuleSoft Architecture PresentationMuleSoft Architecture Presentation
MuleSoft Architecture Presentation
 
Optimizing TAS Usage at Ford Motor Company
Optimizing TAS Usage at Ford Motor CompanyOptimizing TAS Usage at Ford Motor Company
Optimizing TAS Usage at Ford Motor Company
 
Solace PubSub+ MuleSoft Connector for Mule 4
Solace PubSub+ MuleSoft Connector for Mule 4Solace PubSub+ MuleSoft Connector for Mule 4
Solace PubSub+ MuleSoft Connector for Mule 4
 
Learn mulesoft from scratch
Learn mulesoft from scratchLearn mulesoft from scratch
Learn mulesoft from scratch
 

Similar to Deep Dive on CI/CD NYC Meet Up Group

Similar to Deep Dive on CI/CD NYC Meet Up Group (20)

Deploying Mule Applications with Jenkins, Azure and BitBucket (1).pptx
Deploying Mule Applications with Jenkins, Azure and BitBucket (1).pptxDeploying Mule Applications with Jenkins, Azure and BitBucket (1).pptx
Deploying Mule Applications with Jenkins, Azure and BitBucket (1).pptx
 
Deep Dive on Continuous Integration and Continuous Delivery in Anypoint Platf...
Deep Dive on Continuous Integration and Continuous Delivery in Anypoint Platf...Deep Dive on Continuous Integration and Continuous Delivery in Anypoint Platf...
Deep Dive on Continuous Integration and Continuous Delivery in Anypoint Platf...
 
MuleSoft Nashik Virtual Meetup#4 - Implementing CI/CD pipeline for deploying ...
MuleSoft Nashik Virtual Meetup#4 - Implementing CI/CD pipeline for deploying ...MuleSoft Nashik Virtual Meetup#4 - Implementing CI/CD pipeline for deploying ...
MuleSoft Nashik Virtual Meetup#4 - Implementing CI/CD pipeline for deploying ...
 
INTERFACE by apidays 2023 - Digital Platforms, Taking API to production, Micr...
INTERFACE by apidays 2023 - Digital Platforms, Taking API to production, Micr...INTERFACE by apidays 2023 - Digital Platforms, Taking API to production, Micr...
INTERFACE by apidays 2023 - Digital Platforms, Taking API to production, Micr...
 
API Governance and GitOps in Hybrid Integration Platform (MuleSoft)
API Governance and GitOps in Hybrid Integration Platform (MuleSoft)API Governance and GitOps in Hybrid Integration Platform (MuleSoft)
API Governance and GitOps in Hybrid Integration Platform (MuleSoft)
 
apidays LIVE Paris 2021 - APIGEE, different ways for integrating with CI/CD p...
apidays LIVE Paris 2021 - APIGEE, different ways for integrating with CI/CD p...apidays LIVE Paris 2021 - APIGEE, different ways for integrating with CI/CD p...
apidays LIVE Paris 2021 - APIGEE, different ways for integrating with CI/CD p...
 
Continuous API Strategies for Integrated Platforms
 Continuous API Strategies for Integrated Platforms Continuous API Strategies for Integrated Platforms
Continuous API Strategies for Integrated Platforms
 
Indianapolis_meetup_April-1st-2022.pptx
Indianapolis_meetup_April-1st-2022.pptxIndianapolis_meetup_April-1st-2022.pptx
Indianapolis_meetup_April-1st-2022.pptx
 
Visual Studio 2017 - Montreal Launch Event
Visual Studio 2017  - Montreal Launch EventVisual Studio 2017  - Montreal Launch Event
Visual Studio 2017 - Montreal Launch Event
 
Mulesoft Meetup Roma - Monitoring Framework & DevOps.pptx
Mulesoft Meetup Roma - Monitoring Framework & DevOps.pptxMulesoft Meetup Roma - Monitoring Framework & DevOps.pptx
Mulesoft Meetup Roma - Monitoring Framework & DevOps.pptx
 
Extend Agile and DevOps Practices Across Hybrid IT
Extend Agile and DevOps Practices Across Hybrid ITExtend Agile and DevOps Practices Across Hybrid IT
Extend Agile and DevOps Practices Across Hybrid IT
 
Microservices the Good Bad and the Ugly
Microservices the Good Bad and the UglyMicroservices the Good Bad and the Ugly
Microservices the Good Bad and the Ugly
 
#APIOps- Agile API Development powered by API Connect
#APIOps- Agile API Development powered by API Connect#APIOps- Agile API Development powered by API Connect
#APIOps- Agile API Development powered by API Connect
 
Z101666 best practices for delivering hybrid cloud capability with apis
Z101666 best practices for delivering hybrid cloud capability with apisZ101666 best practices for delivering hybrid cloud capability with apis
Z101666 best practices for delivering hybrid cloud capability with apis
 
How Spotify reaches the 80%+ of satisfaction of the techies making developers...
How Spotify reaches the 80%+ of satisfaction of the techies making developers...How Spotify reaches the 80%+ of satisfaction of the techies making developers...
How Spotify reaches the 80%+ of satisfaction of the techies making developers...
 
PKS: The What and How of Enterprise-Grade Kubernetes
PKS: The What and How of Enterprise-Grade KubernetesPKS: The What and How of Enterprise-Grade Kubernetes
PKS: The What and How of Enterprise-Grade Kubernetes
 
Delivering New Digital Experiences Fast - Introducing Choreo
Delivering New Digital Experiences Fast - Introducing ChoreoDelivering New Digital Experiences Fast - Introducing Choreo
Delivering New Digital Experiences Fast - Introducing Choreo
 
CI/CD - A strategy for success (North Africa Dreamin' Prez)
CI/CD - A strategy for success (North Africa Dreamin' Prez)CI/CD - A strategy for success (North Africa Dreamin' Prez)
CI/CD - A strategy for success (North Africa Dreamin' Prez)
 
Automating agile integration
Automating agile integrationAutomating agile integration
Automating agile integration
 
QAAgility Presentation - Cucumber with Appium
QAAgility Presentation - Cucumber with AppiumQAAgility Presentation - Cucumber with Appium
QAAgility Presentation - Cucumber with Appium
 

More from NeerajKumar1965

More from NeerajKumar1965 (17)

Advanced Integrations of MuleSoft with ChatGTP
Advanced Integrations of MuleSoft with ChatGTPAdvanced Integrations of MuleSoft with ChatGTP
Advanced Integrations of MuleSoft with ChatGTP
 
Liquibase Integration with MuleSoft
Liquibase Integration with MuleSoftLiquibase Integration with MuleSoft
Liquibase Integration with MuleSoft
 
Introduction to CloudHub 2.0
Introduction to CloudHub 2.0Introduction to CloudHub 2.0
Introduction to CloudHub 2.0
 
Shopify Mulesoft Integrations
Shopify Mulesoft IntegrationsShopify Mulesoft Integrations
Shopify Mulesoft Integrations
 
Connect_Recap.pptx
Connect_Recap.pptxConnect_Recap.pptx
Connect_Recap.pptx
 
Batch Message Listener capabilities of the Apache Kafka Connector
Batch Message Listener capabilities of the Apache Kafka ConnectorBatch Message Listener capabilities of the Apache Kafka Connector
Batch Message Listener capabilities of the Apache Kafka Connector
 
Deep Dive into Event Driven Architecture(Async API)
Deep Dive into Event Driven Architecture(Async API)Deep Dive into Event Driven Architecture(Async API)
Deep Dive into Event Driven Architecture(Async API)
 
Anypoint Data Graphs
Anypoint Data GraphsAnypoint Data Graphs
Anypoint Data Graphs
 
Accelerate integration with SAP using MuleSoft
Accelerate integration with SAP using MuleSoftAccelerate integration with SAP using MuleSoft
Accelerate integration with SAP using MuleSoft
 
Deep Dive into Salesforce APIs
Deep Dive into Salesforce APIsDeep Dive into Salesforce APIs
Deep Dive into Salesforce APIs
 
Trailhead - The bridge between Salesforce and MuleSoft
Trailhead - The bridge between Salesforce and MuleSoftTrailhead - The bridge between Salesforce and MuleSoft
Trailhead - The bridge between Salesforce and MuleSoft
 
Power of LWC + Mulesoft
Power of LWC + MulesoftPower of LWC + Mulesoft
Power of LWC + Mulesoft
 
Integrating with Aws s3
Integrating with Aws s3Integrating with Aws s3
Integrating with Aws s3
 
Anypoint MQ-DLQ NYC Meet Up
Anypoint MQ-DLQ NYC Meet UpAnypoint MQ-DLQ NYC Meet Up
Anypoint MQ-DLQ NYC Meet Up
 
Batch Processing with Mule 4
Batch Processing with Mule 4Batch Processing with Mule 4
Batch Processing with Mule 4
 
Nyc mule soft_meetup_13_march_2021
Nyc mule soft_meetup_13_march_2021Nyc mule soft_meetup_13_march_2021
Nyc mule soft_meetup_13_march_2021
 
New York City Meetup- 6th March 2021
New York City Meetup- 6th March 2021New York City Meetup- 6th March 2021
New York City Meetup- 6th March 2021
 

Recently uploaded

Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 
TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...
TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...
TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...
TrustArc
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 

Recently uploaded (20)

Navigating Identity and Access Management in the Modern Enterprise
Navigating Identity and Access Management in the Modern EnterpriseNavigating Identity and Access Management in the Modern Enterprise
Navigating Identity and Access Management in the Modern Enterprise
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
 
TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...
TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...
TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...
 
ChatGPT and Beyond - Elevating DevOps Productivity
ChatGPT and Beyond - Elevating DevOps ProductivityChatGPT and Beyond - Elevating DevOps Productivity
ChatGPT and Beyond - Elevating DevOps Productivity
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
JavaScript Usage Statistics 2024 - The Ultimate Guide
JavaScript Usage Statistics 2024 - The Ultimate GuideJavaScript Usage Statistics 2024 - The Ultimate Guide
JavaScript Usage Statistics 2024 - The Ultimate Guide
 
Decarbonising Commercial Real Estate: The Role of Operational Performance
Decarbonising Commercial Real Estate: The Role of Operational PerformanceDecarbonising Commercial Real Estate: The Role of Operational Performance
Decarbonising Commercial Real Estate: The Role of Operational Performance
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Quantum Leap in Next-Generation Computing
Quantum Leap in Next-Generation ComputingQuantum Leap in Next-Generation Computing
Quantum Leap in Next-Generation Computing
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 

Deep Dive on CI/CD NYC Meet Up Group

  • 1. [NYC] MuleSoft Meetup Group Deep Dive on Continuous Integration and Continuous Delivery ( CI / CD ) 29th May, 2021
  • 3. 3 Host Neeraj Kumar ERP Development and Integration Architect Casper, NYC About the host: ⮚ Working as ERP and Integration Architect @Casper, NYC. ⮚ 13.5+ Years of Experience in Oracle ERP and Integrations. ⮚ Managed multiple End to End Integration projects with ERP. ⮚ Certified MuleSoft Integration Architect and Developer.
  • 4. Safe Harbor Statement • Both the speaker and host are organizing this meet up in individual capacity only. We are not representing our companies here. • This presentation is strictly for learning purpose only. Organizer/Presenter do not hold any responsibility that same solution will work for your business requirements also. • This presentation is not meant for any promotional activities.
  • 5. About Speakers 5 Technology evangelist and integration architect having ~10 years of expertise on technology Consulting, creating Solutions and building Innovative offerings. Worked with Fortune 100 Financial Services/Product Companies and delivered multiple flagship solutions Certifications : ✓ MuleSoft Certified Integration Architect – Level 1 ✓ MuleSoft Certified Developer – Level 1 ✓ MuleSoft Certified Developer Integration and API – Associate ✓ AWS Certified Solution Architect – Associate SAA C02 https://www.linkedin.com/in/naimish-kakkad/ https://dzone.com/users/4534067/naimishkakkad.html Persistent Systems Integration Architect Persistent Systems Lead Developer MuleSoft certified Developer and Technology enthusiast having around 3+ years of expertise in Integration space and API Development. Certifications : ✓ MuleSoft Certified Developer – Level 1 https://www.linkedin.com/in/akshay-gupta15/ https://dzone.com/articles/deep-dive-on-continuous-integration-and-continuous-1
  • 6. Agenda 6 ✓ Manual Deployment Process – CloudHub ✓ Manual Steps for API Discovery and Policy Setup – CloudHub ✓ What is CI and CD? ✓ Tools and techniques to enable CICD with AnyPoint Platform ✓ How to enable CICD with Anypoint-CLI , Jenkins and Connected App ✓ Deep-Dive on CICD ✓ Jenkins Pipeline Orchestration ✓ API Deployment using Anypoint-CLI via Connected App ✓ API Discovery and Policy Setup within CD Flow from Jenkins Pipeline via Groovy Script ✓ Q and A ✓ Trivia Quiz
  • 8. 8 API Discovery and Policy Setup
  • 9. 9 This Photo by Unknown Author is licensed under CC BY-SA-NC How does it happen Manually ?? What is that I need to Automate ?? Do I have right tools ?
  • 10. Let’s Begin for Deep Dive in CI/CD 10 Image Credit -https://www.insurancejournal.com/app/uploads/2020/02/Screen-Shot-2020-02-07-at-10.28.15-AM-580x331.png
  • 11. 11 Continuous Integration An approach to be continually validating the state of a codebase through automated testing. Best achieved through integration with version control and artifact store Continuous Delivery / Deployment An approach to regularly deploying artifacts that successfully pass the CI phase to ensure confidence around the deployment CI and CD Image Ref- https://www.synopsys.com/glossary/what-is-cicd.html
  • 12. 12 Objective for today’s session 1. CI 2. CD 3. Deep Dive
  • 13. Tools and Prerequisites ✓ Jenkins → Automation Server ✓ Groovy → Jenkins Pipeline and API calls from Pipeline ✓ Maven → Build automation tool ✓ AnyPoint Studio →Development ✓ AnyPoint CloudHub → Active Anypoint subscription ✓ Connected App → Make sure App has required scope associated with deploy the api and api instance ✓ MuleSoft Enterprise Nexus Repo Access ✓ Nexus Repository → Store Artifacts ✓ Mail Server → Email Notification ✓ Anypoint-Cli Nexus Repository Mail Server
  • 16. Let’s see the Magic first 16 https://cambridgewords.files.wordpress.com/2017/11/magic-wand.jpg
  • 17. 17 Quick Setup Overview - Jenkins Maven Integration plugin Groovy Nexus Artifact Uploader Email Plugin Git plugin Pipeline Utility Steps Connected Apps Anypoint-CLI
  • 21. 21 API Policy Setup and Auto Discovery within CD
  • 22. API Discovery and Policy Setup within CD Flow
  • 23. 23 API Policy Setup and Auto Discovery within CD
  • 24. API Discovery and Policy Setup Anypoint Login API: POST /accounts/login Get API details: GET /apimanager/api/v1/organizations/{orgId}/environments/{environmentId}/ apis?assetId=“<API_NAME>” Create New API: POST /apimanager/api/v1/organizations/{orgId}/environments/{environmentId}/ apis Get Policy details: GET /apimanager/api/v1/organizations/{orgId}/environments/{environmentId}/ apis/{apiID}/policies Get policy templates: GET /apimanager/api/v1/organizations/{organizationId}/policy-templates Create New policy: POST /apimanager/api/v1/organizations/{orgId}/environments/{environmentId}/ apis/{apiID}/policies
  • 25. Groovy Script Flow Connected App Credentials
  • 26. MUnit Coverage Validation within CI Flow
  • 27. POM Configuration for MUnit Coverage Criteria true * Make sure you have Mule Nexus EE Configured in Maven settings.xml
  • 29. Q&A Questions at the heart of learning — The Learner's Way This Photo by Unknown Author is licensed under CC BY-SA “If you can’t explain it simply, you don’t understand it well enough.” – Albert Einstein
  • 30. Get ready to WIN a Special Gift from MuleSoft Community Quiz Time
  • 31. Question 1 Can I create “Connected App” in Child Business Group ? A) Yes B) No 31
  • 32. Question 2 While running Munit “test” phase from Jenkins Job it gave error “The port is already in use. The application fails with a port binding exception” How to resolve (Choose 2)(Assume you are system and Jenkins admin) A) mvn test -Dhttp.port=<someOther Port> B) mvn test C) mvn test port=<someOtherPort> D) Kill process running on the port which gave error and re-run the job 32
  • 33. Question 3 How can I connect to EU Plane from Anypoint-Cli (Choose 2) A) export ANYPOINT_HOST=eu1.anypoint.mulesoft.com B) export ANYPOINT_HOST=eu1 C) Set "host" in the credential file to "eu1.anypoint.mulesoft.com“ D) export %ANYPOINT_HOST%=eu1 33
  • 34. Reference Source Code ● https://github.com/naimishkakkad/mule-cicd-demo/tree/cli Other Tools and Plugins ● https://docs.mulesoft.com/runtime-manager/anypoint-platform-cli ● https://plugins.jenkins.io/groovy ● https://docs.mulesoft.com/access-management/connected-apps-overview ● https://plugins.jenkins.io/git ● https://plugins.jenkins.io/nexus-artifact-uploader ● https://plugins.jenkins.io/maven-plugin 34
  • 35. 35 Topic: Unleashing Caching Strategies with MuleSoft Date: Saturday, June 12th 2021, 12PM EDT Speaker: Mary Joy Sabal from New Zealand https://meetups.mulesoft.com/events/details/mulesoft-new-york-city-presents-unleashing-caching-strategies-with-mulesoft/ Upcoming Meetups