org.jenkinsci.plugins.ghprb.manager.impl
Class GhprbBaseBuildManager

java.lang.Object
  extended by org.jenkinsci.plugins.ghprb.manager.impl.GhprbBaseBuildManager
All Implemented Interfaces:
GhprbBuildManager
Direct Known Subclasses:
BuildFlowBuildManager, GhprbDefaultBuildManager

public abstract class GhprbBaseBuildManager
extends Object
implements GhprbBuildManager

Author:
mdelapenya (Manuel de la Peña)

Field Summary
protected  hudson.model.AbstractBuild<?,?> build
           
protected static Logger LOGGER
           
 
Constructor Summary
GhprbBaseBuildManager(hudson.model.AbstractBuild<?,?> build)
           
GhprbBaseBuildManager(hudson.model.AbstractBuild<?,?> build, JobConfiguration jobConfiguration)
           
 
Method Summary
 String calculateBuildUrl(String publishedURL)
          Calculate the build URL of a build of default type.
 Iterator<?> downstreamProjects()
          Return a downstream iterator of a build of default type.
protected  String getAggregatedTestResults(hudson.model.AbstractBuild<?,?> build)
           
 JobConfiguration getJobConfiguration()
           
 String getOneLineTestResults()
          Print tests result of a build in one line.
 String getTestResults()
          Return the tests results of a build of default type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOGGER

protected static final Logger LOGGER

build

protected hudson.model.AbstractBuild<?,?> build
Constructor Detail

GhprbBaseBuildManager

public GhprbBaseBuildManager(hudson.model.AbstractBuild<?,?> build)

GhprbBaseBuildManager

public GhprbBaseBuildManager(hudson.model.AbstractBuild<?,?> build,
                             JobConfiguration jobConfiguration)
Method Detail

calculateBuildUrl

public String calculateBuildUrl(String publishedURL)
Calculate the build URL of a build of default type. This will be overriden by specific build types.

Specified by:
calculateBuildUrl in interface GhprbBuildManager
Returns:
the build URL of a build of default type

downstreamProjects

public Iterator<?> downstreamProjects()
Return a downstream iterator of a build of default type. This will be overriden by specific build types. If the receiver of the call has no child projects, it will return an iterator over itself

Specified by:
downstreamProjects in interface GhprbBuildManager
Returns:
the downstream builds as an iterator

getJobConfiguration

public JobConfiguration getJobConfiguration()

getTestResults

public String getTestResults()
Return the tests results of a build of default type. This will be overriden by specific build types.

Specified by:
getTestResults in interface GhprbBuildManager
Returns:
the tests result of a build of default type

getAggregatedTestResults

protected String getAggregatedTestResults(hudson.model.AbstractBuild<?,?> build)

getOneLineTestResults

public String getOneLineTestResults()
Description copied from interface: GhprbBuildManager
Print tests result of a build in one line.

Specified by:
getOneLineTestResults in interface GhprbBuildManager
Returns:
the tests result


Copyright © 2004-2016. All Rights Reserved.