Skip to content

Commit

Permalink
[JENKINS-14240] Changlelog is missing user names
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfgarnet committed Jun 28, 2012
1 parent 2fe5011 commit 685f3c3
Showing 1 changed file with 17 additions and 12 deletions.
29 changes: 17 additions & 12 deletions src/main/java/net/praqma/hudson/Util.java
Expand Up @@ -70,20 +70,25 @@ public static String createChangelog( List<Activity> changes, Baseline bl ) {
buffer.append( "<entry>" );
buffer.append( ( "<blName>" + bl.getShortname() + "</blName>" ) );
for( Activity act : changes ) {
buffer.append( "<activity>" );
buffer.append( ( "<actName>" + act.getShortname() + "</actName>" ) );
buffer.append( ( "<author>" + act.getUser() + "</author>" ) );
List<Version> versions = act.changeset.versions;
String temp = null;
for( Version v : versions ) {
try {
temp = "<file>" + v.getSFile() + " (" + v.getVersion() + ") user: " + v.blame() + "</file>";
} catch( ClearCaseException e ) {
logger.warning( "Could not generate log" );
try {
act.load();
buffer.append( "<activity>" );
buffer.append( ( "<actName>" + act.getShortname() + "</actName>" ) );
buffer.append( ( "<author>" + act.getUser() + "</author>" ) );
List<Version> versions = act.changeset.versions;
String temp = null;
for( Version v : versions ) {
try {
temp = "<file>" + v.getSFile() + " (" + v.getVersion() + ") user: " + v.blame() + "</file>";
} catch( ClearCaseException e ) {
logger.warning( "Could not generate log" );
}
buffer.append( temp );
}
buffer.append( temp );
buffer.append( "</activity>" );
} catch( ClearCaseException e ) {
logger.warning( "Unable to use activity \"" + act.getNormalizedName() + "\": " + e.getMessage() );
}
buffer.append( "</activity>" );
}
buffer.append( "</entry>" );
buffer.append( "</changeset>" );
Expand Down

0 comments on commit 685f3c3

Please sign in to comment.