getChangeSets (build.changeSets) returns a list of hudson.scm.ChangeLogSet<? extends hudson.scm.ChangeLogSet.Entry>, 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 < [email protected]> 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 > > > > <div class="content"> > > <!-- CHANGE SET --> > > <j:set var="changeSet" value="${build.changeSets}" /> > > <j:if test="${changeSet!=null}"> > > <j:set var="hadChanges" value="false" /> > > <a href="${rooturl}${build.url}/changes"> > > <h1>Changes</h1> > > </a> > > <j:forEach var="cs" items="${changeSet.logs}" varStatus="loop"> > > <j:set var="hadChanges" value="true" /> > > <h2>${cs.msgAnnotated}</h2> > > <p>by <em>${cs.author}</em></p> > > <table> > > <j:forEach var="p" items="${cs.affectedFiles}"> > > <tr> > > <td width="10%">${spc}${p.editType.name}</td> > > <td> > > <tt>${p.path}</tt> > > </td> > > </tr> > > </j:forEach> > > </table> > > </j:forEach> > > <j:if test="${!hadChanges}"> > > <p>No Changes</p> > > </j:if> > > <br /> > > </j:if> > > </div> > > > > > > <http://localhost/> > *Changes <http://localhost/>* > > > > 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jenkinsci-users/67680dbae74547958c3aac472cca59a7%40BSKEXCH2013HYPV.mwrinfosecurity.com > <https://groups.google.com/d/msgid/jenkinsci-users/67680dbae74547958c3aac472cca59a7%40BSKEXCH2013HYPV.mwrinfosecurity.com?utm_medium=email&utm_source=footer> > . > 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 [email protected]. 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.
