Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to define "number of builds" for JUnit test results in Jenkins?

I am learning Jenkins. I just configured it to publish JUnit test results. Now it keeps accumulating all previous results in the plot. Please refer to the attached screen, which contains 20+ builds.

I am wondering whether I can configure it to only display last 10 builds?

Thanks.enter image description here

like image 928
Charlie Yen Avatar asked Nov 10 '22 15:11

Charlie Yen


1 Answers

I just found out two ways to handle this issue by removing old build history.

1) Refer to answers to this thread: How do I clear my Jenkins/Hudson build history?

2) In config page, you can set number of builds & artifacts you want to keep. Please refer to the screen shot attached.

enter image description here

like image 88
Charlie Yen Avatar answered Nov 15 '22 05:11

Charlie Yen