Working with Jenkins Plugins (original) (raw)

Last Updated : 30 Apr, 2026

Jenkins plugins are essential for enhancing the functionality of the Jenkins CI/CD tool. They serve as the building blocks that allow Jenkins to expand beyond its basic setup, offering over 2,000 community-contributed tools to customize your automation.

Jenkins Plugins Workflow

1. Test Execution Integration

2. Reporting

3. CI/CD Integration

4. Notification and Collaboration

Key Plugins for Test Automation

The following are the key plugins used for Test Automation:

**1. JUnit Plugin

2. TestNG Results Plugin

3. Maven Integration Plugin

4. HTML Publisher Plugin

5. Allure Report Plugin

Plugin Purpose

How to Use Jenkins Plugins

**Publishing Cucumber Reports

**Objective: Generate a readable report from Cucumber's JSON output.

Step 1: Install the Cucumber Reports Plugin

Available Plugins and search for "Cucumber Reports."

Available Plugins and search for "Cucumber Reports."

Step 2: Configure Jenkins Job

Screenshot-2024-11-25-160828

cucumber project run locally

build step to execute your Cucumber project.

build step to execute your Cucumber project.

Copy the project from existing project

Copy the project from existing project

Updates the goal as per our requiremen

Updates the goal as per our requiremen

Step 3: Post-Build Actions

Select Cucumber Reports

Select Cucumber Reports

Step 4: Run the Job

**Output

generated report in the Jenkins dashboard

generated report in the Jenkins dashboard

Integrating jenkins with TestNG

Objective: Visualize TestNG execution results in Jenkins.

Step 1: Install TestNG Results Plugin:

TestNG Results plugin

TestNG Results plugin

Step 2: Configure Job

Configure Job

Configure Job

create a new testng job in jenkins

create a new testng job in jenkins

copy the project using the last project

copy the project using the last project

Use this Repository URL for the Project: Repository

Update the Repository URL

Update the Repository URL

The goals

The goals

Step 3: Post-Build Action

Select Publish TestNG Results

Select Publish TestNG Results

Step 4: Run Job

**Output:

Run Job

Run Job

 testNG results

testNG results

3. Publishing HTML Reports

Objective: Display custom HTML reports generated by automation frameworks.

Step 1: Install HTML Publisher Plugin:

Step 2: Configure Job

Create a new job

Create a new job

Copy the same project

Copy the same project

We used all configuration of the last project only we change the report template with the HTML publisher:

report template with the HTML publisher

report template with the HTML publisher

Specify the report directory and file name

Specify the report directory and file name

Step 3: Run Job

**Output

Access the HTML report

Access the HTML report