You are on page 1of 6

1.

Create a New Repository in Github

2.Upload sample.html file into your Repository.


Sample.html:

3.Now, Create a New Item in Jenkins

2. Enter the item name and select freestyle project

Click on OK

HtmlUsingJenkins

3.Select Git
4.Now, copy the path of your Repository

5.In Repository URL, paste the Repository path from github which you copied.

In Credentials, Click on Add

In Username ,give your Github UserId and In password give your Github password and click on Add

(Make sure that Github is kept opened ).


6. Select the credential which is added

7.In Branch Specifier change master to main

8.In Post-build Actions, Select Publish Html Reports and click Add Report
9.Click on Apply and Save.

10.Click on Build Now.

Then, you will get HTML Report in your menu.

12. Click on HTML Report and download the zip file.

13. Extract the zip file to see your html file. Then, open the html file.

You might also like