|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthudson.model.AbstractModelObject
hudson.model.Actionable
hudson.model.AbstractItem
hudson.model.Job<P,R>
hudson.model.AbstractProject<P,B>
hudson.model.Project<MatrixConfiguration,MatrixRun>
hudson.matrix.MatrixConfiguration
public class MatrixConfiguration
One configuration of MatrixProject
.
Nested Class Summary | |
---|---|
static class |
MatrixConfiguration.ParentBuildAction
|
Nested classes/interfaces inherited from class hudson.model.AbstractProject |
---|
AbstractProject.AbstractProjectDescriptor, AbstractProject.BecauseOfBuildInProgress, AbstractProject.BecauseOfDownstreamBuildInProgress, AbstractProject.BecauseOfUpstreamBuildInProgress |
Nested classes/interfaces inherited from interface hudson.ExtensionPoint |
---|
ExtensionPoint.LegacyInstancesAreScopedToHudson |
Nested classes/interfaces inherited from interface jenkins.model.ModelObjectWithContextMenu |
---|
ModelObjectWithContextMenu.ContextMenu, ModelObjectWithContextMenu.MenuItem |
Field Summary | |
---|---|
static boolean |
useShortWorkspaceName
On Cygwin, path names cannot be longer than 256 chars. |
Fields inherited from class hudson.model.AbstractProject |
---|
ABORT, blockBuildWhenDownstreamBuilding, blockBuildWhenUpstreamBuilding, BUILD_NOW_TEXT, builds, disabled, transientActions, triggers |
Fields inherited from class hudson.model.Job |
---|
HISTORY_ADAPTER, nextBuildNumber, properties |
Fields inherited from class hudson.model.AbstractItem |
---|
description, displayName, name, PRONOUN |
Fields inherited from interface hudson.model.Item |
---|
BUILD, CANCEL, CONFIGURE, CREATE, DELETE, DISCOVER, EXTENDED_READ, PERMISSIONS, READ, WIPEOUT, WORKSPACE |
Fields inherited from interface hudson.model.Saveable |
---|
NOOP |
Constructor Summary | |
---|---|
MatrixConfiguration(MatrixProject parent,
Combination c)
|
Method Summary | |
---|---|
MatrixConfiguration |
asProject()
SCMedItem needs to be an instance of
AbstractProject . |
int |
assignBuildNumber()
Allocates a new buildCommand number. |
protected void |
buildDependencyGraph(DependencyGraph graph)
Builds the dependency graph. |
Label |
getAssignedLabel()
If this project is configured to be always built on this node, return that Node . |
protected Class<MatrixRun> |
getBuildClass()
Determines Class<R>. |
BuildDiscarder |
getBuildDiscarder()
Returns the configured build discarder for this job, or null if none. |
List<Builder> |
getBuilders()
|
DescribableList<Builder,Descriptor<Builder>> |
getBuildersList()
|
Map<Descriptor<BuildWrapper>,BuildWrapper> |
getBuildWrappers()
|
DescribableList<BuildWrapper,Descriptor<BuildWrapper>> |
getBuildWrappersList()
BuildWrapper s associated with this AbstractProject . |
Combination |
getCombination()
Get the actual combination of the axes values for this MatrixConfiguration |
String |
getDisplayName()
Gets the human readable short name of this item. |
EnvVars |
getEnvironment(Node node,
TaskListener listener)
Creates an environment variable override for launching processes for this project. |
JDK |
getJDK()
Gets the JDK that this project is configured with, or null. |
int |
getNextBuildNumber()
Build numbers are always synchronized with the parent. |
MatrixProject |
getParent()
This bridge method is to maintain binary compatibility with Item.getParent() . |
String |
getPronoun()
Get the term used in the UI to represent this kind of AbstractProject . |
Publisher |
getPublisher(Descriptor<Publisher> descriptor)
|
Map<Descriptor<Publisher>,Publisher> |
getPublishers()
|
DescribableList<Publisher,Descriptor<Publisher>> |
getPublishersList()
Returns the live list of all Publisher s configured for this project. |
int |
getQuietPeriod()
Since MatrixConfiguration is always invoked from MatrixRun
once and just once, there's no point in having a quiet period. |
SCM |
getScm()
Gets the SCM for this item. |
int |
getScmCheckoutRetryCount()
Inherit the value from the parent. |
SCMCheckoutStrategy |
getScmCheckoutStrategy()
Inherit the value from the parent. |
boolean |
isActiveConfiguration()
Returns true if this configuration is a configuration currently in use today (as opposed to the ones that are there only to keep the past record.) |
boolean |
isConcurrentBuild()
Does this project perform concurrent builds? |
boolean |
isConfigurable()
Used in sidepanel.jelly to decide whether to display the config/delete/build links. |
protected MatrixRun |
newBuild()
Creates a new build of this project for immediate execution. |
void |
onLoad(ItemGroup<? extends Item> parent,
String name)
Called right after when a Item is loaded from disk. |
boolean |
scheduleBuild(List<? extends Action> actions,
Cause c)
Starts the build with the actions that are passed in. |
boolean |
scheduleBuild(ParametersAction parameters)
Deprecated. Use scheduleBuild(ParametersAction, Cause) . Since 1.283 |
boolean |
scheduleBuild(ParametersAction parameters,
Cause c)
Deprecated. Use scheduleBuild(List extends Action>, Cause) . Since 1.480 |
void |
setBuildDiscarder(BuildDiscarder logRotator)
Deprecated. Value is controlled by MatrixProject . |
void |
setConcurrentBuild(boolean b)
|
void |
setJDK(JDK jdk)
Deprecated. Not supported. |
protected void |
updateTransientActions()
effectively deprecated. |
Methods inherited from class hudson.model.Project |
---|
addPublisher, createTransientActions, getResourceActivities, inferMavenInstallation, isFingerprintConfigured, removePublisher, submit |
Methods inherited from class hudson.model.Actionable |
---|
addAction, doContextMenu, getAction, getAction, getActions |
Methods inherited from class hudson.model.AbstractModelObject |
---|
getSearch, getSearchIndex, 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.model.SCMedItem |
---|
poll, pollSCMChanges |
Methods inherited from interface hudson.model.BuildableItem |
---|
scheduleBuild, scheduleBuild, scheduleBuild, scheduleBuild |
Methods inherited from interface hudson.model.Item |
---|
delete, getAbsoluteUrl, getAllJobs, getFullDisplayName, getFullName, getName, getRelativeNameFrom, getRelativeNameFrom, getShortUrl, getUrl, onCopiedFrom, onCreatedFromScratch, save |
Methods inherited from interface hudson.model.PersistenceRoot |
---|
getRootDir |
Methods inherited from interface hudson.search.SearchableModelObject |
---|
getSearch |
Methods inherited from interface hudson.search.SearchItem |
---|
getSearchIndex, getSearchName, getSearchUrl |
Methods inherited from interface hudson.security.AccessControlled |
---|
checkPermission, getACL, hasPermission |
Methods inherited from interface hudson.model.Queue.Task |
---|
checkAbortPermission, getCauseOfBlockage, getFullDisplayName, getName, getSubTasks, getUrl, getWhyBlocked, hasAbortPermission, isBuildBlocked |
Methods inherited from interface hudson.model.queue.SubTask |
---|
createExecutable, getEstimatedDuration, getLastBuiltOn, getOwnerTask, getSameNodeConstraint |
Methods inherited from interface hudson.model.ResourceActivity |
---|
getResourceList |
Field Detail |
---|
public static boolean useShortWorkspaceName
Constructor Detail |
---|
public MatrixConfiguration(MatrixProject parent, Combination c)
Method Detail |
---|
public void onLoad(ItemGroup<? extends Item> parent, String name) throws IOException
AbstractItem
Item
is loaded from disk.
This is an opporunity to do a post load processing.
onLoad
in interface Item
onLoad
in class Project<MatrixConfiguration,MatrixRun>
name
- Name of the directory (not a path --- just the name portion) from
which the configuration was loaded. This usually becomes the
name
of this item.
IOException
public EnvVars getEnvironment(Node node, TaskListener listener) throws IOException, InterruptedException
Job
This is for process launching outside the build execution (such as polling, tagging, deployment, etc.) that happens in a context of a specific job.
getEnvironment
in class AbstractProject<MatrixConfiguration,MatrixRun>
node
- Node to eventually run a process on. The implementation must cope with this parameter being null
(in which case none of the node specific properties would be reflected in the resulting override.)
IOException
InterruptedException
protected void updateTransientActions()
AbstractProject
Override AbstractProject.createTransientActions()
instead.
updateTransientActions
in class AbstractProject<MatrixConfiguration,MatrixRun>
public boolean isConcurrentBuild()
AbstractProject
isConcurrentBuild
in interface Queue.Task
isConcurrentBuild
in class AbstractProject<MatrixConfiguration,MatrixRun>
public void setConcurrentBuild(boolean b) throws IOException
setConcurrentBuild
in class AbstractProject<MatrixConfiguration,MatrixRun>
IOException
public int getNextBuildNumber()
Computing this is bit tricky. Several considerations:
getNextBuildNumber
in class Job<MatrixConfiguration,MatrixRun>
public int assignBuildNumber() throws IOException
Job
assignBuildNumber
in class Job<MatrixConfiguration,MatrixRun>
IOException
public String getDisplayName()
Item
This method should try to return a short concise human readable string that describes this item. The string need not be unique.
The returned string should not include the display names
of ancestor items
.
getDisplayName
in interface Item
getDisplayName
in interface ModelObject
getDisplayName
in interface ResourceActivity
getDisplayName
in class AbstractItem
public MatrixProject getParent()
AbstractItem
Item.getParent()
.
getParent
in interface Item
getParent
in class AbstractItem
public Combination getCombination()
MatrixConfiguration
public int getQuietPeriod()
MatrixConfiguration
is always invoked from MatrixRun
once and just once, there's no point in having a quiet period.
getQuietPeriod
in class AbstractProject<MatrixConfiguration,MatrixRun>
public int getScmCheckoutRetryCount()
getScmCheckoutRetryCount
in class AbstractProject<MatrixConfiguration,MatrixRun>
public SCMCheckoutStrategy getScmCheckoutStrategy()
getScmCheckoutStrategy
in class AbstractProject<MatrixConfiguration,MatrixRun>
public boolean isConfigurable()
AbstractProject
isConfigurable
in class AbstractProject<MatrixConfiguration,MatrixRun>
protected Class<MatrixRun> getBuildClass()
AbstractProject
getBuildClass
in class AbstractProject<MatrixConfiguration,MatrixRun>
protected MatrixRun newBuild() throws IOException
AbstractProject
newBuild
in class AbstractProject<MatrixConfiguration,MatrixRun>
IOException
protected void buildDependencyGraph(DependencyGraph graph)
AbstractProject
buildDependencyGraph
in class Project<MatrixConfiguration,MatrixRun>
DependencyGraph
public MatrixConfiguration asProject()
SCMedItem
SCMedItem
needs to be an instance of
AbstractProject
.
This method must be always implemented as (AbstractProject)this
, but
defining this method emphasizes the fact that this cast must be doable.
asProject
in interface BuildableItemWithBuildWrappers
asProject
in interface SCMedItem
asProject
in class Project<MatrixConfiguration,MatrixRun>
public Label getAssignedLabel()
AbstractProject
Node
. Otherwise null.
getAssignedLabel
in interface SubTask
getAssignedLabel
in class AbstractProject<MatrixConfiguration,MatrixRun>
public String getPronoun()
AbstractProject
AbstractProject
.
Must start with a capital letter.
getPronoun
in class AbstractProject<MatrixConfiguration,MatrixRun>
public JDK getJDK()
AbstractProject
getJDK
in class AbstractProject<MatrixConfiguration,MatrixRun>
public List<Builder> getBuilders()
getBuilders
in class Project<MatrixConfiguration,MatrixRun>
public Map<Descriptor<Publisher>,Publisher> getPublishers()
getPublishers
in class Project<MatrixConfiguration,MatrixRun>
public DescribableList<Builder,Descriptor<Builder>> getBuildersList()
getBuildersList
in class Project<MatrixConfiguration,MatrixRun>
public DescribableList<Publisher,Descriptor<Publisher>> getPublishersList()
AbstractProject
Publisher
s configured for this project.
This method couldn't be called getPublishers() because existing methods in sub-classes return different inconsistent types.
getPublishersList
in class Project<MatrixConfiguration,MatrixRun>
public Map<Descriptor<BuildWrapper>,BuildWrapper> getBuildWrappers()
getBuildWrappers
in class Project<MatrixConfiguration,MatrixRun>
public DescribableList<BuildWrapper,Descriptor<BuildWrapper>> getBuildWrappersList()
BuildableItemWithBuildWrappers
BuildWrapper
s associated with this AbstractProject
.
getBuildWrappersList
in interface BuildableItemWithBuildWrappers
getBuildWrappersList
in class Project<MatrixConfiguration,MatrixRun>
public Publisher getPublisher(Descriptor<Publisher> descriptor)
getPublisher
in class Project<MatrixConfiguration,MatrixRun>
public BuildDiscarder getBuildDiscarder()
Job
getBuildDiscarder
in class Job<MatrixConfiguration,MatrixRun>
public SCM getScm()
SCMedItem
SCM
for this item.
getScm
in interface SCMedItem
getScm
in class AbstractProject<MatrixConfiguration,MatrixRun>
public void setJDK(JDK jdk) throws IOException
MatrixConfiguration
because
it's controlled by MatrixProject
.
setJDK
in class AbstractProject<MatrixConfiguration,MatrixRun>
IOException
public void setBuildDiscarder(BuildDiscarder logRotator)
MatrixProject
.
setBuildDiscarder
in class Job<MatrixConfiguration,MatrixRun>
public boolean isActiveConfiguration()
MatrixProject.getActiveConfigurations()
public boolean scheduleBuild(ParametersAction parameters)
scheduleBuild(ParametersAction, Cause)
. Since 1.283
public boolean scheduleBuild(ParametersAction parameters, Cause c)
scheduleBuild(List extends Action>, Cause)
. Since 1.480
parameters
- Can be null.public boolean scheduleBuild(List<? extends Action> actions, Cause c)
actions
- Can be null.cause
- Reason for starting the build
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |