hudson.plugins.git.util
Class BuildData
java.lang.Object
hudson.plugins.git.util.BuildData
- All Implemented Interfaces:
- hudson.model.Action, hudson.model.ModelObject, Serializable, Cloneable
@ExportedBean(defaultVisibility=999)
public class BuildData
- extends Object
- implements hudson.model.Action, Serializable, Cloneable
Captures the Git related information for a build.
This object is added to Actionable.getActions() and
remember the Git related information of that build.
- See Also:
- Serialized Form
buildsByBranchName
public Map<String,Build> buildsByBranchName
- Map of branch name -> build (Branch name to last built SHA1).
This map contains all the branches we've built in the past (including the build that this
BuildData
is attached to)
lastBuild
public Build lastBuild
- The last build that we did (among the values in
buildsByBranchName.)
BuildData
public BuildData()
getDisplayName
public String getDisplayName()
- Specified by:
getDisplayName in interface hudson.model.Action- Specified by:
getDisplayName in interface hudson.model.ModelObject
getIconFileName
public String getIconFileName()
- Specified by:
getIconFileName in interface hudson.model.Action
getUrlName
public String getUrlName()
- Specified by:
getUrlName in interface hudson.model.Action
readResolve
public Object readResolve()
hasBeenBuilt
public boolean hasBeenBuilt(org.spearce.jgit.lib.ObjectId sha1)
- Return true if the history shows this SHA1 has been built.
False otherwise.
- Parameters:
sha1 -
- Returns:
saveBuild
public void saveBuild(Build build)
getLastBuildOfBranch
public Build getLastBuildOfBranch(String branch)
getLastBuiltRevision
@Exported
public Revision getLastBuiltRevision()
getBuildsByBranchName
@Exported
public Map<String,Build> getBuildsByBranchName()
clone
public BuildData clone()
- Overrides:
clone in class Object
getApi
public hudson.model.Api getApi()
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2004-2011 Hudson. All Rights Reserved.