Refer to this article
https://www.cnblogs.com/autobyme/p/8387407.html
Encounter problems:
ERROR: Directory 'D:\data\jenkins\htmlreport' exists but failed copying to 'C:\Users\PC\.jenkins\jobs\jmeter_test\builds\8\htmlreports\HTML_20Report'. ERROR: This is especially strange since your build otherwise succeeded. Build step 'Publish HTML reports' changed build result to FAILURE
The reason is: when configuring the address of Public HTML reports at the end of this article, pay attention to the same address
Solution: It must be the same as the report address configured in build.xml