Fndbug email template - build.changeSet is null

18 views
Skip to first unread message

Jenkins User

unread,
Jun 7, 2016, 5:07:55 PM6/7/16
to Jenkins Users
I have recently upgraded jenkins to latest version 1.6. Change set section is not displaying as build.changeSet is null even though Polling logs say that changes found.

Is there any setting that I have missed while setting up findbugs for my project?

<!-- CHANGE SET -->
      <div class="content">
        <j:set var="changeSet" value="${build.changeSet}" />
        <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>

Slide

unread,
Jun 7, 2016, 5:09:17 PM6/7/16
to Jenkins Users
Have you tried using the template debugging available on the left side when you go to a job? It allows you to specify the template to use and you can change it and see what the changes do.

--
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-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/7f539965-b398-414a-a759-f1cabee02249%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jenkins User

unread,
Jun 7, 2016, 5:21:38 PM6/7/16
to Jenkins Users
By template debugging do you mean the "Email Template Testing" feature? I can give template name there and choose a build to generate an email against that build. I have tried that option as well. But I feel there is some setting missing while setting up the project which is returning changeSets as null.

Also, I have "Find Bugs warnings info" section which says an error "Find Bugs Publisher did not get invoked due to an error. For more infomation, click here". When I click the link for more details, I see console logs and no error in that. Even though the build is Success. I see below warnings. Code and warnings in console log are below

<j:set var="fb" value="${it.getAction('hudson.plugins.findbugs.FindBugsResultAction')}" />
<div class="content">
          <h1>Find Bugs warnings info</h1>
 <table width="100%">
 <tr>
<th>Total</th>
<th>Fixed</th>
<th>New</th>
<th >Report</th>
 </tr>
 <tr>
  <td class="center">${fb.result.numberOfWarnings}</td>
  <td class="center">${fb.result.numberOfFixedWarnings}</td>
  <td class="center">${fb.result.numberOfNewWarnings}</td>
  <td class="center"><a href="${rooturl}${build.url}/findbugsResult">View Report</a></td>
 </tr>
</table>
</div>

[WARNINGS] Skipping publisher since build result is FAILURE
[ANALYSIS-COLLECTOR] Computing warning deltas based on reference build #39
Email was triggered for: Failure - Any
Sending email for trigger: Failure - Any
Sending email to: testaccount
Finished: FAILURE
Reply all
Reply to author
Forward
0 new messages