com.atlassian.bamboo.builder
Class BuildResultsRenderer

java.lang.Object
  extended by com.atlassian.bamboo.builder.BuildResultsRenderer

public class BuildResultsRenderer
extends java.lang.Object

This class provides common Build Result rendering behaviour.


Constructor Summary
BuildResultsRenderer(java.lang.String buildName, BuildResults buildResults, org.apache.velocity.app.VelocityEngine templateEngine)
           
 
Method Summary
 java.lang.String getBuildUrl()
          Get the bamboo webapp url that will display this build
 java.lang.String getOneLineSummary()
          Pretty printed one line summary of the build.
 java.lang.String getResultsAsHtml()
          Format the build results as HTML - using a velocity template to specify the layout of the html
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BuildResultsRenderer

public BuildResultsRenderer(java.lang.String buildName,
                            BuildResults buildResults,
                            org.apache.velocity.app.VelocityEngine templateEngine)
Method Detail

getOneLineSummary

public java.lang.String getOneLineSummary()
Pretty printed one line summary of the build. This is used in rss feeds, email notifiers, etc.

Returns:
The resulting one liner

getBuildUrl

public java.lang.String getBuildUrl()
Get the bamboo webapp url that will display this build

Returns:
The url for the bamboo action that will display this build

getResultsAsHtml

public java.lang.String getResultsAsHtml()
Format the build results as HTML - using a velocity template to specify the layout of the html

Returns:
The html code


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.