Class InheritanceBuild
- java.lang.Object
-
- hudson.model.AbstractModelObject
-
- hudson.model.Actionable
-
- hudson.model.Run<P,R>
-
- hudson.model.AbstractBuild<P,B>
-
- hudson.model.Build<InheritanceProject,InheritanceBuild>
-
- hudson.plugins.project_inheritance.projects.InheritanceBuild
-
- All Implemented Interfaces:
ExtensionPoint
,DescriptorByNameOwner
,ModelObject
,PersistenceRoot
,Queue.Executable
,Saveable
,SearchableModelObject
,SearchItem
,AccessControlled
,Comparable<InheritanceBuild>
,Runnable
,LazyBuildMixIn.LazyLoadingRun<InheritanceProject,InheritanceBuild>
,ModelObjectWithContextMenu
,RunWithSCM<InheritanceProject,InheritanceBuild>
,OnMaster
,org.kohsuke.stapler.StaplerProxy
public class InheritanceBuild extends Build<InheritanceProject,InheritanceBuild>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
InheritanceBuild.HadToConvertErrorException
protected class
InheritanceBuild.InheritanceBuildExecution
-
Nested classes/interfaces inherited from class hudson.model.Build
Build.BuildExecution, Build.RunnerImpl
-
Nested classes/interfaces inherited from class hudson.model.AbstractBuild
AbstractBuild.AbstractBuildExecution, AbstractBuild.AbstractRunner, AbstractBuild.DependencyChange
-
Nested classes/interfaces inherited from class hudson.model.Run
Run.Artifact, Run.ArtifactList, Run.KeepLogBuildBadge, Run.RedirectUp, Run.RunExecution, Run.Runner, Run.RunnerAbortedException, Run.StatusSummarizer, Run.Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Nested classes/interfaces inherited from interface jenkins.model.ModelObjectWithContextMenu
ModelObjectWithContextMenu.ContextMenu, ModelObjectWithContextMenu.ContextMenuVisibility, ModelObjectWithContextMenu.MenuItem
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<String,Long>
projectVersions
-
Fields inherited from class hudson.model.AbstractBuild
buildEnvironments
-
Fields inherited from class hudson.model.Run
ARTIFACTS, charset, DELETE, description, duration, FEED_ADAPTER, FEED_ADAPTER_LATEST, LIST_CUTOFF, nextBuild, number, ORDER_BY_DATE, PERMISSIONS, previousBuild, project, QUEUE_ID_UNKNOWN, result, SKIP_PERMISSION_CHECK, timestamp, TREE_CUTOFF, UPDATE, XSTREAM, XSTREAM2
-
-
Constructor Summary
Constructors Constructor Description InheritanceBuild(InheritanceProject project)
InheritanceBuild(InheritanceProject project, File buildDir)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Long>
getProjectVersions()
File
getRootDir()
String
getTruncatedDescription()
String
getWhyKeepLog()
static FilePath
getWorkspacePathFor(Node n, InheritanceProject project, Map<String,String> values)
void
onRun()
void
run()
This method schedules the execution of this build object.void
save()
-
Methods inherited from class hudson.model.Build
createRunner
-
Methods inherited from class hudson.model.AbstractBuild
addAction, calculateCulprits, createReference, doStop, doStop, dropLinks, due, getAggregatedTestResultAction, getBuildVariableResolver, getBuildVariables, getBuiltOn, getBuiltOnStr, getChangeSet, getChangeSets, getCulpritIds, getCulprits, getDependencyChanges, getDownstreamBuilds, getDownstreamBuilds, getDownstreamRelationship, getEnvironment, getEnvironments, getHudsonVersion, getModuleRoot, getModuleRoots, getNextBuild, getPersistentActions, getPreviousBuild, getProject, getRootBuild, getRunMixIn, getSensitiveBuildVariables, getTestResultAction, getTransitiveUpstreamBuilds, getUpstreamBuilds, getUpstreamRelationship, getUpstreamRelationshipBuild, getUpUrl, getWorkspace, hasChangeSetComputed, setBuiltOnStr, setWorkspace, shouldCalculateCulprits
-
Methods inherited from class hudson.model.Run
_this, canToggleLogKeep, compareTo, delete, deleteArtifacts, doArtifact, doBuildNumber, doBuildStatus, doBuildTimestamp, doConfigSubmit, doConsoleText, doDoDelete, doProgressiveLog, doSubmitDescription, doToggleLogKeep, execute, fromExternalizableId, getAbsoluteUrl, getACL, getApi, getArtifactManager, getArtifacts, getArtifactsDir, getArtifactsUpTo, getBadgeActions, getBuildFingerprints, getBuildsOverThreshold, getBuildStatusIconClassName, getBuildStatusSummary, getBuildStatusUrl, getCause, getCauses, getCharacteristicEnvVars, getCharset, getDescription, getDisplayName, getDuration, getDurationString, getDynamic, getEnvironment, getEnvVars, getEstimatedDuration, getExecutor, getExternalizableId, getFullDisplayName, getHasArtifacts, getIconColor, getId, getLog, getLog, getLogFile, getLogInputStream, getLogReader, getLogText, getNumber, getOneOffExecutor, getParent, getPreviousBuildInProgress, getPreviousBuildsOverThreshold, getPreviousBuiltBuild, getPreviousCompletedBuild, getPreviousFailedBuild, getPreviousNotFailedBuild, getPreviousSuccessfulBuild, getQueueId, getResult, getSearchUrl, getStartTimeInMillis, getTarget, getTime, getTimeInMillis, getTimestamp, getTimestampString, getTimestampString2, getTransientActions, getUrl, hasCustomDisplayName, hasntStartedYet, isBuilding, isInProgress, isKeepLog, isLogUpdated, keepLog, keepLog, makeSearchIndex, onEndBuilding, onLoad, onStartBuilding, pickArtifactManager, reload, run, setDescription, setDisplayName, setQueueId, setResult, submit, toString, updateSymlinks, writeLogTo, writeReplace, writeWholeLogTo
-
Methods inherited from class hudson.model.Actionable
addOrReplaceAction, doContextMenu, getAction, getAction, getActions, getActions, getAllActions, removeAction, removeActions, replaceAction, replaceActions
-
Methods inherited from class hudson.model.AbstractModelObject
getSearch, getSearchIndex, getSearchName, requirePOST, sendError, sendError, sendError, sendError, sendError
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface hudson.security.AccessControlled
checkAnyPermission, checkPermission, hasAnyPermission, hasPermission, hasPermission, hasPermission2
-
Methods inherited from interface hudson.model.DescriptorByNameOwner
getDescriptorByName
-
Methods inherited from interface hudson.model.Queue.Executable
getEstimatedDuration, getParent, toString
-
Methods inherited from interface jenkins.scm.RunWithSCM
hasParticipant
-
-
-
-
Constructor Detail
-
InheritanceBuild
public InheritanceBuild(InheritanceProject project) throws IOException
- Throws:
IOException
-
InheritanceBuild
public InheritanceBuild(InheritanceProject project, File buildDir) throws IOException
- Throws:
IOException
-
-
Method Detail
-
getWhyKeepLog
@CheckForNull public String getWhyKeepLog()
- Overrides:
getWhyKeepLog
in classAbstractBuild<InheritanceProject,InheritanceBuild>
-
getTruncatedDescription
@Nonnull public String getTruncatedDescription()
- Overrides:
getTruncatedDescription
in classRun<InheritanceProject,InheritanceBuild>
-
save
public void save() throws IOException
- Specified by:
save
in interfaceSaveable
- Overrides:
save
in classRun<InheritanceProject,InheritanceBuild>
- Throws:
IOException
-
getRootDir
public File getRootDir()
- Specified by:
getRootDir
in interfacePersistenceRoot
- Overrides:
getRootDir
in classRun<InheritanceProject,InheritanceBuild>
-
getWorkspacePathFor
public static FilePath getWorkspacePathFor(Node n, InheritanceProject project, Map<String,String> values)
-
run
public void run()
This method schedules the execution of this build object.It suppresses the unchecked conversion warning, because the parent class
Build
makes use of theBuild.BuildExecution
class which fakes its way to be compatible with both the deprecated Runner class and the newRun.RunExecution
class.- Specified by:
run
in interfaceQueue.Executable
- Specified by:
run
in interfaceRunnable
- Overrides:
run
in classBuild<InheritanceProject,InheritanceBuild>
-
onRun
public void onRun()
-
-