SlideShare a Scribd company logo
Continuous Integration and delivery
for Java based web applications using
Jenkins-Gradle-Artifactory
Sunil Dalal (@sunieldalal)
Full Stack Developer / Architect
What is Continuous Integration?
Continuous Integration is a software development practice where members of a team integrate their work
frequently, usually each person integrates at least daily - leading to multiple integrations per day. Each integration
is verified by an automated build (including test) to detect integration errors as quickly as possible. Many teams
find that this approach leads to significantly reduced integration problems and allows a team to develop cohesive
software more rapidly."
- Martin Fowler, ThoughtWorks Chief Scientist
What is Continuous Delivery?
Continuous Delivery is the natural extension of Continuous Integration: an approach in which teams
ensure that every change to the system is releasable, and that we can release any version at the push
of a button. Continuous Delivery aims to make releases boring, so we can deliver frequently and get
fast feedback on what users care about.
http://www.thoughtworks.com/continuous-delivery
It’s best thing happened in my developer life! CI and CD gives a great confidence to developer and
makes them more productive. CI/CD is a must for any successful software product.
- My View
Before Continuous Integration / Delivery?
• Manual Deployments.
• Manual Restarts.
• No Automated Test infrastructure. Only manual testing!
• Less confidence! Long turnaround time.
Why Continuous Integration / Delivery?
• Immediate feedback, faster turn around time.
• Enforces discipline of frequent automated testing.
• Better coding practices - Frequent code check-in pushes developers to create modular, less
complex code.
• Every commit can result in a release!
Continuous Integration / Delivery Workflow
CI / CD step by step
• Developers check out code into their local machines.
• Developer commit changes to the source code repository.
• The CI server monitors the source code repository and starts build process.
• The CI server builds the system and runs unit and integration tests.
• The CI server releases deployable artifacts for testing.
• The CI server assigns a build label to the version of the code it just built.
• The CI server informs the team of the successful build.
• If the build or tests fail, the CI server alerts the team.
• The team fix the issue at the earliest opportunity.
• Continue to continually integrate and test throughout the project
• On Approval, CI server deploys to test environments.
• CI Server runs functional / performance tests on Test environment.
• CI Server stage / Deploys to Production Environments (Can set up email based approval).
Reference: https://www.thoughtworks.com/continuous-integration
Tools Used
Tools Options
Source Code Repository Github, Perforce
Continuous Integration Server Jenkins
Binary Repository Manager Artifactory
Code Analysis Sonar Qube
Code Analysis Tools(Java) Checkstyle, PMD, Jacoco, FindBugs,
JDepend
Build Tools (Java) Gradle
Achieving CI / CD using Gradle / Jenkins /
Artifactory
CI/CD Workflow
Jenkins Workflow
Jenkins Workflow
Each Jenkins job executes one of the commands available via Gradle
gradle compile
gradle build
gradle test
Jenkins Build Step
Jenkins Build Step
Executes gradle build via Jenkins job
Jenkins Unit Test Step
Jenkins Build Step
Executes gradle test command via Jenkins job
Jenkins Code Analysis Step
Code Analysis Tools
• Checkstyle
Ideal for projects that want to enforce a coding standard. Discovers poor design, duplicated code and bug
patterns.
• FindBugs
Helps in discovering potential bugs, performance issues and bad coding practices.
• Jdepend
Helps in measuring design quality metrics like maintainability, reusability, extensibility.
• PMD
Finds unused, overly complex and inefficient code.
• JaCoCo
Used for Code Coverage. On the fly byte code instrumentation.
Code Analysis Tools - Checkstyle
Checkstyle is highly configurable and can be made to support almost any coding
standard.
Integrated by adding checstyle Gradle plugin in the project.
Code Analysis Tools - PMD
 PMD is a source code analyzer. It finds common programming flaws like unused
variables, empty catch blocks, unnecessary object creation, and so forth. It
supports Java, JavaScript, XML, XSL.
 Integrated by adding PMD Gradle plugin in the project.
Code Analysis Tools - JDepend
 JDepend traverses Java class file directories and generates design quality metrics
for each Java package. JDepend allows you to automatically measure the quality
of a design in terms of its extensibility, reusability, and maintainability to manage
package dependencies effectively.
 Integrated by adding Jdepend Gradle plugin in the project.
Code Analysis Tools - FindBugs
uses static analysis to look for bugs in Java code.
Integrated by adding FindBugs Gradle plugin in the project.
Code Analysis Tools - JaCoCo
 Used for Code Coverage. On the fly byte code instrumentation.
 In a continuous delivery pipeline, where packaging the deliverable is done after
executing the code analysis phase, we want to make sure that the source or byte
code isn’t modified after the compilation process to avoid unexpected behavior in
target enironment. That’s why, on-the-fly instrumentation should be preferred.
 Integrated by adding JaCoCo Gradle plugin in the project.
SONAR - Architect’s friend in managing code
quality
SonarQube is an open platform to manage code quality. As such, it covers the 7
axes of code quality.
Imports All Code analysis data in SONAR DB for further analysis..
SONAR Dashboard
26
CI – Publish
27
Artifactory Integration
28
Artifactory Dashboard
29
Deploy Artifacts
30
CI – Deploy
31
CI – Deploy
 Can Use scripts or Plugins which can directly deploy to Tomcat or any other
application Servers.
Common Questions
33
Great! what all plugins you guys have used
for Jenkins?
 Git Plugin to checkout source code from repo.
 Gitlab plugin for polling and start builds on each checkin.
 Gradle plugin to install gradle on CI and execute Gradle commands.
 Credentials Plugin to store the credentials securely.
 Build Pipeline plugin.
 Used Clone Workspace Plugin.
 Used Set Build Name Plugin.
 Parametrized Build Plugin.
 GitLab plugin for integration with Gitlab.
34
Great! what all plugins you guys have used
for Gradle?
35
Do we need to copy these gradle plugins to
every project? Code duplication?
 Keep it DRY (Don’t Repeat yourself)
 You can move all gradle plugins to your company wide gradle wrapper
 Individual projects can point to your company wide gradle wrapper to get new
updates.
36
Do you do build on each check in?
 Set up Git Jenkins SSH integration so that we can invoke build on each check in.
Works great for smaller teams.
 For larger teams, CI server polls the SCM and build every 10 minutes!
37
How to manage versioning for project?
 SNAPSHOT-BuildNumber for internal builds.
 RELEASE-x.0 for builds to be released.
 Versioning can be managed via gradle properties file where you can tag version type
as SNAPSHOT or RELEASE
 OR
 Make changes in your CI server to have jobs which can tag builds based on your
defined criteria.
 You can also have jobs which can promote builds from SNAPSHOT to RELEASE.
38
How do you do rollback?
 Rollback should be one click similar to deploy.
 Make your CI server Jobs intelligent to achieve this.
Twitter: @sunieldalal
Blog: http://sunieldalal.github.io/
Github: https://github.com/sunieldalal
LinkedIn: https://www.linkedin.com/in/sunieldalalThank you so much!

More Related Content

What's hot (20)

PPTX
From Continuous Integration to DevOps
IBM UrbanCode Products
 
PDF
Apache DeltaSpike the CDI toolbox
Antoine Sabot-Durand
 
PDF
Java 11 OMG
Hendrik Ebbers
 
PDF
Java APIs- The missing manual (concurrency)
Hendrik Ebbers
 
PDF
Jenkins vs. AWS CodePipeline
Steffen Gebert
 
PDF
CI and CD Across the Enterprise with Jenkins (devops.com Nov 2014)
CloudBees
 
PDF
Full-Stack Development with Spring Boot and VueJS
VMware Tanzu
 
PDF
Server Add-ons for Front-end Developers
Atlassian
 
PDF
Transform Digital Business with DevOps
Daniel Oh
 
PPTX
Leveling Up Deployment Infrastructure
Salesforce Engineering
 
PDF
Prod-Like Integration Testing for Distributed Containerized Applications
VMware Tanzu
 
PDF
Transporting Data at Warp Speed: How to Connect Spring Boot Apps Quickly, Pow...
VMware Tanzu
 
PDF
Java APIs - the missing manual
Hendrik Ebbers
 
PDF
Microservices Testing at Scale
VMware Tanzu
 
KEY
Continuous Integration & Drupal
LimoenGroen
 
PDF
Grails 3.0 Preview
graemerocher
 
PDF
How to Build a Better JIRA Add-on
Atlassian
 
PDF
Serverless Delivery
Casey Lee
 
PDF
Configuration as Code in Bamboo
Atlassian
 
PPTX
Moving to the Client - JavaFX and HTML5
Stephen Chin
 
From Continuous Integration to DevOps
IBM UrbanCode Products
 
Apache DeltaSpike the CDI toolbox
Antoine Sabot-Durand
 
Java 11 OMG
Hendrik Ebbers
 
Java APIs- The missing manual (concurrency)
Hendrik Ebbers
 
Jenkins vs. AWS CodePipeline
Steffen Gebert
 
CI and CD Across the Enterprise with Jenkins (devops.com Nov 2014)
CloudBees
 
Full-Stack Development with Spring Boot and VueJS
VMware Tanzu
 
Server Add-ons for Front-end Developers
Atlassian
 
Transform Digital Business with DevOps
Daniel Oh
 
Leveling Up Deployment Infrastructure
Salesforce Engineering
 
Prod-Like Integration Testing for Distributed Containerized Applications
VMware Tanzu
 
Transporting Data at Warp Speed: How to Connect Spring Boot Apps Quickly, Pow...
VMware Tanzu
 
Java APIs - the missing manual
Hendrik Ebbers
 
Microservices Testing at Scale
VMware Tanzu
 
Continuous Integration & Drupal
LimoenGroen
 
Grails 3.0 Preview
graemerocher
 
How to Build a Better JIRA Add-on
Atlassian
 
Serverless Delivery
Casey Lee
 
Configuration as Code in Bamboo
Atlassian
 
Moving to the Client - JavaFX and HTML5
Stephen Chin
 

Viewers also liked (20)

PDF
Docker for Java Developers
NGINX, Inc.
 
PDF
Docker for Java Developers
Imesh Gunaratne
 
PPTX
Docker introduction
dotCloud
 
PDF
JavaLand 2014 - Ankor.io Presentation
manolitto
 
PPTX
Automate Database Deployment - SQL In The City Workshop
Red Gate Software
 
PDF
Iuandalucia programa2012
Lidia Milena
 
PPTX
1to1
bloomingdale5
 
PPTX
Mi vida eres tu
Kevin Prado
 
PPT
1:1 In a 5th Grade Classroom
bloomingdale5
 
PDF
Caderno literario pragmatha 56 abril 2014
elvandroburity
 
PPTX
Delo z besedilom
Mojca Jamnik
 
ODP
Jms.back.to.basic
Guillaume Arnaud
 
PDF
Granada roja 25
Lidia Milena
 
PPTX
Sneak Peek to the Healthy Living Market
bloomingdale5
 
PPT
SD36 Surrey - Inquiry teams Oct.2010
christensen_lea
 
PPTX
DevOps Drive-In: Automate Database Deployments in Your Continuous Delivery Pi...
Serena Software
 
PDF
Joomladay Netherlands 2012 - Joomla in the Cloud
Johan Janssens
 
DOCX
3 assignment of mis
sapna-1988
 
PDF
Continuous Delivery in Java
XPeppers
 
PPTX
JavaLand - Integration Testing How-to
Nicolas Fränkel
 
Docker for Java Developers
NGINX, Inc.
 
Docker for Java Developers
Imesh Gunaratne
 
Docker introduction
dotCloud
 
JavaLand 2014 - Ankor.io Presentation
manolitto
 
Automate Database Deployment - SQL In The City Workshop
Red Gate Software
 
Iuandalucia programa2012
Lidia Milena
 
Mi vida eres tu
Kevin Prado
 
1:1 In a 5th Grade Classroom
bloomingdale5
 
Caderno literario pragmatha 56 abril 2014
elvandroburity
 
Delo z besedilom
Mojca Jamnik
 
Jms.back.to.basic
Guillaume Arnaud
 
Granada roja 25
Lidia Milena
 
Sneak Peek to the Healthy Living Market
bloomingdale5
 
SD36 Surrey - Inquiry teams Oct.2010
christensen_lea
 
DevOps Drive-In: Automate Database Deployments in Your Continuous Delivery Pi...
Serena Software
 
Joomladay Netherlands 2012 - Joomla in the Cloud
Johan Janssens
 
3 assignment of mis
sapna-1988
 
Continuous Delivery in Java
XPeppers
 
JavaLand - Integration Testing How-to
Nicolas Fränkel
 
Ad

Similar to Continuous integration and delivery for java based web applications (20)

PPTX
Continous integration and delivery for single page applications
Sunil Dalal
 
PDF
DevOps Continuous Integration & Delivery - A Whitepaper by RapidValue
RapidValue
 
PPTX
Continuous integration using jenkins
Vinay H G
 
PPTX
Continuous Integration
XPDays
 
PPTX
Lets talk about CI CD Pipeline in Agile
Poonam Panday
 
PDF
Agile Bodensee - Testautomation & Continuous Delivery Workshop
Michael Palotas
 
PPTX
Agile a to z chapter 4 feedback loop
Wajih Aslam
 
PDF
Agile A to Z Chapter 4 Feedback Loop Part 2 DevOps
Agile ME
 
PDF
DevOps & DevEx
Ifunga Ndana
 
PPT
Part 2 improving your software development v1.0
Jasmine Conseil
 
DOC
Continuous integration and deployment with jenkins
Md. Shariful Islam ✅
 
PDF
CI/CD Tools That Will Revolutionize Your DevOps Process
Shubham Joshi
 
PDF
Code review automation and functional tests on Carrefour
Denis Santos
 
PPTX
SCALABLE CI CD DEVOPS
G R VISHAL
 
PPTX
varun JENKINS.pptx
VgPolampalli
 
PPTX
Continuous integration
John Temoty Roca
 
PDF
End-end tests as first class citizens - SeleniumConf 2020
Abhijeet Vaikar
 
PDF
Continuous Everything
Andrea Tino
 
PPTX
Continuous Integrations & Deployments
Shinu Suresh
 
PPT
Presentation 1 open source tools in continuous integration environment v1.0
Jasmine Conseil
 
Continous integration and delivery for single page applications
Sunil Dalal
 
DevOps Continuous Integration & Delivery - A Whitepaper by RapidValue
RapidValue
 
Continuous integration using jenkins
Vinay H G
 
Continuous Integration
XPDays
 
Lets talk about CI CD Pipeline in Agile
Poonam Panday
 
Agile Bodensee - Testautomation & Continuous Delivery Workshop
Michael Palotas
 
Agile a to z chapter 4 feedback loop
Wajih Aslam
 
Agile A to Z Chapter 4 Feedback Loop Part 2 DevOps
Agile ME
 
DevOps & DevEx
Ifunga Ndana
 
Part 2 improving your software development v1.0
Jasmine Conseil
 
Continuous integration and deployment with jenkins
Md. Shariful Islam ✅
 
CI/CD Tools That Will Revolutionize Your DevOps Process
Shubham Joshi
 
Code review automation and functional tests on Carrefour
Denis Santos
 
SCALABLE CI CD DEVOPS
G R VISHAL
 
varun JENKINS.pptx
VgPolampalli
 
Continuous integration
John Temoty Roca
 
End-end tests as first class citizens - SeleniumConf 2020
Abhijeet Vaikar
 
Continuous Everything
Andrea Tino
 
Continuous Integrations & Deployments
Shinu Suresh
 
Presentation 1 open source tools in continuous integration environment v1.0
Jasmine Conseil
 
Ad

Recently uploaded (20)

PDF
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
PDF
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
PDF
“Voice Interfaces on a Budget: Building Real-time Speech Recognition on Low-c...
Edge AI and Vision Alliance
 
PDF
🚀 Let’s Build Our First Slack Workflow! 🔧.pdf
SanjeetMishra29
 
PPTX
Agentforce World Tour Toronto '25 - Supercharge MuleSoft Development with Mod...
Alexandra N. Martinez
 
PDF
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
PPTX
Seamless Tech Experiences Showcasing Cross-Platform App Design.pptx
presentifyai
 
PDF
NASA A Researcher’s Guide to International Space Station : Physical Sciences ...
Dr. PANKAJ DHUSSA
 
PDF
SIZING YOUR AIR CONDITIONER---A PRACTICAL GUIDE.pdf
Muhammad Rizwan Akram
 
PDF
Automating Feature Enrichment and Station Creation in Natural Gas Utility Net...
Safe Software
 
PDF
Go Concurrency Real-World Patterns, Pitfalls, and Playground Battles.pdf
Emily Achieng
 
PDF
ICONIQ State of AI Report 2025 - The Builder's Playbook
Razin Mustafiz
 
PDF
Staying Human in a Machine- Accelerated World
Catalin Jora
 
PDF
“Squinting Vision Pipelines: Detecting and Correcting Errors in Vision Models...
Edge AI and Vision Alliance
 
DOCX
Cryptography Quiz: test your knowledge of this important security concept.
Rajni Bhardwaj Grover
 
PDF
UPDF - AI PDF Editor & Converter Key Features
DealFuel
 
PDF
What’s my job again? Slides from Mark Simos talk at 2025 Tampa BSides
Mark Simos
 
PDF
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
PPTX
MuleSoft MCP Support (Model Context Protocol) and Use Case Demo
shyamraj55
 
PDF
“NPU IP Hardware Shaped Through Software and Use-case Analysis,” a Presentati...
Edge AI and Vision Alliance
 
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
“Voice Interfaces on a Budget: Building Real-time Speech Recognition on Low-c...
Edge AI and Vision Alliance
 
🚀 Let’s Build Our First Slack Workflow! 🔧.pdf
SanjeetMishra29
 
Agentforce World Tour Toronto '25 - Supercharge MuleSoft Development with Mod...
Alexandra N. Martinez
 
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
Seamless Tech Experiences Showcasing Cross-Platform App Design.pptx
presentifyai
 
NASA A Researcher’s Guide to International Space Station : Physical Sciences ...
Dr. PANKAJ DHUSSA
 
SIZING YOUR AIR CONDITIONER---A PRACTICAL GUIDE.pdf
Muhammad Rizwan Akram
 
Automating Feature Enrichment and Station Creation in Natural Gas Utility Net...
Safe Software
 
Go Concurrency Real-World Patterns, Pitfalls, and Playground Battles.pdf
Emily Achieng
 
ICONIQ State of AI Report 2025 - The Builder's Playbook
Razin Mustafiz
 
Staying Human in a Machine- Accelerated World
Catalin Jora
 
“Squinting Vision Pipelines: Detecting and Correcting Errors in Vision Models...
Edge AI and Vision Alliance
 
Cryptography Quiz: test your knowledge of this important security concept.
Rajni Bhardwaj Grover
 
UPDF - AI PDF Editor & Converter Key Features
DealFuel
 
What’s my job again? Slides from Mark Simos talk at 2025 Tampa BSides
Mark Simos
 
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
MuleSoft MCP Support (Model Context Protocol) and Use Case Demo
shyamraj55
 
“NPU IP Hardware Shaped Through Software and Use-case Analysis,” a Presentati...
Edge AI and Vision Alliance
 

Continuous integration and delivery for java based web applications

  • 1. Continuous Integration and delivery for Java based web applications using Jenkins-Gradle-Artifactory Sunil Dalal (@sunieldalal) Full Stack Developer / Architect
  • 2. What is Continuous Integration? Continuous Integration is a software development practice where members of a team integrate their work frequently, usually each person integrates at least daily - leading to multiple integrations per day. Each integration is verified by an automated build (including test) to detect integration errors as quickly as possible. Many teams find that this approach leads to significantly reduced integration problems and allows a team to develop cohesive software more rapidly." - Martin Fowler, ThoughtWorks Chief Scientist
  • 3. What is Continuous Delivery? Continuous Delivery is the natural extension of Continuous Integration: an approach in which teams ensure that every change to the system is releasable, and that we can release any version at the push of a button. Continuous Delivery aims to make releases boring, so we can deliver frequently and get fast feedback on what users care about. http://www.thoughtworks.com/continuous-delivery It’s best thing happened in my developer life! CI and CD gives a great confidence to developer and makes them more productive. CI/CD is a must for any successful software product. - My View
  • 4. Before Continuous Integration / Delivery? • Manual Deployments. • Manual Restarts. • No Automated Test infrastructure. Only manual testing! • Less confidence! Long turnaround time.
  • 5. Why Continuous Integration / Delivery? • Immediate feedback, faster turn around time. • Enforces discipline of frequent automated testing. • Better coding practices - Frequent code check-in pushes developers to create modular, less complex code. • Every commit can result in a release!
  • 6. Continuous Integration / Delivery Workflow
  • 7. CI / CD step by step • Developers check out code into their local machines. • Developer commit changes to the source code repository. • The CI server monitors the source code repository and starts build process. • The CI server builds the system and runs unit and integration tests. • The CI server releases deployable artifacts for testing. • The CI server assigns a build label to the version of the code it just built. • The CI server informs the team of the successful build. • If the build or tests fail, the CI server alerts the team. • The team fix the issue at the earliest opportunity. • Continue to continually integrate and test throughout the project • On Approval, CI server deploys to test environments. • CI Server runs functional / performance tests on Test environment. • CI Server stage / Deploys to Production Environments (Can set up email based approval). Reference: https://www.thoughtworks.com/continuous-integration
  • 8. Tools Used Tools Options Source Code Repository Github, Perforce Continuous Integration Server Jenkins Binary Repository Manager Artifactory Code Analysis Sonar Qube Code Analysis Tools(Java) Checkstyle, PMD, Jacoco, FindBugs, JDepend Build Tools (Java) Gradle
  • 9. Achieving CI / CD using Gradle / Jenkins / Artifactory
  • 12. Jenkins Workflow Each Jenkins job executes one of the commands available via Gradle gradle compile gradle build gradle test
  • 14. Jenkins Build Step Executes gradle build via Jenkins job
  • 16. Jenkins Build Step Executes gradle test command via Jenkins job
  • 18. Code Analysis Tools • Checkstyle Ideal for projects that want to enforce a coding standard. Discovers poor design, duplicated code and bug patterns. • FindBugs Helps in discovering potential bugs, performance issues and bad coding practices. • Jdepend Helps in measuring design quality metrics like maintainability, reusability, extensibility. • PMD Finds unused, overly complex and inefficient code. • JaCoCo Used for Code Coverage. On the fly byte code instrumentation.
  • 19. Code Analysis Tools - Checkstyle Checkstyle is highly configurable and can be made to support almost any coding standard. Integrated by adding checstyle Gradle plugin in the project.
  • 20. Code Analysis Tools - PMD  PMD is a source code analyzer. It finds common programming flaws like unused variables, empty catch blocks, unnecessary object creation, and so forth. It supports Java, JavaScript, XML, XSL.  Integrated by adding PMD Gradle plugin in the project.
  • 21. Code Analysis Tools - JDepend  JDepend traverses Java class file directories and generates design quality metrics for each Java package. JDepend allows you to automatically measure the quality of a design in terms of its extensibility, reusability, and maintainability to manage package dependencies effectively.  Integrated by adding Jdepend Gradle plugin in the project.
  • 22. Code Analysis Tools - FindBugs uses static analysis to look for bugs in Java code. Integrated by adding FindBugs Gradle plugin in the project.
  • 23. Code Analysis Tools - JaCoCo  Used for Code Coverage. On the fly byte code instrumentation.  In a continuous delivery pipeline, where packaging the deliverable is done after executing the code analysis phase, we want to make sure that the source or byte code isn’t modified after the compilation process to avoid unexpected behavior in target enironment. That’s why, on-the-fly instrumentation should be preferred.  Integrated by adding JaCoCo Gradle plugin in the project.
  • 24. SONAR - Architect’s friend in managing code quality SonarQube is an open platform to manage code quality. As such, it covers the 7 axes of code quality. Imports All Code analysis data in SONAR DB for further analysis..
  • 31. 31 CI – Deploy  Can Use scripts or Plugins which can directly deploy to Tomcat or any other application Servers.
  • 33. 33 Great! what all plugins you guys have used for Jenkins?  Git Plugin to checkout source code from repo.  Gitlab plugin for polling and start builds on each checkin.  Gradle plugin to install gradle on CI and execute Gradle commands.  Credentials Plugin to store the credentials securely.  Build Pipeline plugin.  Used Clone Workspace Plugin.  Used Set Build Name Plugin.  Parametrized Build Plugin.  GitLab plugin for integration with Gitlab.
  • 34. 34 Great! what all plugins you guys have used for Gradle?
  • 35. 35 Do we need to copy these gradle plugins to every project? Code duplication?  Keep it DRY (Don’t Repeat yourself)  You can move all gradle plugins to your company wide gradle wrapper  Individual projects can point to your company wide gradle wrapper to get new updates.
  • 36. 36 Do you do build on each check in?  Set up Git Jenkins SSH integration so that we can invoke build on each check in. Works great for smaller teams.  For larger teams, CI server polls the SCM and build every 10 minutes!
  • 37. 37 How to manage versioning for project?  SNAPSHOT-BuildNumber for internal builds.  RELEASE-x.0 for builds to be released.  Versioning can be managed via gradle properties file where you can tag version type as SNAPSHOT or RELEASE  OR  Make changes in your CI server to have jobs which can tag builds based on your defined criteria.  You can also have jobs which can promote builds from SNAPSHOT to RELEASE.
  • 38. 38 How do you do rollback?  Rollback should be one click similar to deploy.  Make your CI server Jobs intelligent to achieve this.
  • 39. Twitter: @sunieldalal Blog: http://sunieldalal.github.io/ Github: https://github.com/sunieldalal LinkedIn: https://www.linkedin.com/in/sunieldalalThank you so much!