A Parameterized Job in Jenkins allows you to create jobs that take parameters (like strings, numbers, or boolean values) when triggered. This helps you customize the job’s behavior based on the values provided at runtime. It’s useful for jobs where the same task may need to be executed with different configurations.
Use Cases:
- Dynamic Builds – Run the same job with different inputs without modifying the configuration manually.
- Improved Reusability – Use a single Jenkins job for multiple environments, configurations, or test cases.
- Time-Saving Automation – Execute builds, tests, and deployments automatically with varying parameters instead of creating multiple jobs.
- Efficient CI/CD Pipelines – Makes software testing and application deployment more flexible and scalable.
Here are the steps to create a Parameterized Job in Jenkins:
Step 1: Select the Jenkins Job to Add Parameters
Select the Job which you are planning to add parameters:

Step 2: Configure the Jenkins Job
You can Configure the Job with the left Side of the job list which shown below.

Step 3: Enable Parameterized Builds
On the configuration page, you will find a section which is General. In that section, there is an option called This project is parameterized that will be Tick marked already like shown in bellow.

Step 4: Click on the add parameters.

Step 5: Define the Parameter
We can Select the String Parameters and In the Name field, enter the name of the parameters(USER_NAME), and the Default value Select as per your need.

Step 6: Add a Build Step to Print the Parameters
After defining the parameters, scroll down to the Build section and click on Add build step -> Execute shell.
Enter the following shell script to print the parameter values in the console output:
echo "User Name: $USER_NAME"
If you are using multiple parameters, you can print them like this:
echo "User Name: $USER_NAME"
echo "Environment: $ENVIRONMENT"
echo "Build Number: $BUILD_NUMBER"
This step helps verify that the parameter values entered during the build are correctly passed to the Jenkins job.
Step 7: Save the Job Configuration

Step 8: Then you will see the option which is "Build with Parameters"
Enter the desired value for each parameter. Once you have done with filling the required values then click on Build to run the job.

Step 9: Monitor the Job Execution
See the result with clicking the job which are success in the Console output.

Step 10: See the Result in the Console Output tab.
