Jenkins 2.x Continuous Integration Cookbook - Third Edition

Get a problem-solution approach enriched with code examples for practical and easy comprehension
Preview in Mapt

Jenkins 2.x Continuous Integration Cookbook - Third Edition

Mitesh Soni, Alan Mark Berg

Get a problem-solution approach enriched with code examples for practical and easy comprehension
Mapt Subscription
FREE
$20.83/m after trial
eBook
$28.00
RRP $39.99
Save 29%
Print + eBook
$49.99
RRP $49.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$28.00
$49.99
$29.99 p/m after trial
RRP $39.99
RRP $49.99
Subscription
eBook
Print + eBook
Start 14 Day Trial

Frequently bought together


Jenkins 2.x Continuous Integration Cookbook - Third Edition Book Cover
Jenkins 2.x Continuous Integration Cookbook - Third Edition
$ 39.99
$ 28.00
Learning Continuous Integration with Jenkins - Second Edition Book Cover
Learning Continuous Integration with Jenkins - Second Edition
$ 39.99
$ 28.00
Buy 2 for $35.00
Save $44.98
Add to Cart

Book Details

ISBN 139781788297943
Paperback438 pages

Book Description

Jenkins 2.x is one of the most popular Continuous Integration servers in the market today. It was designed to maintain, secure, communicate, test, build, and improve the software development process.

This book will begin by guiding you through steps for installing and configuring Jenkins 2.x on AWS and Azure. This is followed by steps that enable you to manage and monitor Jenkins 2.x. You will also explore the ways to enhance the overall security of Jenkins 2.x. You will then explore the steps involved in improving the code quality using SonarQube. Then, you will learn the ways to improve quality, followed by how to run performance and functional tests against a web application and web services.

Finally, you will see what the available plugins are, concluding with best practices to improve quality.

Table of Contents

Chapter 1: Getting Started with Jenkins
Introduction
Installing Jenkins 2 on Windows
Installing Jenkins 2 on CentOS
Installing Jenkins 2 on Azure
Installing Jenkins as a Service in Windows
Installing plugins in Jenkins
Uploading plugins in Jenkins
Configuring proxy in Jenkins
Configuring global settings in Jenkins
Configuring JENKINS_HOME
Understanding JENKINS_HOME directory
Using different ports for Jenkins
Configuring JAVA_HOME in Jenkins
Configuring Git in Jenkins
Configuring ANT_HOME in Jenkins
Configuring MAVEN_HOME in Jenkins
Configuring GRADLE_HOME in Jenkins
Creating a Freestyle job for Ant Project
Creating a Maven Job for Maven Project
Chapter 2: Management and Monitoring of Jenkins
Understanding master/agent architecture
Managing Jenkins build jobs using Eclipse
Backing up and restoring Jenkins
Command-line options in Jenkins using Jenkins CLI
Modifying the Jenkins configuration from the command line
Managing disk usage
Shutdown Jenkins safely
Monitoring Jenkins with JavaMelody
Monitoring a Jenkins Job using a Build Monitor View
Configuring mail notifications
Signaling the need to archive
Chapter 3: Managing Security
Introduction
Improving security with Jenkins configuration
Configuring Authorization - Matrix-based security
Configuring a Project-based Matrix Authorization Strategy
Jenkins and OpenLDAP integration
Jenkins and Active Directory integration
Jenkins and OWASP Zed Attack Proxy integration
Testing for OWASP's top 10 security issues
Finding 500 errors and XSS attacks in Jenkins through fuzzing
Avoiding sign-up bots with JCaptcha
Chapter 4: Improving Code Quality
Introduction
Integrating Jenkins with SonarQube
The updating center in SonarQube
Quality gates, quality profiles, and rules
Verifying HTML, CSS and JavaScript validity using SonarQube
Verifying Java code using SonarQube
Configuring SonarQube as a Windows service
Chapter 5: Building Applications in Jenkins
Introduction
Configuring an Ant project for execution
Configuring a Maven project for execution
Configuring an Android project for execution
Manipulating environmental variables
Running Ant through Groovy in Maven
Failed Jenkins jobs based on JSP syntax errors
Remotely triggering jobs through the Jenkins API
Chapter 6: Continuous Delivery
Introduction
Archiving artifacts
Copying an artifact from another build job
Integrating Jenkins with Artifactory
Deploying a WAR file from Jenkins to Tomcat
Deploying a WAR file from Jenkins to AWS Beanstalk
Deploying a WAR file from Jenkins to Azure App Services
Promoting builds
Chapter 7: Continuous Testing
Getting started with continuous testing
Creating a Selenium test case using Eclipse
Integrating Jenkins and Selenium for functional testing
Jenkins and Cucumber test reports
Creating a load test in Apache JMeter
Executing a load test from Jenkins
Reporting JMeter performance metrics
Testing with FitNesse
Chapter 8: Orchestration
Introduction
Understanding upstream and downstream jobs
Configuring upstream and downstream jobs
Configuring a build pipeline
Creating a pipeline job
Using a sample pipeline for execution
Configuring a pipeline job for end-to-end automation
Getting started with the Blue Ocean dashboard
Chapter 9: Jenkins UI Customization
Introduction
Skinning Jenkins with the simple themes plugin
Skinning and provisioning Jenkins using a WAR overlay
Generating a home page
Creating HTML reports
Efficient use of views
Saving screen space with the Dashboard View plugin
Making noise with HTML5 browsers
An extreme view for reception areas
Chapter 10: Processes that Improve Quality
Culture and collaboration
Fail early or fail faster
Data-driven testing
Learning from history
Considering test automation as a software project
Visualize, visualize, and visualize!
Conventions are good
Test frameworks and commercial choices are increasing
Offsetting work to Jenkins nodes
Starving QA/integration servers
Reading the change log of Jenkins
Avoiding human bottlenecks
Avoiding groupthink
Training and community
Visibly rewarding successful developers
Stability and code maintenance
Resources on quality assurance
And there's always more
Final comments

What You Will Learn

  • Install and Configure Jenkins 2.x on AWS and Azure
  • Explore effective ways to manage and monitor Jenkins 2.x
  • Secure Jenkins 2.x using Matrix-based Security
  • Deploying a WAR file from Jenkins 2.x to Azure App Services and AWS Beanstalk
  • Automate deployment of application on AWS and Azure PaaS
  • Continuous Testing – Unit Test Execution, Functional Testing and Load Testing

Authors

Table of Contents

Chapter 1: Getting Started with Jenkins
Introduction
Installing Jenkins 2 on Windows
Installing Jenkins 2 on CentOS
Installing Jenkins 2 on Azure
Installing Jenkins as a Service in Windows
Installing plugins in Jenkins
Uploading plugins in Jenkins
Configuring proxy in Jenkins
Configuring global settings in Jenkins
Configuring JENKINS_HOME
Understanding JENKINS_HOME directory
Using different ports for Jenkins
Configuring JAVA_HOME in Jenkins
Configuring Git in Jenkins
Configuring ANT_HOME in Jenkins
Configuring MAVEN_HOME in Jenkins
Configuring GRADLE_HOME in Jenkins
Creating a Freestyle job for Ant Project
Creating a Maven Job for Maven Project
Chapter 2: Management and Monitoring of Jenkins
Understanding master/agent architecture
Managing Jenkins build jobs using Eclipse
Backing up and restoring Jenkins
Command-line options in Jenkins using Jenkins CLI
Modifying the Jenkins configuration from the command line
Managing disk usage
Shutdown Jenkins safely
Monitoring Jenkins with JavaMelody
Monitoring a Jenkins Job using a Build Monitor View
Configuring mail notifications
Signaling the need to archive
Chapter 3: Managing Security
Introduction
Improving security with Jenkins configuration
Configuring Authorization - Matrix-based security
Configuring a Project-based Matrix Authorization Strategy
Jenkins and OpenLDAP integration
Jenkins and Active Directory integration
Jenkins and OWASP Zed Attack Proxy integration
Testing for OWASP's top 10 security issues
Finding 500 errors and XSS attacks in Jenkins through fuzzing
Avoiding sign-up bots with JCaptcha
Chapter 4: Improving Code Quality
Introduction
Integrating Jenkins with SonarQube
The updating center in SonarQube
Quality gates, quality profiles, and rules
Verifying HTML, CSS and JavaScript validity using SonarQube
Verifying Java code using SonarQube
Configuring SonarQube as a Windows service
Chapter 5: Building Applications in Jenkins
Introduction
Configuring an Ant project for execution
Configuring a Maven project for execution
Configuring an Android project for execution
Manipulating environmental variables
Running Ant through Groovy in Maven
Failed Jenkins jobs based on JSP syntax errors
Remotely triggering jobs through the Jenkins API
Chapter 6: Continuous Delivery
Introduction
Archiving artifacts
Copying an artifact from another build job
Integrating Jenkins with Artifactory
Deploying a WAR file from Jenkins to Tomcat
Deploying a WAR file from Jenkins to AWS Beanstalk
Deploying a WAR file from Jenkins to Azure App Services
Promoting builds
Chapter 7: Continuous Testing
Getting started with continuous testing
Creating a Selenium test case using Eclipse
Integrating Jenkins and Selenium for functional testing
Jenkins and Cucumber test reports
Creating a load test in Apache JMeter
Executing a load test from Jenkins
Reporting JMeter performance metrics
Testing with FitNesse
Chapter 8: Orchestration
Introduction
Understanding upstream and downstream jobs
Configuring upstream and downstream jobs
Configuring a build pipeline
Creating a pipeline job
Using a sample pipeline for execution
Configuring a pipeline job for end-to-end automation
Getting started with the Blue Ocean dashboard
Chapter 9: Jenkins UI Customization
Introduction
Skinning Jenkins with the simple themes plugin
Skinning and provisioning Jenkins using a WAR overlay
Generating a home page
Creating HTML reports
Efficient use of views
Saving screen space with the Dashboard View plugin
Making noise with HTML5 browsers
An extreme view for reception areas
Chapter 10: Processes that Improve Quality
Culture and collaboration
Fail early or fail faster
Data-driven testing
Learning from history
Considering test automation as a software project
Visualize, visualize, and visualize!
Conventions are good
Test frameworks and commercial choices are increasing
Offsetting work to Jenkins nodes
Starving QA/integration servers
Reading the change log of Jenkins
Avoiding human bottlenecks
Avoiding groupthink
Training and community
Visibly rewarding successful developers
Stability and code maintenance
Resources on quality assurance
And there's always more
Final comments

Book Details

ISBN 139781788297943
Paperback438 pages
Read More

Read More Reviews

Recommended for You

Learning Continuous Integration with Jenkins - Second Edition Book Cover
Learning Continuous Integration with Jenkins - Second Edition
$ 39.99
$ 28.00
DevOps with Kubernetes Book Cover
DevOps with Kubernetes
$ 39.99
$ 28.00
Pentaho 8 Reporting for Java Developers Book Cover
Pentaho 8 Reporting for Java Developers
$ 39.99
$ 28.00
Learning Pentaho Data Integration 8 CE - Third Edition Book Cover
Learning Pentaho Data Integration 8 CE - Third Edition
$ 39.99
$ 28.00
C# 7.1 and .NET Core 2.0 – Modern Cross-Platform Development - Third Edition Book Cover
C# 7.1 and .NET Core 2.0 – Modern Cross-Platform Development - Third Edition
$ 31.99
$ 22.40
TypeScript 2.x for Angular Developers Book Cover
TypeScript 2.x for Angular Developers
$ 35.99
$ 25.20