Warsaw MuleSoft Meetup #6
February 4th, 2020
Practical Approach to
Continuous Integration/Continuous Deployment
All contents © MuleSoft Inc.
Agenda
3
• Community updates
• Practical Approach to
Continuous Integration/Continuous Deployment
• Networking time
• Disscussions
• What’s next & Close
Introduction
All contents © MuleSoft Inc.
Our Partners
5
All contents © MuleSoft Inc.
Organizer
• Senior Integration Developer at PwC Poland
• MuleSoft Ambassador
• MuleSoft Meetup Leader for Warsaw, Poland
• Latest Salesforce Trailblazer
https://trailhead.salesforce.com/trailblazers/p
atryk-bandurski
• Integration Blog
http://ambassadorpatryk.com/blog
• Working with MuleSoft products for over 8
years now
Patryk Bandurski
All contents © MuleSoft Inc.
Speaker
7
• DevOps Engineer at Billennium
• 15+ years in IT as telco and integration
engineer - Developer, Tester and Solution
Architect
• Working with big companies to introduce
Anypoint Platform on a wide scale
• Books, running and Switch
Łukasz Szpak
All contents © MuleSoft Inc.
Share
8
• Share the Meetup in your social media
• Use Hashtags
– #MuleSoftMeetup
– #WarsawMuleSoftMeetup
Thanks 
All contents © MuleSoft Inc. 9
Would you like to present some cool topic at the next Meetup?
To submit your idea, fill out this form:
https://tinyurl.com/become-speaker
Become a Speaker at the Meetup
Community Updates
All contents © MuleSoft Inc. 11
• MuleSoft Catalyst
• Accelerator for
– Banking
– Retail
– Healthcare
– Salesforce Cloud!
• API-led architecture
• RAML definitions
• Applications in Mule 3 & 4
• On Anypoint Exchange
Accelerators
All contents © MuleSoft Inc.
Accelerators
12
All contents © MuleSoft Inc.
Warsaw MuleSoft Meetup Group
13
• https://tinyurl.com/warsaw-group
• On MuleSoft Help center
• Why?
– Suggest topics
– Discuss event’s topics
– Discuss anything you like
– Ask questions
– See updates regarding our
group!
Register today 
Practical Approach to
Continous Integration/Continous Deployment
All contents © MuleSoft Inc.
Agenda
15
1. Holistic View
2. Practical Implementation Examples
3. Implementation Step by Step
4. Operations
All contents © MuleSoft Inc.
Practical Implementation
16
• CI/CD Pipelines
• Build Servers
• Quality Control
• Source Version Control
• Branching Strategy
• Automation
• Self-test
• Fast Build and Deploy
• Transparency
• Documentation and Tutorials
• Core / C4E Team and Operations
All contents © MuleSoft Inc.
Implementation Example
17
All contents © MuleSoft Inc.
Implementation Example
18
Mule
Validation
Tool
All contents © MuleSoft Inc.
Step by Step – Simple Use Case
19
DEV TEST
PROD
DEV
TEST
PROD
All contents © MuleSoft Inc.
Step by Step - Build
20
CloneRepositories
StaticCodeAnalysis
- xml
- Java
StaticCode Analysis
with
MuleValidation Tool
Results
Verification
Deployment to
Cloudhubor On-Premise
Script
None -asall artifactsarealready
storedinBitBucket.
Validation results. Validation result availableinthe
buildlog.
Validation result
available in the
buildlog.
Applicationjarisdeployed toAnypoint
Platformto the specifiedBusiness
Group and Environment -
https://anypoint.mules
oft.com
BUILD FLOW
TOOLSET
ARTIFACTS
Tests
Testreport.
All contents © MuleSoft Inc.
Step by Step - Plan
21
• Toolset: Jira, Confluence,
Sharepoint, Google Docs, Azure
DevOps etc.
• Templates are your best friends!
• Maven Archetypes
• Proof of Concept vs Real Project
• Setup new repository and pipelines
• Split of responsibility – delivery vs
DevOps model
• Test before you start
All contents © MuleSoft Inc.
Step by Step – Maven Archetypes
22
All contents © MuleSoft Inc.
Step by Step - Code
23
• Toolset: Anypoint Studio, git bash,
TortoiseGit, Anypoint Platform
• Best Practices
• Always start with a template
• Commit early, push often
• Pull Request
All contents © MuleSoft Inc.
Step by Step - Code
All contents © MuleSoft Inc.
Step by Step - Build
25
• Toolset: Maven, Azure DevOps, Jenkins,
git, Bamboo
• Separate pipelines for each environment
• Customization
• Notification about tests and build results
• Split of responsibility
• Build executed step by step
• Documentation
• Build agents
DEV
TEST
PROD
All contents © MuleSoft Inc.
Step by Step - Build
26
CloneRepositories
StaticCodeAnalysis
- xml
- Java
StaticCode Analysis
with
MuleValidation Tool
Results
Verification
Deployment to
Cloudhubor On-Premise
Script
None -asall artifactsarealready
storedinBitBucket.
Validation results. Validation result availableinthe
buildlog.
Validation result
available in the
buildlog.
Applicationjarisdeployed toAnypoint
Platformto the specifiedBusiness
Group and Environment -
https://anypoint.mules
oft.com
BUILD FLOW
TOOLSET
ARTIFACTS
Tests
Testreport.
Lunch & Beverages
Break
All contents © MuleSoft Inc.
Step by Step - Test
28
• Toolset: Maven, Munits, Jmeter,
Postman, SonarQube, custom tools
• Quality gate
• Static code analysis
• Code review checklist
• SonarQube / Custom Toolset
• Munits
• Postman collections
Mule
Validation
Tool
All contents © MuleSoft Inc.
Step by Step – Release and Deploy
29
• Toolset: Maven, Azure DevOps, Jenkins, git,
Bamboo
• API Management – SLA Tiers and Policy Handling
• Responsibility split
• Preparation for release and deployment
• Post-deployment tests
• Promotion to higher environments
• Exchange documentation
• Post-implementation documentation
All contents © MuleSoft Inc.
Step by Step – Release and Deploy
All contents © MuleSoft Inc.
Step by Step – Operate & Monitor
31
• Toolset: ServiceNow, Jira, Anypoint Platform,
ELK, custom dashboards
• Operations model
• Advance Monitoring capoabilities of the platform
• ELK
• Custom dashboards
• Notifications
• Alerts
• Recovery action
• MuleSoft status
All contents © MuleSoft Inc.
Step by Step – Operate & Monitor
All contents © MuleSoft Inc.
Step by Step – C4E & Operations
33
• Basic use cases
• Automate as much as possible!
• Enhance with sprints approach
• Maintain a backlog
• Documentation
• Video tutorials
• MuleSoft Community of Practice
• Avoid same questions
• Must have to enter the Platform
All contents © MuleSoft Inc.
Summary
34
• You can fully automate integration and deployment process
• CI/CD is reliable
• Training and good documentation is key factor
• Release first version as soon as possible then enhance with sprints approach
• Quality gates are your friends
• Automate, automate and then autmate some more
• Build community of practice
Questions & Answers
Discussion
35
All contents © MuleSoft Inc.
Materials
36
• Continuous integration and continuous delivery (CI/CD)
– https://www.mulesoft.com/resources/api/continuous-integration-continuous-
delivery
– https://docs.mulesoft.com/mule-runtime/4.2/continuous-integration
• Deployment
– https://docs.mulesoft.com/mule-runtime/4.2/using-maven-with-mule
– https://docs.mulesoft.com/mule-runtime/4.2/deploying
Let’s play the game 37
All contents © MuleSoft Inc.
Let’s get familiar with
the Kahoot by a quick
4 questions warm up
Kahoot warmup!
All contents © MuleSoft Inc.
For 3 winners a special
prize is ready, so take
part in the trivia quiz
Trivia
All contents © MuleSoft Inc.
What’s next
40
• Feedback:
– Contact your organizer Patryk Bandurski via e-mail or LinkedIn profile to suggest
topics
– Contact MuleSoft at meetup@mulesoft.com for ways to improve the program
• Our next meetup:
– Date: April/May 2020
– Topic: not known yet
All contents © MuleSoft Inc.
What’s next
41
Invite your network to join
– https://meetups.mulesoft.com/warsaw/
Group photo
Time to do the photo!
See you next time

Warsaw MuleSoft Meetup #6 - CI/CD

  • 2.
    Warsaw MuleSoft Meetup#6 February 4th, 2020 Practical Approach to Continuous Integration/Continuous Deployment
  • 3.
    All contents ©MuleSoft Inc. Agenda 3 • Community updates • Practical Approach to Continuous Integration/Continuous Deployment • Networking time • Disscussions • What’s next & Close
  • 4.
  • 5.
    All contents ©MuleSoft Inc. Our Partners 5
  • 6.
    All contents ©MuleSoft Inc. Organizer • Senior Integration Developer at PwC Poland • MuleSoft Ambassador • MuleSoft Meetup Leader for Warsaw, Poland • Latest Salesforce Trailblazer https://trailhead.salesforce.com/trailblazers/p atryk-bandurski • Integration Blog http://ambassadorpatryk.com/blog • Working with MuleSoft products for over 8 years now Patryk Bandurski
  • 7.
    All contents ©MuleSoft Inc. Speaker 7 • DevOps Engineer at Billennium • 15+ years in IT as telco and integration engineer - Developer, Tester and Solution Architect • Working with big companies to introduce Anypoint Platform on a wide scale • Books, running and Switch Łukasz Szpak
  • 8.
    All contents ©MuleSoft Inc. Share 8 • Share the Meetup in your social media • Use Hashtags – #MuleSoftMeetup – #WarsawMuleSoftMeetup Thanks 
  • 9.
    All contents ©MuleSoft Inc. 9 Would you like to present some cool topic at the next Meetup? To submit your idea, fill out this form: https://tinyurl.com/become-speaker Become a Speaker at the Meetup
  • 10.
  • 11.
    All contents ©MuleSoft Inc. 11 • MuleSoft Catalyst • Accelerator for – Banking – Retail – Healthcare – Salesforce Cloud! • API-led architecture • RAML definitions • Applications in Mule 3 & 4 • On Anypoint Exchange Accelerators
  • 12.
    All contents ©MuleSoft Inc. Accelerators 12
  • 13.
    All contents ©MuleSoft Inc. Warsaw MuleSoft Meetup Group 13 • https://tinyurl.com/warsaw-group • On MuleSoft Help center • Why? – Suggest topics – Discuss event’s topics – Discuss anything you like – Ask questions – See updates regarding our group! Register today 
  • 14.
    Practical Approach to ContinousIntegration/Continous Deployment
  • 15.
    All contents ©MuleSoft Inc. Agenda 15 1. Holistic View 2. Practical Implementation Examples 3. Implementation Step by Step 4. Operations
  • 16.
    All contents ©MuleSoft Inc. Practical Implementation 16 • CI/CD Pipelines • Build Servers • Quality Control • Source Version Control • Branching Strategy • Automation • Self-test • Fast Build and Deploy • Transparency • Documentation and Tutorials • Core / C4E Team and Operations
  • 17.
    All contents ©MuleSoft Inc. Implementation Example 17
  • 18.
    All contents ©MuleSoft Inc. Implementation Example 18 Mule Validation Tool
  • 19.
    All contents ©MuleSoft Inc. Step by Step – Simple Use Case 19 DEV TEST PROD DEV TEST PROD
  • 20.
    All contents ©MuleSoft Inc. Step by Step - Build 20 CloneRepositories StaticCodeAnalysis - xml - Java StaticCode Analysis with MuleValidation Tool Results Verification Deployment to Cloudhubor On-Premise Script None -asall artifactsarealready storedinBitBucket. Validation results. Validation result availableinthe buildlog. Validation result available in the buildlog. Applicationjarisdeployed toAnypoint Platformto the specifiedBusiness Group and Environment - https://anypoint.mules oft.com BUILD FLOW TOOLSET ARTIFACTS Tests Testreport.
  • 21.
    All contents ©MuleSoft Inc. Step by Step - Plan 21 • Toolset: Jira, Confluence, Sharepoint, Google Docs, Azure DevOps etc. • Templates are your best friends! • Maven Archetypes • Proof of Concept vs Real Project • Setup new repository and pipelines • Split of responsibility – delivery vs DevOps model • Test before you start
  • 22.
    All contents ©MuleSoft Inc. Step by Step – Maven Archetypes 22
  • 23.
    All contents ©MuleSoft Inc. Step by Step - Code 23 • Toolset: Anypoint Studio, git bash, TortoiseGit, Anypoint Platform • Best Practices • Always start with a template • Commit early, push often • Pull Request
  • 24.
    All contents ©MuleSoft Inc. Step by Step - Code
  • 25.
    All contents ©MuleSoft Inc. Step by Step - Build 25 • Toolset: Maven, Azure DevOps, Jenkins, git, Bamboo • Separate pipelines for each environment • Customization • Notification about tests and build results • Split of responsibility • Build executed step by step • Documentation • Build agents DEV TEST PROD
  • 26.
    All contents ©MuleSoft Inc. Step by Step - Build 26 CloneRepositories StaticCodeAnalysis - xml - Java StaticCode Analysis with MuleValidation Tool Results Verification Deployment to Cloudhubor On-Premise Script None -asall artifactsarealready storedinBitBucket. Validation results. Validation result availableinthe buildlog. Validation result available in the buildlog. Applicationjarisdeployed toAnypoint Platformto the specifiedBusiness Group and Environment - https://anypoint.mules oft.com BUILD FLOW TOOLSET ARTIFACTS Tests Testreport.
  • 27.
  • 28.
    All contents ©MuleSoft Inc. Step by Step - Test 28 • Toolset: Maven, Munits, Jmeter, Postman, SonarQube, custom tools • Quality gate • Static code analysis • Code review checklist • SonarQube / Custom Toolset • Munits • Postman collections Mule Validation Tool
  • 29.
    All contents ©MuleSoft Inc. Step by Step – Release and Deploy 29 • Toolset: Maven, Azure DevOps, Jenkins, git, Bamboo • API Management – SLA Tiers and Policy Handling • Responsibility split • Preparation for release and deployment • Post-deployment tests • Promotion to higher environments • Exchange documentation • Post-implementation documentation
  • 30.
    All contents ©MuleSoft Inc. Step by Step – Release and Deploy
  • 31.
    All contents ©MuleSoft Inc. Step by Step – Operate & Monitor 31 • Toolset: ServiceNow, Jira, Anypoint Platform, ELK, custom dashboards • Operations model • Advance Monitoring capoabilities of the platform • ELK • Custom dashboards • Notifications • Alerts • Recovery action • MuleSoft status
  • 32.
    All contents ©MuleSoft Inc. Step by Step – Operate & Monitor
  • 33.
    All contents ©MuleSoft Inc. Step by Step – C4E & Operations 33 • Basic use cases • Automate as much as possible! • Enhance with sprints approach • Maintain a backlog • Documentation • Video tutorials • MuleSoft Community of Practice • Avoid same questions • Must have to enter the Platform
  • 34.
    All contents ©MuleSoft Inc. Summary 34 • You can fully automate integration and deployment process • CI/CD is reliable • Training and good documentation is key factor • Release first version as soon as possible then enhance with sprints approach • Quality gates are your friends • Automate, automate and then autmate some more • Build community of practice
  • 35.
  • 36.
    All contents ©MuleSoft Inc. Materials 36 • Continuous integration and continuous delivery (CI/CD) – https://www.mulesoft.com/resources/api/continuous-integration-continuous- delivery – https://docs.mulesoft.com/mule-runtime/4.2/continuous-integration • Deployment – https://docs.mulesoft.com/mule-runtime/4.2/using-maven-with-mule – https://docs.mulesoft.com/mule-runtime/4.2/deploying
  • 37.
  • 38.
    All contents ©MuleSoft Inc. Let’s get familiar with the Kahoot by a quick 4 questions warm up Kahoot warmup!
  • 39.
    All contents ©MuleSoft Inc. For 3 winners a special prize is ready, so take part in the trivia quiz Trivia
  • 40.
    All contents ©MuleSoft Inc. What’s next 40 • Feedback: – Contact your organizer Patryk Bandurski via e-mail or LinkedIn profile to suggest topics – Contact MuleSoft at meetup@mulesoft.com for ways to improve the program • Our next meetup: – Date: April/May 2020 – Topic: not known yet
  • 41.
    All contents ©MuleSoft Inc. What’s next 41 Invite your network to join – https://meetups.mulesoft.com/warsaw/
  • 42.
    Group photo Time todo the photo!
  • 43.

Editor's Notes

  • #39 https://play.kahoot.it/v2/?quizId=211c4cc7-2ecb-4c5c-8eb6-b1066f176c42
  • #40 https://play.kahoot.it/v2/?quizId=f5332795-e55a-4477-a63d-d74719aa4d08