Re: Add Publisher Maven artifacts to mail template

2020-02-13 Thread RicardF
I finally got it working (should execute it after withMaven {}. My problem is that it shows 3 of four artifacts deployed. (jar, sources, javadoc). Pom is missing, but it gets archived into the build... On Saturday, April 27, 2019 at 1:59:53 AM UTC+2, Harsh Shah wrote: > > Hi, Cyrille > > So

Re: Add Publisher Maven artifacts to mail template

2020-02-13 Thread RicardF
I'm getting a null object when trying to get the deployed artifacts on command: currentBuild.rawBuild.getAction(org.jenkinsci.plugins.pipeline.maven. publishers.MavenReport.class) do you know what am i doing wrong? On Thursday, May 30, 2019 at 11:51:13 PM UTC+2, Cyrille Le Clerc wrote: > > For

Re: Add Publisher Maven artifacts to mail template

2019-05-30 Thread Cyrille Le Clerc
For the record, this FAQ section: https://wiki.jenkins.io/display/JENKINS/Pipeline+Maven+Plugin#PipelineMavenPlugin-HowtouseMavenbuilddataingeneratedemails On Saturday, April 27, 2019 at 1:59:53 AM UTC+2, Harsh Shah wrote: > > Hi, Cyrille > > So this is how I do it. > > > pipeline side invoke

Re: Add Publisher Maven artifacts to mail template

2019-04-26 Thread Harsh Shah
Hi, Cyrille So this is how I do it. pipeline side invoke the method env.DEPLOYEDARTIFACTS = getDeployedArtifacts() @NonCPS def getDeployedArtifacts() { def deployed = '' Collection generatedArtifacts =

Re: Add Publisher Maven artifacts to mail template

2019-04-22 Thread Cyrille Le Clerc
Thanks Harsh, Could you please share with us an example of using maven pipeline details in email generated by the email ext plug-in that I would add to the documentation? Le lun. 22 avr. 2019 à 08:49, Harsh Shah a écrit : > Collection > generatedArtifacts = >

Re: Add Publisher Maven artifacts to mail template

2019-04-22 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-22 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. >

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

Re: Add Publisher Maven artifacts to mail template

2019-04-19 Thread Harsh Shah
The template is a pretty standard template like this https://wiki.jenkins.io/download/attachments/3604514/jenkins-matrix-email-html.template?version=1=1332562186000=v2 I am trying to get maven artifacts urls Build Artifacts ${m.key.displayName}

Re: Add Publisher Maven artifacts to mail template

2019-04-19 Thread Cyrille Le Clerc
do you have examples of integrations of the email ext plugin with other plugins? Is the integration based on environment variables? Cyrille On Friday, April 19, 2019 at 2:15:11 AM UTC+2, Harsh Shah wrote: > > Hi, > We have been using pipeline maven plugin and maven artifact publisher to >

Add Publisher Maven artifacts to mail template

2019-04-18 Thread Harsh Shah
Hi, We have been using pipeline maven plugin and maven artifact publisher to display deployed artifacts by the build. We also use ext-email plugin with a template to provide notifications. How can I get the published maven artifacts from maven artifact publisher in my email description?