Re: Jenkins HTML publishing on build level without copies

2020-04-02 Thread Filip Kosik
Awesome, that is what I was looking for. Thank you. On Wednesday, April 1, 2020 at 5:51:40 PM UTC-6, Richard Bywater wrote: > > Yes there is - use "includes" parameter which is an Ant compatible pattern > that specifies what files in the report directory to archive. It defaults > to archiving

Re: Jenkins HTML publishing on build level without copies

2020-04-01 Thread Richard Bywater
Yes there is - use "includes" parameter which is an Ant compatible pattern that specifies what files in the report directory to archive. It defaults to archiving all files in the given report directory. Richard. On Thu, 2 Apr 2020 at 08:41, Filip Kosik wrote: > Thanks Gianluca for your

Re: Jenkins HTML publishing on build level without copies

2020-04-01 Thread Filip Kosik
Thanks Gianluca for your explanation. This is exactly my problem. So, there is no way *how I can publish only specific files without archiving all files in directory*? The reason for the build number in my filenames is generating all HTML files to the shared directory (it is not inside build

Re: Jenkins HTML publishing on build level without copies

2020-04-01 Thread Gianluca
Hi, I think you misunderstood the meaning of reportDir: "/${reportDir}", The publishHTML publishes the directory ... not the file. The reportFiles is the "index" that is loaded as beginning but it's the reportDir with whole is content that is published by the plugin. So, you can't have a

Re: Jenkins HTML publishing on build level without copies

2020-04-01 Thread Filip Kosik
Hi Gianluca, thank you for your answer. Here is an example of my problem: When I run pipeline code: def fileName = "index_${reportBuildNo}.html"; … // HTML is generated here publishHTML (target: [ allowMissing: false, alwaysLinkToLastBuild: false, keepAll: true,

Re: Jenkins HTML publishing on build level without copies

2020-04-01 Thread Gianluca
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

Jenkins HTML publishing on build level without copies

2020-04-01 Thread Filip Kosik
Hi, I am trying to *publish HTML reports for each build*. I tried plugin HtmlPublisher (1.22) 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.