Setup Jenkins
  1. Download https://jenkins.io/

How to Create a Project and Publish Report in Jenkins?

  1. By default it will run on port 8080, if you want to change the port then run command >>java –jar Jenkins.war –httpPort=8081
  2. After running Jenkins server, open the browser and navigate to URL: http://localhost:8081/
  3. You should see the screen like below:

How to Create a Project and Publish Report in Jenkins?

Creating a project in Jenkins
  1. Click on “New Item” from the left menuHow to Create a Project and Publish Report in Jenkins?
  2. Enter “Item name” into the item name field
  3. Check “Freestyle project” checkbox and click on the OK buttonHow to Create a Project and Publish Report in Jenkins?
  4. Enter a description into the description field
  5. In Build section select “Invoke top-level Maven targets” How to Create a Project and Publish Report in Jenkins?
  6. Enter the goal “clean install” like below screen:How to Create a Project and Publish Report in Jenkins?
  7. If your pom.xml file is not in Jenkins project root directory then mention pom.xml file relative path
  8. Click on Apply and Save button
  9. After creating a job you should see that Jenkins job will be created and folder generated under Jenkins folder in user directory like below:How to Create a Project and Publish Report in Jenkins?
  10. Put your JMeter project under this directory
Publishing Report
  1. 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
  1. Select the created project and click on configure menu from left panel

You may also like: How to Execute a JMeter Test Using Maven?

 

Leave a comment

Your email address will not be published. Required fields are marked *