Re: Setup Declarative Script currentBuild.ChangeSets

2017-07-26 Thread Joe Cavanaugh
I've used a modified version of the scripts found on 
https://support.cloudbees.com/hc/en-us/articles/217630098-How-to-access-Changelogs-in-a-Pipeline-Job-
 
to great success by putting them as @NonCPS on the bottom of my declarative 
pipeline. Just recently I have moved the script to a global library that is 
now referenced in each corresponding job.

On Wednesday, July 26, 2017 at 10:56:01 AM UTC-5, Joaquin Henriquez wrote:
>
> Hi Guys
>
>  
>
> Does somebody has an example on the currentBuild.ChangeSets?
>
> Jenkins 2.60.2
>
>  
>
> On the Jelly emailext template (seems on the forEach changeSet.logs there 
> is nothing).
>
> Do I need to put anything on the declarative script before? On my file it 
> is under post,success
>
>  
>
> 
>
> 
>
>   
>
>   
>
> 
>
> 
>
>   Changes
>
> 
>
> 
>
>   
>
>   ${cs.msgAnnotated}
>
>   by ${cs.author}
>
>   
>
> 
>
>   
>
> ${spc}${p.editType.name}
>
> 
>
>   ${p.path}
>
> 
>
>   
>
> 
>
>   
>
> 
>
> 
>
>   No Changes
>
> 
>
> 
>
>   
>
> 
>
>  
>
>  
>
> 
> *Changes * 
>
>  
>
> No Changes
>
>  
>
>  
>

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/53a9a81a-e8d3-4fc9-825e-80ad2f083db6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Setup Declarative Script currentBuild.ChangeSets

2017-07-26 Thread Slide
getChangeSets (build.changeSets) returns a list of
hudson.scm.ChangeLogSet, which
means you need an inner loop to iterate over each entry of each
ChangeLogSet.

On Wed, Jul 26, 2017 at 8:55 AM Joaquin Henriquez <
joaquin.henriq...@countercept.com> wrote:

> Hi Guys
>
>
>
> Does somebody has an example on the currentBuild.ChangeSets?
>
> Jenkins 2.60.2
>
>
>
> On the Jelly emailext template (seems on the forEach changeSet.logs there
> is nothing).
>
> Do I need to put anything on the declarative script before? On my file it
> is under post,success
>
>
>
> 
>
> 
>
>   
>
>   
>
> 
>
> 
>
>   Changes
>
> 
>
> 
>
>   
>
>   ${cs.msgAnnotated}
>
>   by ${cs.author}
>
>   
>
> 
>
>   
>
> ${spc}${p.editType.name}
>
> 
>
>   ${p.path}
>
> 
>
>   
>
> 
>
>   
>
> 
>
> 
>
>   No Changes
>
> 
>
> 
>
>   
>
> 
>
>
>
>
>
> 
> *Changes *
>
>
>
> No Changes
>
>
>
>
>
> --
> 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 jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/67680dbae74547958c3aac472cca59a7%40BSKEXCH2013HYPV.mwrinfosecurity.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVe4W0woQQL4Kt4RSFAwTnJjZSO%3DHoOjxJ9GW%3DV7uaNRuA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Setup Declarative Script currentBuild.ChangeSets

2017-07-26 Thread Joaquin Henriquez
Hi Guys

Does somebody has an example on the currentBuild.ChangeSets?
Jenkins 2.60.2

On the Jelly emailext template (seems on the forEach changeSet.logs there is 
nothing).
Do I need to put anything on the declarative script before? On my file it is 
under post,success



  
  


  Changes


  
  ${cs.msgAnnotated}
  by ${cs.author}
  

  
${spc}${p.editType.name}

  ${p.path}

  

  


  No Changes


  




Changes


No Changes


-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/67680dbae74547958c3aac472cca59a7%40BSKEXCH2013HYPV.mwrinfosecurity.com.
For more options, visit https://groups.google.com/d/optout.