|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectau.com.centrumsystems.hudson.plugin.buildpipeline.PipelineBuild
public class PipelineBuild
Constructor Summary | |
---|---|
PipelineBuild()
Default constructor |
|
PipelineBuild(hudson.model.AbstractBuild<?,?> build)
Convenience method to create PipelineBuild from a build. |
|
PipelineBuild(hudson.model.AbstractBuild<?,?> build,
hudson.model.AbstractProject<?,?> project,
hudson.model.AbstractBuild<?,?> previousBuild)
Creates a new PipelineBuild with currentBuild, project and upstreamBuild set. |
|
PipelineBuild(hudson.model.FreeStyleProject project)
|
Method Summary | |
---|---|
protected long |
calculatePercentage(long duration,
long estimatedDuration)
Calculates percentage of the current duration to the estimated duration. |
String |
getBuildDescription()
Returns the current build description. |
String |
getBuildDuration()
Returns the current build duration. |
Map<String,String> |
getBuildParameters()
|
long |
getBuildProgress()
Returns the estimated percentage complete of the current build. |
String |
getBuildResultURL()
Build a URL of the currentBuild |
hudson.model.AbstractBuild<?,?> |
getCurrentBuild()
|
String |
getCurrentBuildNumber()
Returns the current build number. |
String |
getCurrentBuildResult()
Determines the result of the current build. |
List<PipelineBuild> |
getDownstreamPipeline()
Constructs a List of downstream PipelineBuild objects that make up the current pipeline. |
String |
getFormattedStartDate()
|
String |
getFormattedStartTime()
|
String |
getPipelineVersion()
Return pipeline version which is simply the first build's number |
hudson.model.AbstractProject<?,?> |
getProject()
Returns the project name. |
String |
getProjectHealth()
|
String |
getProjectURL()
Builds a URL of the current project |
Date |
getStartTime()
Start time of build |
hudson.model.AbstractBuild<?,?> |
getUpstreamBuild()
|
String |
getUpstreamBuildResult()
Determines the result of the upstream build. |
PipelineBuild |
getUpstreamPipelineBuild()
Returns the upstream PipelineBuild object from the current PipelineBuild object. |
boolean |
hasBuildPermission()
Checks whether the user has Build permission for the current project. |
boolean |
isManualTrigger()
Determine if the project is triggered manually, regardless of the state of its upstream builds |
boolean |
isProjectDisabled()
|
boolean |
isReadyToBeManuallyBuilt()
|
boolean |
isRerunnable()
|
void |
setCurrentBuild(hudson.model.AbstractBuild<?,?> currentBuild)
|
void |
setProject(hudson.model.AbstractProject<?,?> currentProject)
|
void |
setUpstreamBuild(hudson.model.AbstractBuild<?,?> upstreamBuild)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PipelineBuild()
public PipelineBuild(hudson.model.AbstractBuild<?,?> build, hudson.model.AbstractProject<?,?> project, hudson.model.AbstractBuild<?,?> previousBuild)
build
- - current buildproject
- - current projectpreviousBuild
- - upstream buildpublic PipelineBuild(hudson.model.AbstractBuild<?,?> build)
PipelineBuild
from a build.
build
- The object to be wrapped.public PipelineBuild(hudson.model.FreeStyleProject project)
project
- projectMethod Detail |
---|
public hudson.model.AbstractBuild<?,?> getCurrentBuild()
public void setCurrentBuild(hudson.model.AbstractBuild<?,?> currentBuild)
public hudson.model.AbstractBuild<?,?> getUpstreamBuild()
public void setUpstreamBuild(hudson.model.AbstractBuild<?,?> upstreamBuild)
public void setProject(hudson.model.AbstractProject<?,?> currentProject)
public hudson.model.AbstractProject<?,?> getProject()
public String getCurrentBuildNumber()
public List<PipelineBuild> getDownstreamPipeline()
public String getBuildResultURL()
public String getProjectURL()
public String getCurrentBuildResult()
getBuildResult(AbstractBuild)
public String getUpstreamBuildResult()
getBuildResult(AbstractBuild)
public PipelineBuild getUpstreamPipelineBuild()
public String getBuildDuration()
public String toString()
toString
in class Object
public String getBuildDescription()
public long getBuildProgress()
protected long calculatePercentage(long duration, long estimatedDuration)
duration
- - Current running time in millisecondsestimatedDuration
- - Estimated running time in milliseconds
public String getPipelineVersion()
public boolean hasBuildPermission()
Item
public boolean isReadyToBeManuallyBuilt()
public boolean isRerunnable()
public boolean isManualTrigger()
public Date getStartTime()
public String getFormattedStartTime()
public String getFormattedStartDate()
public Map<String,String> getBuildParameters()
public boolean isProjectDisabled()
public String getProjectHealth()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |