@ExportedBean(defaultVisibility=999) public class BuildData extends Object implements hudson.model.Action, Serializable, Cloneable
This object is added to Actionable.getActions().
This persists the Git related information of that build.
| Modifier and Type | Field and Description |
|---|---|
Map<String,Build> |
buildsByBranchName
Map of branch name -> build (Branch name to last built SHA1).
|
Build |
lastBuild
The last build that we did (among the values in
buildsByBranchName.) |
Set<String> |
remoteUrls
The URLs that have been referenced.
|
String |
scmName
The name of the SCM as given by the user.
|
| Constructor and Description |
|---|
BuildData() |
BuildData(String scmName) |
BuildData(String scmName,
Collection<UserRemoteConfig> remoteConfigs) |
| Modifier and Type | Method and Description |
|---|---|
void |
addRemoteUrl(String remoteUrl) |
BuildData |
clone() |
hudson.model.Api |
getApi() |
Map<String,Build> |
getBuildsByBranchName() |
String |
getDisplayName()
Returns the build data display name, optionally with SCM name.
|
String |
getIconFileName() |
Build |
getLastBuild(org.eclipse.jgit.lib.ObjectId sha1) |
Build |
getLastBuildOfBranch(String branch) |
hudson.plugins.git.Revision |
getLastBuiltRevision()
Gets revision of the previous build.
|
Set<String> |
getRemoteUrls() |
String |
getScmName() |
String |
getUrlName() |
boolean |
hasBeenBuilt(org.eclipse.jgit.lib.ObjectId sha1)
Return true if the history shows this SHA1 has been built.
|
boolean |
hasBeenReferenced(String remoteUrl) |
Object |
readResolve() |
void |
saveBuild(Build build) |
void |
setScmName(String scmName) |
String |
toString() |
public Map<String,Build> buildsByBranchName
This map contains all the branches we've built in the past (including the build that this BuildData
is attached to)
public Build lastBuild
buildsByBranchName.)public String scmName
public BuildData()
public BuildData(String scmName)
public BuildData(String scmName, Collection<UserRemoteConfig> remoteConfigs)
public String getDisplayName()
getDisplayName in interface hudson.model.ActiongetDisplayName in interface hudson.model.ModelObjectpublic String getIconFileName()
getIconFileName in interface hudson.model.Actionpublic String getUrlName()
getUrlName in interface hudson.model.Actionpublic Object readResolve()
public boolean hasBeenBuilt(org.eclipse.jgit.lib.ObjectId sha1)
sha1 - public Build getLastBuild(org.eclipse.jgit.lib.ObjectId sha1)
public void saveBuild(Build build)
@Exported @CheckForNull public hudson.plugins.git.Revision getLastBuiltRevision()
public void setScmName(String scmName)
@Exported public String getScmName()
public void addRemoteUrl(String remoteUrl)
public boolean hasBeenReferenced(String remoteUrl)
public hudson.model.Api getApi()
Copyright © 2004-2015. All Rights Reserved.