public class MatrixConfiguration extends hudson.model.Project<MatrixConfiguration,MatrixRun> implements hudson.model.SCMedItem, hudson.model.Queue.NonBlockingTask
MatrixProject
.Modifier and Type | Class and Description |
---|---|
static class |
MatrixConfiguration.ParentBuildAction |
hudson.model.AbstractProject.AbstractProjectDescriptor, hudson.model.AbstractProject.BecauseOfBuildInProgress, hudson.model.AbstractProject.BecauseOfDownstreamBuildInProgress, hudson.model.AbstractProject.BecauseOfUpstreamBuildInProgress, hudson.model.AbstractProject.LabelValidator
jenkins.triggers.SCMTriggerItem.SCMTriggerItems
Modifier and Type | Field and Description |
---|---|
static boolean |
useShortWorkspaceName
On Cygwin, path names cannot be longer than 256 chars.
|
ABORT, blockBuildWhenDownstreamBuilding, blockBuildWhenUpstreamBuilding, BUILD_NOW_TEXT, builds, disabled, transientActions, triggers
Constructor and Description |
---|
MatrixConfiguration(MatrixProject parent,
Combination c) |
Modifier and Type | Method and Description |
---|---|
MatrixConfiguration |
asProject() |
int |
assignBuildNumber() |
protected void |
buildDependencyGraph(hudson.model.DependencyGraph graph) |
hudson.model.Label |
getAssignedLabel() |
protected Class<MatrixRun> |
getBuildClass() |
jenkins.model.BuildDiscarder |
getBuildDiscarder() |
List<hudson.tasks.Builder> |
getBuilders() |
hudson.util.DescribableList<hudson.tasks.Builder,hudson.model.Descriptor<hudson.tasks.Builder>> |
getBuildersList() |
Map<hudson.model.Descriptor<hudson.tasks.BuildWrapper>,hudson.tasks.BuildWrapper> |
getBuildWrappers() |
hudson.util.DescribableList<hudson.tasks.BuildWrapper,hudson.model.Descriptor<hudson.tasks.BuildWrapper>> |
getBuildWrappersList() |
Combination |
getCombination()
Get the actual combination of the axes values for this
MatrixConfiguration |
String |
getDisplayName() |
hudson.EnvVars |
getEnvironment(hudson.model.Node node,
hudson.model.TaskListener listener) |
hudson.model.JDK |
getJDK() |
int |
getNextBuildNumber()
Build numbers are always synchronized with the parent.
|
MatrixProject |
getParent() |
String |
getPronoun() |
hudson.tasks.Publisher |
getPublisher(hudson.model.Descriptor<hudson.tasks.Publisher> descriptor) |
Map<hudson.model.Descriptor<hudson.tasks.Publisher>,hudson.tasks.Publisher> |
getPublishers() |
hudson.util.DescribableList<hudson.tasks.Publisher,hudson.model.Descriptor<hudson.tasks.Publisher>> |
getPublishersList() |
int |
getQuietPeriod()
Since
MatrixConfiguration is always invoked from MatrixRun
once and just once, there's no point in having a quiet period. |
hudson.scm.SCM |
getScm() |
int |
getScmCheckoutRetryCount()
Inherit the value from the parent.
|
jenkins.scm.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() |
boolean |
isConfigurable() |
protected MatrixRun |
newBuild() |
void |
onLoad(hudson.model.ItemGroup<? extends hudson.model.Item> parent,
String name) |
boolean |
scheduleBuild(List<? extends hudson.model.Action> actions,
hudson.model.Cause c)
Starts the build with the actions that are passed in.
|
boolean |
scheduleBuild(hudson.model.ParametersAction parameters)
Deprecated.
Use
scheduleBuild(ParametersAction, Cause) . Since 1.283 |
boolean |
scheduleBuild(hudson.model.ParametersAction parameters,
hudson.model.Cause c)
Deprecated.
Use
scheduleBuild(List, Cause) . Since 1.480 |
void |
setBuildDiscarder(jenkins.model.BuildDiscarder logRotator)
Deprecated.
Value is controlled by
MatrixProject . |
void |
setConcurrentBuild(boolean b) |
void |
setJDK(hudson.model.JDK jdk)
Deprecated.
Not supported.
|
protected void |
updateTransientActions() |
addPublisher, asItem, createTransientActions, getResourceActivities, getSCMs, getSCMTrigger, inferMavenInstallation, isFingerprintConfigured, removePublisher, scheduleBuild2, submit
_getRuns, addProperty, addToList, addTrigger, blockBuildWhenDownstreamBuilding, blockBuildWhenUpstreamBuilding, buildDescribable, buildDescribable, checkAbortPermission, checkout, createExecutable, createHistoryWidget, disable, doBuild, doBuild, doBuildWithParameters, doBuildWithParameters, doCancelQueue, doCheckRetryCount, doConfigSubmit, doDisable, doDoWipeOutWorkspace, doEnable, doPolling, doRssChangelog, doWs, enable, findNearest, findNearest, getActions, getAssignedLabelString, getAuthToken, getBuild, getBuildByNumber, getBuildingDownstream, getBuildingUpstream, getBuildNowText, getBuildTriggerUpstreamProjects, getCauseOfBlockage, getCustomWorkspace, getDefaultAuthentication, getDelay, getDownstreamProjects, getFirstBuild, getHasCustomQuietPeriod, getIconColor, getLastBuild, getLastBuiltOn, getLazyBuildMixIn, getModuleRoot, getModuleRoots, getNearestBuild, getNearestOldBuild, getOwnerTask, getProminentActions, getQueueItem, getRelationship, getRelevantLabels, getResourceList, getRootProject, getSameNodeConstraint, getSomeBuildWithWorkspace, getSomeWorkspace, getSubTasks, getTransitiveDownstreamProjects, getTransitiveUpstreamProjects, getTrigger, getTriggers, getUpstreamProjects, getWhyBlocked, getWorkspace, getWorkspaceResource, hasAbortPermission, hasCustomScmCheckoutRetryCount, hasParticipant, isBuildable, isBuildBlocked, isDisabled, isInQueue, isParameterized, loadBuild, makeDisabled, makeSearchIndex, onCreatedFromScratch, performDelete, poll, pollSCMChanges, removeFromList, removeRun, removeTrigger, resolveForCLI, save, scheduleBuild, scheduleBuild, scheduleBuild, scheduleBuild, scheduleBuild, scheduleBuild2, scheduleBuild2, scheduleBuild2, scheduleBuild2, schedulePolling, setAssignedLabel, setAssignedNode, setBlockBuildWhenDownstreamBuilding, setBlockBuildWhenUpstreamBuilding, setCustomWorkspace, setQuietPeriod, setScm, setScmCheckoutStrategy, supportsMakeDisabled, triggers
delete, doBuildStatus, doChildrenContextMenu, doDescription, doDoRename, doRssAll, doRssFailed, getACL, getAllJobs, getAllProperties, getBuildDir, getBuildForCLI, getBuildHealth, getBuildHealthReports, getBuilds, getBuilds, getBuildsAsMap, getBuildsByTimestamp, getBuildStatusIconClassName, getBuildStatusUrl, getBuildTimeGraph, getCharacteristicEnvVars, getDynamic, getEstimatedDuration, getEstimatedDurationCandidates, getLastBuildsOverThreshold, getLastCompletedBuild, getLastFailedBuild, getLastStableBuild, getLastSuccessfulBuild, getLastUnstableBuild, getLastUnsuccessfulBuild, getLogRotator, getNewBuilds, getOverrides, getPermalinks, getProperties, getProperty, getProperty, getTimeline, getWidgets, isBuilding, isHoldOffBuildUntilSave, isKeepDependencies, isLogUpdated, isNameEditable, logRotate, onCopiedFrom, removeProperty, removeProperty, renameTo, saveNextBuildNumber, setLogRotator, supportsLogRotator, updateNextBuildNumber
checkPermission, delete, doConfigDotXml, doDoDelete, doReload, doSetName, doSubmitDescription, getAbsoluteUrl, getApi, getConfigFile, getDescription, getDescriptorByName, getDisplayNameOrNull, getFullDisplayName, getFullName, getName, getRelativeDisplayNameFrom, getRelativeNameFrom, getRelativeNameFrom, getRelativeNameFromGroup, getRootDir, getSearchName, getSearchUrl, getShortUrl, getUrl, hasPermission, setDescription, setDisplayName, setDisplayNameOrNull, toString, updateByXml, updateByXml
addAction, doContextMenu, getAction, getAction, getActions, getAllActions, replaceAction
getSearch, getSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
scheduleBuild, scheduleBuild, scheduleBuild, scheduleBuild
delete, getAbsoluteUrl, getAllJobs, getFullDisplayName, getFullName, getName, getRelativeNameFrom, getRelativeNameFrom, getShortUrl, getUrl, onCopiedFrom, onCreatedFromScratch, save
getSearchIndex, getSearchName, getSearchUrl
checkPermission, getACL, hasPermission
checkAbortPermission, getCauseOfBlockage, getDefaultAuthentication, getFullDisplayName, getName, getSubTasks, getUrl, getWhyBlocked, hasAbortPermission, isBuildBlocked
public static boolean useShortWorkspaceName
public MatrixConfiguration(MatrixProject parent, Combination c)
public void onLoad(hudson.model.ItemGroup<? extends hudson.model.Item> parent, String name) throws IOException
onLoad
in interface hudson.model.Item
onLoad
in class hudson.model.Project<MatrixConfiguration,MatrixRun>
IOException
public hudson.EnvVars getEnvironment(hudson.model.Node node, hudson.model.TaskListener listener) throws IOException, InterruptedException
getEnvironment
in class hudson.model.AbstractProject<MatrixConfiguration,MatrixRun>
IOException
InterruptedException
protected void updateTransientActions()
updateTransientActions
in class hudson.model.AbstractProject<MatrixConfiguration,MatrixRun>
public boolean isConcurrentBuild()
isConcurrentBuild
in interface hudson.model.Queue.Task
isConcurrentBuild
in class hudson.model.AbstractProject<MatrixConfiguration,MatrixRun>
public void setConcurrentBuild(boolean b) throws IOException
setConcurrentBuild
in class hudson.model.AbstractProject<MatrixConfiguration,MatrixRun>
IOException
public int getNextBuildNumber()
Computing this is bit tricky. Several considerations:
getNextBuildNumber
in interface jenkins.triggers.SCMTriggerItem
getNextBuildNumber
in class hudson.model.Job<MatrixConfiguration,MatrixRun>
public int assignBuildNumber() throws IOException
assignBuildNumber
in class hudson.model.Job<MatrixConfiguration,MatrixRun>
IOException
public String getDisplayName()
getDisplayName
in interface hudson.model.Item
getDisplayName
in interface hudson.model.ModelObject
getDisplayName
in interface hudson.model.ResourceActivity
getDisplayName
in class hudson.model.AbstractItem
public MatrixProject getParent()
getParent
in interface hudson.model.Item
getParent
in class hudson.model.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 interface jenkins.model.ParameterizedJobMixIn.ParameterizedJob
getQuietPeriod
in interface jenkins.triggers.SCMTriggerItem
getQuietPeriod
in class hudson.model.AbstractProject<MatrixConfiguration,MatrixRun>
public int getScmCheckoutRetryCount()
getScmCheckoutRetryCount
in class hudson.model.AbstractProject<MatrixConfiguration,MatrixRun>
public jenkins.scm.SCMCheckoutStrategy getScmCheckoutStrategy()
getScmCheckoutStrategy
in class hudson.model.AbstractProject<MatrixConfiguration,MatrixRun>
public boolean isConfigurable()
isConfigurable
in class hudson.model.AbstractProject<MatrixConfiguration,MatrixRun>
protected Class<MatrixRun> getBuildClass()
getBuildClass
in class hudson.model.AbstractProject<MatrixConfiguration,MatrixRun>
protected MatrixRun newBuild() throws IOException
newBuild
in class hudson.model.AbstractProject<MatrixConfiguration,MatrixRun>
IOException
protected void buildDependencyGraph(hudson.model.DependencyGraph graph)
buildDependencyGraph
in class hudson.model.Project<MatrixConfiguration,MatrixRun>
public MatrixConfiguration asProject()
asProject
in interface hudson.model.BuildableItemWithBuildWrappers
asProject
in interface hudson.model.SCMedItem
asProject
in class hudson.model.Project<MatrixConfiguration,MatrixRun>
public hudson.model.Label getAssignedLabel()
getAssignedLabel
in interface hudson.model.queue.SubTask
getAssignedLabel
in class hudson.model.AbstractProject<MatrixConfiguration,MatrixRun>
public String getPronoun()
getPronoun
in class hudson.model.AbstractProject<MatrixConfiguration,MatrixRun>
public hudson.model.JDK getJDK()
getJDK
in class hudson.model.AbstractProject<MatrixConfiguration,MatrixRun>
public List<hudson.tasks.Builder> getBuilders()
getBuilders
in class hudson.model.Project<MatrixConfiguration,MatrixRun>
public Map<hudson.model.Descriptor<hudson.tasks.Publisher>,hudson.tasks.Publisher> getPublishers()
getPublishers
in class hudson.model.Project<MatrixConfiguration,MatrixRun>
public hudson.util.DescribableList<hudson.tasks.Builder,hudson.model.Descriptor<hudson.tasks.Builder>> getBuildersList()
getBuildersList
in class hudson.model.Project<MatrixConfiguration,MatrixRun>
public hudson.util.DescribableList<hudson.tasks.Publisher,hudson.model.Descriptor<hudson.tasks.Publisher>> getPublishersList()
getPublishersList
in class hudson.model.Project<MatrixConfiguration,MatrixRun>
public Map<hudson.model.Descriptor<hudson.tasks.BuildWrapper>,hudson.tasks.BuildWrapper> getBuildWrappers()
getBuildWrappers
in class hudson.model.Project<MatrixConfiguration,MatrixRun>
public hudson.util.DescribableList<hudson.tasks.BuildWrapper,hudson.model.Descriptor<hudson.tasks.BuildWrapper>> getBuildWrappersList()
getBuildWrappersList
in interface hudson.model.BuildableItemWithBuildWrappers
getBuildWrappersList
in class hudson.model.Project<MatrixConfiguration,MatrixRun>
public hudson.tasks.Publisher getPublisher(hudson.model.Descriptor<hudson.tasks.Publisher> descriptor)
getPublisher
in class hudson.model.Project<MatrixConfiguration,MatrixRun>
public jenkins.model.BuildDiscarder getBuildDiscarder()
getBuildDiscarder
in class hudson.model.Job<MatrixConfiguration,MatrixRun>
public hudson.scm.SCM getScm()
getScm
in interface hudson.model.SCMedItem
getScm
in class hudson.model.AbstractProject<MatrixConfiguration,MatrixRun>
public void setJDK(hudson.model.JDK jdk) throws IOException
MatrixConfiguration
because
it's controlled by MatrixProject
.setJDK
in class hudson.model.AbstractProject<MatrixConfiguration,MatrixRun>
IOException
public void setBuildDiscarder(jenkins.model.BuildDiscarder logRotator)
MatrixProject
.setBuildDiscarder
in class hudson.model.Job<MatrixConfiguration,MatrixRun>
public boolean isActiveConfiguration()
MatrixProject.getActiveConfigurations()
public boolean scheduleBuild(hudson.model.ParametersAction parameters)
scheduleBuild(ParametersAction, Cause)
. Since 1.283public boolean scheduleBuild(hudson.model.ParametersAction parameters, hudson.model.Cause c)
scheduleBuild(List, Cause)
. Since 1.480parameters
- Can be null.public boolean scheduleBuild(List<? extends hudson.model.Action> actions, hudson.model.Cause c)
actions
- Can be null.c
- Reason for starting the buildCopyright © 2016. All rights reserved.