public class FreeStyleMultiBranchProject extends hudson.model.Project<FreeStyleBranchProject,FreeStyleBranchBuild> implements hudson.model.TopLevelItem, hudson.model.ItemGroup<FreeStyleBranchProject>, hudson.model.ViewGroup, jenkins.scm.api.SCMSourceOwner
| Modifier and Type | Class and Description |
|---|---|
static class |
FreeStyleMultiBranchProject.DescriptorImpl
Our project's descriptor.
|
hudson.model.AbstractProject.AbstractProjectDescriptor, hudson.model.AbstractProject.BecauseOfBuildInProgress, hudson.model.AbstractProject.BecauseOfDownstreamBuildInProgress, hudson.model.AbstractProject.BecauseOfUpstreamBuildInProgress| Constructor and Description |
|---|
FreeStyleMultiBranchProject(hudson.model.ItemGroup parent,
String name)
Constructor that specifies the
ItemGroup for this project and the
project name. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canDelete(hudson.model.View view) |
void |
deleteView(hudson.model.View view) |
void |
doConfigSubmit(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp) |
void |
doCreateView(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
Stapler URL binding for creating views for our branch projects.
|
void |
doDoDelete(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
Overrides the
AbstractProject implementation because
the user is not redirected to the parent properly for this project type. |
hudson.util.FormValidation |
doViewExistsCheck(String value)
Stapler URL binding used by the newView page to check for existing
views.
|
FreeStyleBranchProject |
getBranch(String name)
Stapler URL binding for ${rootUrl}/job/${project}/branch/${branchProject}
|
File |
getBranchesDir()
Returns the "branches" directory inside the project directory.
|
protected Class<FreeStyleBranchBuild> |
getBuildClass() |
List<hudson.model.HealthReport> |
getBuildHealthReports()
Get the current health reports for a job.
|
hudson.model.TopLevelItemDescriptor |
getDescriptor() |
hudson.model.BallColor |
getIconColor()
Used as the color of the status ball for the project.
|
FreeStyleBranchProject |
getItem(String name) |
hudson.model.ItemGroup<? extends hudson.model.TopLevelItem> |
getItemGroup() |
Collection<FreeStyleBranchProject> |
getItems() |
FreeStyleBranchBuild |
getLastBuild() |
hudson.model.View |
getPrimaryView() |
File |
getRootDirFor(FreeStyleBranchProject child) |
jenkins.scm.api.SCMSource |
getSCMSource()
Returns the project's only SCMSource.
|
jenkins.scm.api.SCMSource |
getSCMSource(String sourceId) |
jenkins.scm.api.SCMSourceCriteria |
getSCMSourceCriteria(jenkins.scm.api.SCMSource source) |
static List<jenkins.scm.api.SCMSourceDescriptor> |
getSCMSourceDescriptors(boolean onlyUserInstantiable)
Returns a list of SCMSourceDescriptors that we want to use for this
project type.
|
List<jenkins.scm.api.SCMSource> |
getSCMSources() |
String |
getSyncBranchesCron()
Used by Jelly to populate the Sync Branches Schedule field on the
configuration page.
|
FreeStyleBranchProject |
getTemplateProject()
Retrieves the template sub-project.
|
String |
getUrlChildPrefix() |
hudson.model.View |
getView(String name) |
List<hudson.model.Action> |
getViewActions() |
static List<hudson.model.ViewDescriptor> |
getViewDescriptors()
Returns a list of ViewDescriptors that we want to use for this project
type.
|
Collection<hudson.model.View> |
getViews() |
hudson.views.ViewsTabBar |
getViewsTabBar() |
boolean |
isBuildable() |
void |
makeDisabled(boolean b) |
void |
onDeleted(FreeStyleBranchProject item) |
void |
onLoad(hudson.model.ItemGroup<? extends hudson.model.Item> parent,
String name) |
void |
onRenamed(FreeStyleBranchProject item,
String oldName,
String newName) |
void |
onSCMSourceUpdated(jenkins.scm.api.SCMSource source) |
void |
onViewRenamed(hudson.model.View view,
String oldName,
String newName) |
static void |
registerXStream()
Gives this class an alias for configuration XML.
|
protected void |
submit(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp) |
void |
syncBranches(hudson.model.TaskListener listener)
Synchronizes the available sub-projects by checking if the project is
disabled, then calling
_syncBranches(TaskListener) and logging
its exceptions to the listener. |
addPublisher, asProject, buildDependencyGraph, createTransientActions, getBuilders, getBuildersList, getBuildWrappers, getBuildWrappersList, getPublisher, getPublishers, getPublishersList, getResourceActivities, inferMavenInstallation, isFingerprintConfigured, removePublisher_getRuns, addProperty, addToList, addTrigger, blockBuildWhenDownstreamBuilding, blockBuildWhenUpstreamBuilding, buildDescribable, buildDescribable, checkAbortPermission, checkout, createExecutable, createHistoryWidget, disable, doBuild, doBuild, doBuildWithParameters, doBuildWithParameters, doCancelQueue, doCheckRetryCount, doChildrenContextMenu, doDisable, 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, getJDK, 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, isBuildBlocked, isConcurrentBuild, isConfigurable, isDisabled, isInQueue, isParameterized, loadBuild, 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, doDoRename, doRssAll, doRssFailed, getACL, getAllJobs, getAllProperties, getBuildDir, getBuildDiscarder, getBuildForCLI, getBuildHealth, 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, doConfigDotXml, 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, getSearchUrlscheduleBuild, scheduleBuild, scheduleBuild, scheduleBuildcheckAbortPermission, getCauseOfBlockage, getDefaultAuthentication, getFullDisplayName, getName, getSubTasks, getUrl, getWhyBlocked, hasAbortPermission, isBuildBlocked, isConcurrentBuildpublic FreeStyleMultiBranchProject(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 hudson.model.TopLevelItemDescriptor getDescriptor()
getDescriptor in interface hudson.model.Describable<hudson.model.TopLevelItem>getDescriptor in interface hudson.model.TopLevelItempublic FreeStyleBranchProject getBranch(String name)
name - - Branch project namegetItem(String)protected Class<FreeStyleBranchBuild> getBuildClass()
getBuildClass in class hudson.model.AbstractProject<FreeStyleBranchProject,FreeStyleBranchBuild>public FreeStyleBranchProject getTemplateProject()
public File getBranchesDir()
public Collection<FreeStyleBranchProject> getItems()
getItems in interface hudson.model.ItemGroup<FreeStyleBranchProject>public String getUrlChildPrefix()
getUrlChildPrefix in interface hudson.model.ItemGroup<FreeStyleBranchProject>public FreeStyleBranchProject getItem(String name)
getItem in interface hudson.model.ItemGroup<FreeStyleBranchProject>public File getRootDirFor(FreeStyleBranchProject child)
getRootDirFor in interface hudson.model.ItemGroup<FreeStyleBranchProject>public void onRenamed(FreeStyleBranchProject item, String oldName, String newName)
onRenamed in interface hudson.model.ItemGroup<FreeStyleBranchProject>public void onDeleted(FreeStyleBranchProject item)
onDeleted in interface hudson.model.ItemGroup<FreeStyleBranchProject>public boolean canDelete(hudson.model.View view)
canDelete in interface hudson.model.ViewGrouppublic void deleteView(hudson.model.View view)
throws IOException
deleteView in interface hudson.model.ViewGroupIOException@Exported public Collection<hudson.model.View> getViews()
getViews in interface hudson.model.ViewGrouppublic hudson.model.View getView(String name)
getView in interface hudson.model.ViewGroup@Exported public hudson.model.View getPrimaryView()
getPrimaryView in interface hudson.model.ViewGrouppublic void onViewRenamed(hudson.model.View view,
String oldName,
String newName)
onViewRenamed in interface hudson.model.ViewGrouppublic hudson.views.ViewsTabBar getViewsTabBar()
getViewsTabBar in interface hudson.model.ViewGrouppublic hudson.model.ItemGroup<? extends hudson.model.TopLevelItem> getItemGroup()
getItemGroup in interface hudson.model.ViewGrouppublic List<hudson.model.Action> getViewActions()
getViewActions in interface hudson.model.ViewGroup@NonNull public List<jenkins.scm.api.SCMSource> getSCMSources()
getSCMSources in interface jenkins.scm.api.SCMSourceOwner@CheckForNull
public jenkins.scm.api.SCMSource getSCMSource(@CheckForNull
String sourceId)
getSCMSource in interface jenkins.scm.api.SCMSourceOwnerpublic void onSCMSourceUpdated(@NonNull
jenkins.scm.api.SCMSource source)
onSCMSourceUpdated in interface jenkins.scm.api.SCMSourceOwner@CheckForNull
public jenkins.scm.api.SCMSourceCriteria getSCMSourceCriteria(@NonNull
jenkins.scm.api.SCMSource source)
getSCMSourceCriteria in interface jenkins.scm.api.SCMSourceOwnerpublic jenkins.scm.api.SCMSource getSCMSource()
public FreeStyleBranchBuild getLastBuild()
getLastBuild in class hudson.model.AbstractProject<FreeStyleBranchProject,FreeStyleBranchBuild>public boolean isBuildable()
isBuildable in class hudson.model.AbstractProject<FreeStyleBranchProject,FreeStyleBranchBuild>public void doCreateView(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
throws IOException,
javax.servlet.ServletException,
ParseException,
hudson.model.Descriptor.FormException
req - - Stapler requestrsp - - Stapler responseIOException - - if problemsjavax.servlet.ServletException - - if problemsParseException - - if problemsDescriptor.FormException - - if problemspublic hudson.util.FormValidation doViewExistsCheck(@QueryParameter
String value)
value - - desired name of viewFormValidation.ok() or {@link FormValidation#error(String)|public void doDoDelete(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
throws IOException,
InterruptedException
AbstractProject implementation because
the user is not redirected to the parent properly for this project type.
Inherited docs: doDoDelete in class hudson.model.AbstractProject<FreeStyleBranchProject,FreeStyleBranchBuild>req - - Stapler requestrsp - - Stapler responseIOException - - if problemsInterruptedException - - if problemspublic void doConfigSubmit(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
throws javax.servlet.ServletException,
hudson.model.Descriptor.FormException,
IOException
doConfigSubmit in class hudson.model.AbstractProject<FreeStyleBranchProject,FreeStyleBranchBuild>javax.servlet.ServletExceptionhudson.model.Descriptor.FormExceptionIOExceptionprotected void submit(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
throws IOException,
javax.servlet.ServletException,
hudson.model.Descriptor.FormException
submit in class hudson.model.Project<FreeStyleBranchProject,FreeStyleBranchBuild>IOExceptionjavax.servlet.ServletExceptionhudson.model.Descriptor.FormExceptionpublic void syncBranches(hudson.model.TaskListener listener)
_syncBranches(TaskListener) and logging
its exceptions to the listener.public String getSyncBranchesCron()
@Exported(visibility=2,
name="color")
public hudson.model.BallColor getIconColor()
getIconColor in class hudson.model.AbstractProject<FreeStyleBranchProject,FreeStyleBranchBuild>@Exported(name="healthReport") public List<hudson.model.HealthReport> getBuildHealthReports()
getBuildHealthReports in class hudson.model.Job<FreeStyleBranchProject,FreeStyleBranchBuild>public void makeDisabled(boolean b)
throws IOException
makeDisabled in class hudson.model.AbstractProject<FreeStyleBranchProject,FreeStyleBranchBuild>IOException@Initializer(before=PLUGINS_STARTED) public static void registerXStream()
public static List<jenkins.scm.api.SCMSourceDescriptor> getSCMSourceDescriptors(boolean onlyUserInstantiable)
public static List<hudson.model.ViewDescriptor> getViewDescriptors()
Copyright © 2004-2014. All Rights Reserved.