Setup Jenkins
- Download https://jenkins.io/
- By default it will run on port 8080, if you want to change the port then run command >>java –jar Jenkins.war –httpPort=8081
- After running Jenkins server, open the browser and navigate to URL: http://localhost:8081/
- You should see the screen like below:
Creating a project in Jenkins
- Click on “New Item” from the left menu
- Enter “Item name” into the item name field
- Check “Freestyle project” checkbox and click on the OK button
- Enter a description into the description field
- In Build section select “Invoke top-level Maven targets”
- Enter the goal “clean install” like below screen:
- If your pom.xml file is not in Jenkins project root directory then mention pom.xml file relative path
- Click on Apply and Save button
- After creating a job you should see that Jenkins job will be created and folder generated under Jenkins folder in user directory like below:
- Put your JMeter project under this directory
Publishing Report
- To publish HTML report first need to install “HTML Publisher plugin”
-
- Go to Jenkins home directory
- Click on “Manage Jenkins” from the left menu
- Click on Manage Plugins
- Select the available tab and search “HTML Publisher plugin”
- Select checkbox and click on “Install without restart” button
- After successful installation follow the below steps
- Select the created project and click on configure menu from left panel
You may also like: How to Execute a JMeter Test Using Maven?
Recent Comments