Jenkins Continuous Integration Training

Introduction

Jenkins is one open source tool to perform continuous integration. The basic functionality of Jenkins is to execute a predefined list of steps based on a certain trigger.

The trigger might for example be an change in a version control system or a time based trigger, e.g., a build every 20 minutes.

The list of steps can for example include:

  • perform a software build with Apache Maven or Gradle
  • Run a shell script
  • Archive the build result
  • Afterwards start the integration tests

 

Jenkins also monitors the execution of the steps and allows to stop the process if one of the steps fails. Jenkins allows to notify users about the build success or failure.

Jenkins can be started via the command line or can run in a web application server. Under Linux you can also install Jenkins as a system service.

Course Contents

1. Exploring Jenkins

  • Introduction to Jenkins and its features

  • Installation of Jenkins on Windows and CentOS

    • Installing Jenkins on Windows

    • Installation of Jenkins on CentOS

    • Installation of Jenkins as a web application

  • A jump-start tour of the Jenkins dashboard

  • How to change configuration settings in Jenkins

  • What is the deployment pipeline?

2. Installation and Configuration of Code Repository and Build Tools

  • An overview of a build in Jenkins and its requirements

  • Installing Java and configuring environment variables

    • Configure environment variables

  • Installing, configuring, and operating SVN on CentOS and Windows

    • Installing SVN on CentOS

      • Configuring SVN

      • SVN operations

      • Import a directory into SVN

      • Check out from SVN

    • VisualSVN Server on Windows

  • Integrating Eclipse with code repositories

  • Installing and configuring Ant

  • Installing Maven

  • Configuring Ant, Maven, and JDK in Jenkins

  • Installing and configuring Git

  • Creating a new build job in Jenkins with Git

 

3. Integration of Jenkins, SVN, and Build Tools

  • Creating and configuring a build job for a Java application with Ant

    • Dashboard View Plugin

    • Creating and configuring a build job for a Java application

  • Creating and configuring a build job for a Java application with Maven

  • Build execution with test cases

4. Distributed Builds – Master/Slave Mode

  • Understanding the master and slave architecture

    • Creating slave nodes in the UI

  • Choosing a launch method

    • Slave agent via Java Web Start

      • Prerequisites

      • The Jenkins Java Web Start launch page

        • JavaWS via a web browser

        • JavaWS via the command line

      • Headless slave agents via the command line

    • Slave agents on Windows via WMI and DCOM

      • Troubleshooting Windows DCOM and CIFS errors

        • Error – access denied

          • Workaround 1

          • Workaround 2

      • Error – no more data available

        • Workaround

    • Slave agents via SSH tunneling

  • Administering Jenkins slaves

    • The node administration dashboard

    • Preventative monitoring

    • Managing individual slave nodes

  • Labels, groups, and load balancing

    • Attaching a slave to a group by creating a label

    • Attaching a slave to many groups

    • Restricting slave execution to global or tied jobs

    • Jenkins plugins that support distributed builds

5. Creating Views and Jobs in Jenkins

  • The Jenkins user interface

    • The main header

    • The configuration panel

    • The job table

    • RSS feeds

    • The Jenkins build queue and executor status panel

  • Jobs in Jenkins

    • Freestyle projects in Jenkins

      • Project options

        • Defining build parameters

      • Advanced project options

      • Source code management

        • Source control via SVN

        • Advanced SVN options

        • Source control via Git–requires the Git plugin

        • Additional behaviors

      • Build triggers

      • Build steps

      • Post-build actions

    • Maven projects

      • Build triggers

      • Build step

      • Advanced options

      • Post-build steps

    • Monitoring external jobs

    • Multiconfiguration jobs in Jenkins – matrix jobs

      • Configuration matrix

      • Slaves

      • Label expression

      • User-defined axes

  • Creating views

    • Filtering jobs by regular expression

 

6. Managing Views and Jobs in Jenkins

  • Managing Views in Jenkins

    • Altering the default “View”

    • Customizing the basic content of a View

    • Advanced customization of a “Views” content

  • Navigating a job’s project page

    • The Configuration panel

    • The Build History panel

    • The project overview – central panel

  • Job execution

  • The Job Execution Configuration panel

  • The Status panel

  • The Console Output

7. Advanced Automated Testing

  • Quality assurance initiatives and test automation terminology
  • The Software Development Lifecycle
  • Connecting product codes to tests
  • Baking quality into the product
    • Efficient automated test architecture
  • Automated testing in Jenkins
  • Unit tests in Jenkins through MSTest
    • How to set up MSTest agents
    • Running automated tests via MSTest
      • A example MSTest execution
    • Running MSTests and reporting the results in Jenkins
      • Publishing test results in Jenkins
    • Organizing test jobs
  • Distributed testing solutions
    • The Selenium Grid
    • Parallel down-stream jobs

info@bigdatatraining.in

http://www.bigdatatraining.in/contact/

Call – +91 97899 68765 / 044 – 42645495