Hi, I have this in my pipeline
publishHTML target: [
allowMissing: true,
alwaysLinkToLastBuild: false,
keepAll: true,
reportDir: 'out/python3-cov',
reportFiles: '*/index.html',
reportName: 'Python 3 Coverage'
]
And I don't have old reports in builds. Each build has it own report built.
So, or I don't understand what you are asking for, or you misunderstood the
behaviour?
Can you details more what you mean with duplications?
On Wednesday, 1 April 2020 18:32:12 UTC+1, Filip Kosik wrote:
>
> Hi,
>
> I am trying to *publish HTML reports for each build*. I tried plugin
> HtmlPublisher
> (1.22) <https://plugins.jenkins.io/htmlpublisher/> but when it publishes
> my reports on their build page (using keepAll=true), it creates copies of
> reports from all previous builds in each build directory. So, each Jenkins
> build includes many copies of old reports and they are bigger and bigger.
> If I publish my reports on the project page (using keepAll=false), old
> reports are preserved in their project directory (in my file system) but
> only the last report is accessible from Jenkins. Is there any way how to
> have reports *on their build pages without creation of their duplicates*?
> Maybe, there is some parameter that I'm still missing.
>
>
> My pipeline includes the following HtmlPublisher use:
>
>
> publishHTML (target: [
> allowMissing: false,
> alwaysLinkToLastBuild: false,
> keepAll: true,
> reportDir: "./htmlReports",
> reportFiles: reportFileNames, //generic variable
> reportName: "Results"
> ])
>
>
> Thank you
>
--
You received this message because you are subscribed to the Google Groups
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/e18c985b-3e6d-43f2-a327-d8949c012da4%40googlegroups.com.