Re: Add Publisher Maven artifacts to mail template

2019-04-21 Thread Harsh Shah
Collection generatedArtifacts = currentBuild.rawBuild.getAction(org.jenkinsci.plugins.pipeline.maven.publishers.MavenReport.class).getGeneratedArtifacts(); for (org.jenkinsci.plugins.pipeline.maven.MavenArtifact generatedArtifact:generatedArtifacts) {

Re: Add Publisher Maven artifacts to mail template

2019-04-21 Thread Harsh Shah
Hi, Thanks, this works. -Harsh On Sunday, April 21, 2019 at 9:15:50 AM UTC-7, Cyrille Le Clerc wrote: > > Hello Harsh, > > > This seems to be possible but I have not tried. It should look like: > > Collection > generatedArtifacts = build.getAction(org.jenkinsci.plugins.pipeline.maven. > publis

Re: Add Publisher Maven artifacts to mail template

2019-04-21 Thread Cyrille Le Clerc
Hello Harsh, This seems to be possible but I have not tried. It should look like: Collection generatedArtifacts = build.getAction(org.jenkinsci.plugins.pipeline.maven. publishers.MavenReport.class).getGeneratedArtifacts(); for (MavenArtifact generatedArtifact:generatedArtifacts) { if (gene