public class FreeStyleBranchProject extends hudson.model.Project<FreeStyleBranchProject,FreeStyleBranchBuild> implements hudson.model.TopLevelItem
Project class that imitates normal FreeStyleProjects, but for use as a sub-project of the FreeStyleMultiBranchProject type.| Modifier and Type | Class and Description |
|---|---|
static class |
FreeStyleBranchProject.DescriptorImpl
This project type has to be a
TopLevelItem in order to be shown
in the multi-branch project's branch list, but TopLevelItems are
also shown in the new job list. |
hudson.model.AbstractProject.AbstractProjectDescriptor, hudson.model.AbstractProject.BecauseOfBuildInProgress, hudson.model.AbstractProject.BecauseOfDownstreamBuildInProgress, hudson.model.AbstractProject.BecauseOfUpstreamBuildInProgressABORT, blockBuildWhenDownstreamBuilding, blockBuildWhenUpstreamBuilding, BUILD_NOW_TEXT, builds, disabled, transientActions, triggers| Constructor and Description |
|---|
FreeStyleBranchProject(hudson.model.ItemGroup parent,
String name)
Constructor that specifies the
ItemGroup for this project and the
project name. |
| Modifier and Type | Method and Description |
|---|---|
void |
doConfigDotXml(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
Disables configuring of this project type via Stapler.
|
void |
doConfigSubmit(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
Disables configuring of this project type via Stapler.
|
void |
doDoRename(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
Disables renaming of this project type.
|
protected Class<FreeStyleBranchBuild> |
getBuildClass() |
FreeStyleBranchProject.DescriptorImpl |
getDescriptor() |
hudson.util.CopyOnWriteList<hudson.model.JobProperty<? super FreeStyleBranchProject>> |
getPropertiesList()
Exposes the job properties so they can be manipulated from the parent.
|
hudson.util.DescribableList<hudson.triggers.Trigger<?>,hudson.triggers.TriggerDescriptor> |
getTriggersList()
Exposes the triggers so they can be set from the parent.
|
boolean |
isDisabled()
First checks if the parent project is disabled, then this sub-project's
setting.
|
boolean |
isTemplate()
Returns whether or not this is the template.
|
void |
onLoad(hudson.model.ItemGroup<? extends hudson.model.Item> parent,
String name) |
static void |
registerXStream()
Gives this class an alias for configuration XML.
|
void |
setIsTemplate(boolean isTemplate)
Sets whether or not this is the template
|
addPublisher, asProject, buildDependencyGraph, createTransientActions, getBuilders, getBuildersList, getBuildWrappers, getBuildWrappersList, getPublisher, getPublishers, getPublishersList, getResourceActivities, inferMavenInstallation, isFingerprintConfigured, removePublisher, submit_getRuns, addProperty, addToList, addTrigger, blockBuildWhenDownstreamBuilding, blockBuildWhenUpstreamBuilding, buildDescribable, buildDescribable, checkAbortPermission, checkout, createExecutable, createHistoryWidget, disable, doBuild, doBuild, doBuildWithParameters, doBuildWithParameters, doCancelQueue, doCheckRetryCount, doChildrenContextMenu, doDisable, doDoDelete, doDoWipeOutWorkspace, doEnable, doPolling, doRssChangelog, doWs, enable, findNearest, findNearest, getActions, getAssignedLabel, getAssignedLabelString, getAuthToken, getBuild, getBuildByNumber, getBuildingDownstream, getBuildingUpstream, getBuildNowText, getBuildTriggerUpstreamProjects, getCauseOfBlockage, getCustomWorkspace, getDefaultAuthentication, getDelay, getDownstreamProjects, getEnvironment, getFirstBuild, getHasCustomQuietPeriod, getIconColor, getJDK, getLastBuild, getLastBuiltOn, getModuleRoot, getModuleRoots, getNearestBuild, getNearestOldBuild, getOwnerTask, getProminentActions, getPronoun, getQueueItem, getQuietPeriod, getRelationship, getRelevantLabels, getResourceList, getRootProject, getSameNodeConstraint, getScm, getScmCheckoutRetryCount, getScmCheckoutStrategy, getSomeBuildWithWorkspace, getSomeWorkspace, getSubTasks, getTransitiveDownstreamProjects, getTransitiveUpstreamProjects, getTrigger, getTriggers, getUpstreamProjects, getWhyBlocked, getWorkspace, getWorkspaceResource, hasAbortPermission, hasCustomScmCheckoutRetryCount, hasParticipant, isBuildable, isBuildBlocked, isConcurrentBuild, isConfigurable, isInQueue, isParameterized, loadBuild, makeDisabled, makeSearchIndex, newBuild, onCreatedFromScratch, performDelete, poll, pollSCMChanges, removeFromList, removeRun, removeTrigger, renameTo, resolveForCLI, save, scheduleBuild, scheduleBuild, scheduleBuild, scheduleBuild, scheduleBuild, scheduleBuild2, scheduleBuild2, scheduleBuild2, scheduleBuild2, schedulePolling, setAssignedLabel, setAssignedNode, setBlockBuildWhenDownstreamBuilding, setBlockBuildWhenUpstreamBuilding, setConcurrentBuild, setCustomWorkspace, setJDK, setQuietPeriod, setScm, setScmCheckoutStrategy, supportsMakeDisabled, triggers, updateTransientActionsassignBuildNumber, delete, doBuildStatus, doDescription, doRssAll, doRssFailed, getACL, getAllJobs, getAllProperties, getBuildDir, getBuildDiscarder, getBuildForCLI, getBuildHealth, getBuildHealthReports, getBuilds, getBuilds, getBuildsAsMap, getBuildsByTimestamp, getBuildStatusUrl, getBuildTimeGraph, getCharacteristicEnvVars, getDynamic, getEstimatedDuration, getEstimatedDurationCandidates, getLastBuildsOverThreshold, getLastCompletedBuild, getLastFailedBuild, getLastStableBuild, getLastSuccessfulBuild, getLastUnstableBuild, getLastUnsuccessfulBuild, getLogRotator, getNewBuilds, getNextBuildNumber, getOverrides, getPermalinks, getProperties, getProperty, getProperty, getTimeline, getWidgets, isBuilding, isHoldOffBuildUntilSave, isKeepDependencies, isLogUpdated, isNameEditable, logRotate, onCopiedFrom, removeProperty, removeProperty, saveNextBuildNumber, setBuildDiscarder, setLogRotator, supportsLogRotator, updateNextBuildNumbercheckPermission, delete, doSetName, doSubmitDescription, getAbsoluteUrl, getApi, getConfigFile, getDescription, getDescriptorByName, getDisplayName, getDisplayNameOrNull, getFullDisplayName, getFullName, getName, getParent, getRelativeDisplayNameFrom, getRelativeNameFrom, getRelativeNameFrom, getRelativeNameFromGroup, getRootDir, getSearchName, getSearchUrl, getShortUrl, getUrl, hasPermission, setDescription, setDisplayName, setDisplayNameOrNull, toString, updateByXml, updateByXmladdAction, doContextMenu, getAction, getAction, getActionsgetSearch, getSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendErrorclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdelete, getAbsoluteUrl, getAllJobs, getDisplayName, getFullDisplayName, getFullName, getName, getParent, getRelativeNameFrom, getRelativeNameFrom, getShortUrl, getUrl, onCopiedFrom, onCreatedFromScratch, savegetSearchIndex, getSearchName, getSearchUrlcheckPermission, getACL, hasPermissionscheduleBuild, scheduleBuild, scheduleBuild, scheduleBuildcheckAbortPermission, getCauseOfBlockage, getDefaultAuthentication, getFullDisplayName, getName, getSubTasks, getUrl, getWhyBlocked, hasAbortPermission, isBuildBlocked, isConcurrentBuildpublic FreeStyleBranchProject(hudson.model.ItemGroup parent,
String name)
ItemGroup for this project and the
project name.parent - - the project's parent ItemGroupname - - the project's namepublic void onLoad(hudson.model.ItemGroup<? extends hudson.model.Item> parent,
String name)
throws IOException
onLoad in interface hudson.model.ItemonLoad in class hudson.model.Project<FreeStyleBranchProject,FreeStyleBranchBuild>IOExceptionpublic boolean isTemplate()
public void setIsTemplate(boolean isTemplate)
throws IOException
isTemplate - - true/falseIOException - - if problem savingpublic boolean isDisabled()
isDisabled in class hudson.model.AbstractProject<FreeStyleBranchProject,FreeStyleBranchBuild>protected Class<FreeStyleBranchBuild> getBuildClass()
getBuildClass in class hudson.model.AbstractProject<FreeStyleBranchProject,FreeStyleBranchBuild>public FreeStyleBranchProject.DescriptorImpl getDescriptor()
getDescriptor in interface hudson.model.Describable<hudson.model.TopLevelItem>getDescriptor in interface hudson.model.TopLevelItem@WithBridgeMethods(value=java.util.List.class) public hudson.util.DescribableList<hudson.triggers.Trigger<?>,hudson.triggers.TriggerDescriptor> getTriggersList()
public hudson.util.CopyOnWriteList<hudson.model.JobProperty<? super FreeStyleBranchProject>> getPropertiesList()
public void doDoRename(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
doDoRename in class hudson.model.Job<FreeStyleBranchProject,FreeStyleBranchBuild>public void doConfigSubmit(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
doConfigSubmit in class hudson.model.AbstractProject<FreeStyleBranchProject,FreeStyleBranchBuild>@WebMethod(name="config.xml")
public void doConfigDotXml(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
throws IOException
doConfigDotXml in class hudson.model.AbstractItemIOException@Initializer(before=PLUGINS_STARTED) public static void registerXStream()
Copyright © 2004-2014. All Rights Reserved.