Skip to content

Commit

Permalink
Fix JENKINS-13192
Browse files Browse the repository at this point in the history
- husdonUser doesn't exist, use author directly
- changeNumber doesn't exist, add check whether the property exist, otherwise show space
- msgAnnotated doesn't exist for it, change to cs

all those parameters need to check in ChangeLogSet or inherited class
  • Loading branch information
larrycai committed Apr 1, 2012
1 parent 0284be4 commit 4c16db3
Showing 1 changed file with 5 additions and 5 deletions.
Expand Up @@ -33,12 +33,12 @@ if(changeSet != null) {
<TABLE width="100%">
<TR><TD class="bg1" colspan="2"><B>CHANGES</B></TD></TR>
<% changeSet.each() { cs ->
hadChanges = true
def aUser = cs.hudsonUser %>
hadChanges = true %>
<TR>
<TD colspan="2" class="bg2">${spc}Revision <B><%= cs.metaClass.hasProperty('commitId') ? cs.commitId : cs.metaClass.hasProperty('revision') ? cs.revision : cs.changeNumber%></B> by
<B><%= aUser != null ? aUser.displayName : it.author.displayName%>: </B>
<B>(${it.msgAnnotated})</B>
<TD colspan="2" class="bg2">${spc}Revision <B><%= cs.metaClass.hasProperty('commitId') ? cs.commitId : cs.metaClass.hasProperty('revision') ? cs.revision :
cs.metaClass.hasProperty('changeNumber') ? cs.changeNumber : "" %></B> by
<B><%= cs.author %>: </B>
<B>(${cs.msgAnnotated})</B>
</TD>
</TR>
<% cs.affectedFiles.each() { p -> %>
Expand Down

0 comments on commit 4c16db3

Please sign in to comment.