return (ReleaseResult) releaseManager.getReleaseResults().get( releaseId );
}
public Map<String, Object> getListener( String releaseId )
{
ContinuumReleaseManagerListener listener =
(ContinuumReleaseManagerListener) releaseManager.getListeners().get( releaseId );
Map<String, Object> map = new HashMap<String, Object>();
if ( listener != null )
{
map.put( ContinuumBuildAgentUtil.KEY_RELEASE_STATE, listener.getState() );
map.put( ContinuumBuildAgentUtil.KEY_USERNAME, listener.getUsername() );
if ( listener.getPhases() != null )
{
map.put( ContinuumBuildAgentUtil.KEY_RELEASE_PHASES, listener.getPhases() );
}
if ( listener.getCompletedPhases() != null )
{
map.put( ContinuumBuildAgentUtil.KEY_COMPLETED_RELEASE_PHASES, listener.getCompletedPhases() );
}
if ( listener.getInProgress() != null )
{
map.put( ContinuumBuildAgentUtil.KEY_RELEASE_IN_PROGRESS, listener.getInProgress() );
}
if ( listener.getError() != null )
{
map.put( ContinuumBuildAgentUtil.KEY_RELEASE_ERROR, listener.getError() );
}
}
return map;
}