SlideShare a Scribd company logo
Pipeline as Code
using Jenkins
Introduction to Jenkins Pipeline in the QE workflow
Anisha Narang
Swapnil Jadhav
Principal Software Quality Engineer | Red Hat QE Lead | Red Hat
Agenda:
● Introduction to Jenkins pipelines
● Pipeline Concepts and Syntax
● Making pipelines part of your codebase.
● Demo
● QnA
Challenges with Test Automation & CI/CDs
● Frequent releases demand robust regression suite
● Difficulties in managing complexities in Freestyle jobs
● Integration with Dev team’s deployment pipelines
● Migration of QA Jenkins VM
● In-ability to stop/pause jenkins job for user input.
What is Jenkins Pipeline?
In Jenkins, a pipeline is a collection of events or jobs which are interlinked with
one another in a sequence. It is a combination of plugins that support the
integration and implementation of continuous delivery pipelines using Jenkins.
Why Jenkins Pipeline
● Jenkins file could be stored in SCM
● Single source of pipeline helps multiple users to contribute
● Audit Trail
● Pause/Start Pipeline for user’s inputs
● Easy to accommodate Complex Pipelines using loop, forks
● Easy job restoration during Jenkins Migration
● Resilient for unplanned restarts
Pipeline Concepts
Pipeline as Code via the Pipeline specific DSL syntax.
Jenkinsfile Definition of Jenkins pipeline in a text file.
● Pipeline
○ A Pipeline is a user-defined model of a CD pipeline; a Pipeline’s code defines your entire build
process.
● Node
○ A node is a machine which is part of the Jenkins environment and is capable of executing a
Pipeline.
● Stage
○ A stage block defines a conceptually distinct subset of tasks performed through the entire
Pipeline (e.g. "Build", "Test" and "Deploy" stages)
● Step
○ A single task. Fundamentally, a step tells Jenkins what to do at a particular point in time (or
"step" in the process)
Pipeline Syntax
● Declarative
● Scripted
A Jenkinsfile can be written using two types of syntax:
Pipeline as code using Jenkins -Ministry of Testing
Declarative Pipeline for Tests
Demo
● Getting started with Pipelines
○ Using the Web UI to write Pipeline
○ Configuring Selenium Java repo
○ Publish TestNG reports
● Configuring your jenkins job for API tests with Jenkinsfile
○ Parameterize the job
○ Add stages
○ Publish reports
○ Trigger emails.
References:
- Getting started with Jenkins Pipeline -> https://www.jenkins.io/doc/book/pipeline/
Demo references:
- Selenium java repo -> https://github.com/the-test-trove/Selenium-testNg-Maven
- Configuring Jenkins job using Maven -> https://github.com/the-test-trove/Selenium-
testNg-Maven/blob/main/jenkins_config/Jenkinsfile
- API tests using lcc -> https://github.com/the-test-trove/api-tests-lcc
- Jenkinsfile -> https://github.com/the-test-trove/api-tests-
lcc/blob/master/jenkins_config/Jenkinsfile
Questions?
@anisha_narang @swapnil_111

More Related Content

What's hot (20)

ODP
Pipeline based deployments on Jenkins
Knoldus Inc.
 
PPTX
Delivery Pipeline as Code: using Jenkins 2.0 Pipeline
Slawa Giterman
 
PPTX
Jenkins Pipeline 101 and TCI - presentation and workshop
Yoram Michaeli
 
PDF
Hacking Jenkins
Miro Cupak
 
PDF
Jenkins
Roger Xia
 
PPT
Jenkins - Continuous Integration after Hudson, CruiseControl, and home built
Mark Waite
 
ODP
Jenkins Pipelining and Gatling Integration
Knoldus Inc.
 
PPTX
Jenkins
MohanRaviRohitth
 
PPTX
Continuous Delivery - Pipeline as-code
Mike van Vendeloo
 
PPTX
Jenkins CI presentation
Jonathan Holloway
 
PPT
Flash Camp Chennai - Build automation of Flex and AIR applications
RIA RUI Society
 
PDF
How to write a Dockerfile
Knoldus Inc.
 
PDF
CI/CD with Jenkins and Docker - DevOps Meetup Day Thailand
Troublemaker Khunpech
 
PDF
JUC Europe 2015: Plugin Development with Gradle and Groovy
CloudBees
 
PDF
Building Efficient Parallel Testing Platforms with Docker
Laura Frank Tacho
 
PDF
From Virtual Machines to Containers
camunda services GmbH
 
PPT
CI and CD with Jenkins
Martin Málek
 
PPTX
SD DevOps Meet-up - Jenkins 2.0 and Pipeline-as-Code
Brian Dawson
 
PDF
2013 10-28 php ug presentation - ci using phing and hudson
Shreeniwas Iyer
 
PPTX
Supermondays: Jenkins CI lightning talk
Michael Peacock
 
Pipeline based deployments on Jenkins
Knoldus Inc.
 
Delivery Pipeline as Code: using Jenkins 2.0 Pipeline
Slawa Giterman
 
Jenkins Pipeline 101 and TCI - presentation and workshop
Yoram Michaeli
 
Hacking Jenkins
Miro Cupak
 
Jenkins
Roger Xia
 
Jenkins - Continuous Integration after Hudson, CruiseControl, and home built
Mark Waite
 
Jenkins Pipelining and Gatling Integration
Knoldus Inc.
 
Continuous Delivery - Pipeline as-code
Mike van Vendeloo
 
Jenkins CI presentation
Jonathan Holloway
 
Flash Camp Chennai - Build automation of Flex and AIR applications
RIA RUI Society
 
How to write a Dockerfile
Knoldus Inc.
 
CI/CD with Jenkins and Docker - DevOps Meetup Day Thailand
Troublemaker Khunpech
 
JUC Europe 2015: Plugin Development with Gradle and Groovy
CloudBees
 
Building Efficient Parallel Testing Platforms with Docker
Laura Frank Tacho
 
From Virtual Machines to Containers
camunda services GmbH
 
CI and CD with Jenkins
Martin Málek
 
SD DevOps Meet-up - Jenkins 2.0 and Pipeline-as-Code
Brian Dawson
 
2013 10-28 php ug presentation - ci using phing and hudson
Shreeniwas Iyer
 
Supermondays: Jenkins CI lightning talk
Michael Peacock
 

Similar to Pipeline as code using Jenkins -Ministry of Testing (20)

PDF
Implementing CI CD UiPath Using Jenkins Plugin
Satish Prasad
 
PPTX
Pipeline as code - new feature in Jenkins 2
Michal Ziarnik
 
PDF
vodQA Pune (2019) - Jenkins pipeline As code
vodQA
 
PPTX
What Is Jenkins? Features and How It Works
International Institute of Information Technology (I²IT)
 
PDF
Jenkins.pdf
326KUBAVATHARSHALBHA
 
PPTX
Basic Jenkins Guide.pptx
Jayanga V. Liyanage
 
PPTX
Jenkins2 - Coding Continuous Delivery Pipelines
Brent Laster
 
PDF
Pipeline 101 Lorelei Mccollum
Lorelei McCollum
 
PDF
Jenkins pipeline -- Gentle Introduction
Ramanathan Muthaiah
 
PDF
Jenkins Pipelines
Steffen Gebert
 
PDF
Pipeline as Code
Kris Buytaert
 
PPTX
jenkins_pipeline_classicUI.pptx
ssuser0e73f4
 
PDF
35 Jenkins Interview Questions and Answers for 2023.pdf
himanijain83
 
PDF
Continuous delivery with jenkins pipelines @ devdays
Roman Pickl
 
PPTX
varun JENKINS.pptx
VgPolampalli
 
PDF
413450-rc218-cdw-jenkins-workflow
Andy Pemberton
 
PDF
Codifying the Build and Release Process with a Jenkins Pipeline Shared Library
Alvin Huang
 
PPTX
DevOps-CI_CD_JAVA_JAVA______Jenkins.pptx
ajaysahu931430
 
PDF
Jenkins & IaC
HungWei Chiu
 
PDF
TDD for jenkins pipelines
Mauro Ferratello
 
Implementing CI CD UiPath Using Jenkins Plugin
Satish Prasad
 
Pipeline as code - new feature in Jenkins 2
Michal Ziarnik
 
vodQA Pune (2019) - Jenkins pipeline As code
vodQA
 
What Is Jenkins? Features and How It Works
International Institute of Information Technology (I²IT)
 
Basic Jenkins Guide.pptx
Jayanga V. Liyanage
 
Jenkins2 - Coding Continuous Delivery Pipelines
Brent Laster
 
Pipeline 101 Lorelei Mccollum
Lorelei McCollum
 
Jenkins pipeline -- Gentle Introduction
Ramanathan Muthaiah
 
Jenkins Pipelines
Steffen Gebert
 
Pipeline as Code
Kris Buytaert
 
jenkins_pipeline_classicUI.pptx
ssuser0e73f4
 
35 Jenkins Interview Questions and Answers for 2023.pdf
himanijain83
 
Continuous delivery with jenkins pipelines @ devdays
Roman Pickl
 
varun JENKINS.pptx
VgPolampalli
 
413450-rc218-cdw-jenkins-workflow
Andy Pemberton
 
Codifying the Build and Release Process with a Jenkins Pipeline Shared Library
Alvin Huang
 
DevOps-CI_CD_JAVA_JAVA______Jenkins.pptx
ajaysahu931430
 
Jenkins & IaC
HungWei Chiu
 
TDD for jenkins pipelines
Mauro Ferratello
 
Ad

Recently uploaded (20)

PDF
AI Agents in the Cloud: The Rise of Agentic Cloud Architecture
Lilly Gracia
 
PDF
Staying Human in a Machine- Accelerated World
Catalin Jora
 
PDF
Kit-Works Team Study_20250627_한달만에만든사내서비스키링(양다윗).pdf
Wonjun Hwang
 
PPTX
Digital Circuits, important subject in CS
contactparinay1
 
PDF
UPDF - AI PDF Editor & Converter Key Features
DealFuel
 
PDF
Future-Proof or Fall Behind? 10 Tech Trends You Can’t Afford to Ignore in 2025
DIGITALCONFEX
 
PDF
Transforming Utility Networks: Large-scale Data Migrations with FME
Safe Software
 
PDF
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
PDF
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
PDF
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
PDF
The 2025 InfraRed Report - Redpoint Ventures
Razin Mustafiz
 
PPTX
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
PPTX
Agentforce World Tour Toronto '25 - Supercharge MuleSoft Development with Mod...
Alexandra N. Martinez
 
PPT
Ericsson LTE presentation SEMINAR 2010.ppt
npat3
 
PPTX
The Project Compass - GDG on Campus MSIT
dscmsitkol
 
PDF
NLJUG Speaker academy 2025 - first session
Bert Jan Schrijver
 
PPTX
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
PDF
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
PDF
LOOPS in C Programming Language - Technology
RishabhDwivedi43
 
PDF
Automating Feature Enrichment and Station Creation in Natural Gas Utility Net...
Safe Software
 
AI Agents in the Cloud: The Rise of Agentic Cloud Architecture
Lilly Gracia
 
Staying Human in a Machine- Accelerated World
Catalin Jora
 
Kit-Works Team Study_20250627_한달만에만든사내서비스키링(양다윗).pdf
Wonjun Hwang
 
Digital Circuits, important subject in CS
contactparinay1
 
UPDF - AI PDF Editor & Converter Key Features
DealFuel
 
Future-Proof or Fall Behind? 10 Tech Trends You Can’t Afford to Ignore in 2025
DIGITALCONFEX
 
Transforming Utility Networks: Large-scale Data Migrations with FME
Safe Software
 
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
The 2025 InfraRed Report - Redpoint Ventures
Razin Mustafiz
 
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
Agentforce World Tour Toronto '25 - Supercharge MuleSoft Development with Mod...
Alexandra N. Martinez
 
Ericsson LTE presentation SEMINAR 2010.ppt
npat3
 
The Project Compass - GDG on Campus MSIT
dscmsitkol
 
NLJUG Speaker academy 2025 - first session
Bert Jan Schrijver
 
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
LOOPS in C Programming Language - Technology
RishabhDwivedi43
 
Automating Feature Enrichment and Station Creation in Natural Gas Utility Net...
Safe Software
 
Ad

Pipeline as code using Jenkins -Ministry of Testing

  • 1. Pipeline as Code using Jenkins Introduction to Jenkins Pipeline in the QE workflow Anisha Narang Swapnil Jadhav Principal Software Quality Engineer | Red Hat QE Lead | Red Hat
  • 2. Agenda: ● Introduction to Jenkins pipelines ● Pipeline Concepts and Syntax ● Making pipelines part of your codebase. ● Demo ● QnA
  • 3. Challenges with Test Automation & CI/CDs ● Frequent releases demand robust regression suite ● Difficulties in managing complexities in Freestyle jobs ● Integration with Dev team’s deployment pipelines ● Migration of QA Jenkins VM ● In-ability to stop/pause jenkins job for user input.
  • 4. What is Jenkins Pipeline? In Jenkins, a pipeline is a collection of events or jobs which are interlinked with one another in a sequence. It is a combination of plugins that support the integration and implementation of continuous delivery pipelines using Jenkins.
  • 5. Why Jenkins Pipeline ● Jenkins file could be stored in SCM ● Single source of pipeline helps multiple users to contribute ● Audit Trail ● Pause/Start Pipeline for user’s inputs ● Easy to accommodate Complex Pipelines using loop, forks ● Easy job restoration during Jenkins Migration ● Resilient for unplanned restarts
  • 6. Pipeline Concepts Pipeline as Code via the Pipeline specific DSL syntax. Jenkinsfile Definition of Jenkins pipeline in a text file. ● Pipeline ○ A Pipeline is a user-defined model of a CD pipeline; a Pipeline’s code defines your entire build process. ● Node ○ A node is a machine which is part of the Jenkins environment and is capable of executing a Pipeline. ● Stage ○ A stage block defines a conceptually distinct subset of tasks performed through the entire Pipeline (e.g. "Build", "Test" and "Deploy" stages) ● Step ○ A single task. Fundamentally, a step tells Jenkins what to do at a particular point in time (or "step" in the process)
  • 7. Pipeline Syntax ● Declarative ● Scripted A Jenkinsfile can be written using two types of syntax:
  • 10. Demo ● Getting started with Pipelines ○ Using the Web UI to write Pipeline ○ Configuring Selenium Java repo ○ Publish TestNG reports ● Configuring your jenkins job for API tests with Jenkinsfile ○ Parameterize the job ○ Add stages ○ Publish reports ○ Trigger emails.
  • 11. References: - Getting started with Jenkins Pipeline -> https://www.jenkins.io/doc/book/pipeline/ Demo references: - Selenium java repo -> https://github.com/the-test-trove/Selenium-testNg-Maven - Configuring Jenkins job using Maven -> https://github.com/the-test-trove/Selenium- testNg-Maven/blob/main/jenkins_config/Jenkinsfile - API tests using lcc -> https://github.com/the-test-trove/api-tests-lcc - Jenkinsfile -> https://github.com/the-test-trove/api-tests- lcc/blob/master/jenkins_config/Jenkinsfile