public final class OrganizationFolder extends com.cloudbees.hudson.plugins.folder.computed.ComputedFolder<MultiBranchProject<?,?>> implements jenkins.scm.api.SCMNavigatorOwner, org.jenkins.ui.icon.IconSpec
MultiBranchProjects, one per repository.| Modifier and Type | Class and Description |
|---|---|
static class |
OrganizationFolder.DescriptorImpl
Our descriptor
|
static class |
OrganizationFolder.OrganizationScan
Our scan.
|
static class |
OrganizationFolder.SCMEventListenerImpl
Listens for events from the SCM event system.
|
static class |
OrganizationFolder.StateActionFactory
Adds the
OrganizationFolder.State.getActions() to Actionable.getAllActions(). |
com.cloudbees.hudson.plugins.folder.AbstractFolder.ItemListenerImpl, com.cloudbees.hudson.plugins.folder.AbstractFolder.RunListenerImplExtensionPoint.LegacyInstancesAreScopedToHudsonModelObjectWithContextMenu.ContextMenu, ModelObjectWithContextMenu.ContextMenuVisibility, ModelObjectWithContextMenu.MenuItemdescription, displayName, name, PRONOUN, SKIP_PERMISSION_CHECK, TASK_NOUN| Constructor and Description |
|---|
OrganizationFolder(ItemGroup parent,
String name) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
computeChildren(com.cloudbees.hudson.plugins.folder.computed.ChildObserver<MultiBranchProject<?,?>> observer,
TaskListener listener) |
protected com.cloudbees.hudson.plugins.folder.computed.FolderComputation<MultiBranchProject<?,?>> |
createComputation(com.cloudbees.hudson.plugins.folder.computed.FolderComputation<MultiBranchProject<?,?>> previous) |
ACL |
getACL() |
DescribableList<BranchBuildStrategy,BranchBuildStrategyDescriptor> |
getBuildStrategies()
The
BranchBuildStrategys to apply. |
String |
getDescription() |
String |
getDisplayName() |
String |
getIconClassName() |
MultiBranchProject<?,?> |
getItem(String name) |
MultiBranchProject<?,?> |
getItemByProjectName(String projectName)
Returns the child job with the specified project name or
null if no such child job exists. |
DescribableList<jenkins.scm.api.SCMNavigator,jenkins.scm.api.SCMNavigatorDescriptor> |
getNavigators() |
View |
getPrimaryView()
Will create an specialized view when there are no repositories or branches found, which contain a Jenkinsfile
or other MARKER file.
|
DescribableList<MultiBranchProjectFactory,MultiBranchProjectFactoryDescriptor> |
getProjectFactories() |
List<jenkins.scm.api.SCMNavigator> |
getSCMNavigators() |
jenkins.scm.api.SCMSource |
getSCMSource(String sourceId) |
jenkins.scm.api.SCMSourceCriteria |
getSCMSourceCriteria(jenkins.scm.api.SCMSource source) |
List<jenkins.scm.api.SCMSource> |
getSCMSources() |
String |
getSourcePronoun()
Get the term used in the UI to represent the souce for this kind of
Item. |
View |
getView(String name) |
protected View |
getWelcomeView()
Creates a place-holder view when there's no active repositories indexed.
|
boolean |
isBuildable() |
boolean |
isHasEvents() |
boolean |
isSingleOrigin()
Returns
true if this is a single origin OrganizationFolder. |
protected com.cloudbees.hudson.plugins.folder.FolderIcon |
newDefaultFolderIcon() |
protected com.cloudbees.hudson.plugins.folder.views.AbstractFolderViewHolder |
newFolderViewHolder() |
void |
onCreatedFromScratch() |
void |
onLoad(ItemGroup<? extends Item> parent,
String name) |
void |
onSCMSourceUpdated(jenkins.scm.api.SCMSource source) |
protected void |
submit(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp) |
addTrigger, checkAbortPermission, checkRename, createEventsChildObserver, createExecutable, doBuild, doConfigSubmit, getActions, getAssignedLabel, getCauseOfBlockage, getComputation, getComputationDir, getDefaultAuthentication, getDefaultAuthentication, getEstimatedDuration, getLastBuiltOn, getLastFailedBuild, getLastStableBuild, getLastSuccessfulBuild, getOrphanedItemStrategy, getOrphanedItemStrategyDescriptors, getOwnerTask, getResourceList, getSameNodeConstraint, getSubTasks, getSuccessfulDestination, getTriggerDescriptors, getTriggers, getWhyBlocked, hasAbortPermission, init, isBuildBlocked, isConcurrentBuild, isDisabled, openEventsChildObserver, orphanedItems, recalculateAfterSubmitted, removeTrigger, scheduleBuild, scheduleBuild, scheduleBuild, scheduleBuild, scheduleBuild2, setDisabled, setOrphanedItemStrategy, supportsMakeDisabledaddProperty, addView, canDelete, delete, deleteView, doChildrenContextMenu, doCreateView, doDisable, doEnable, doLastBuild, doSubmitDescription, doViewExistsCheck, getAllJobs, getBuildHealth, getBuildHealthReports, getDescriptor, getFolderViews, getHealthMetrics, getIcon, getIconColor, getItemGroup, getItems, getJob, getJobsDir, getOverrides, getPronoun, getProperties, getRootDirFor, getRootDirFor, getStaplerFallback, getUrlChildPrefix, getViewActions, getViews, getViewsTabBar, initViews, invalidateBuildHealthReports, isNameEditable, itemsPut, loadChildren, loadJobTotal, makeDisabled, makeSearchIndex, newDefaultViewsTabBar, onDeleted, onRenamed, onViewRenamed, renameBlocker, renameTo, resetFolderViews, save, setIcon, setPrimaryViewdelete, doCheckNewName, doConfigDotXml, doConfirmRename, doDoDelete, doReload, doSetName, getAbsoluteUrl, getApi, getConfigFile, getDisplayNameOrNull, getFullDisplayName, getFullName, getName, getParent, getRelativeDisplayNameFrom, getRelativeNameFromGroup, getRootDir, getSearchName, getSearchUrl, getShortUrl, getTarget, getTaskNoun, getUrl, movedTo, onCopiedFrom, performDelete, resolveForCLI, setDescription, setDisplayName, setDisplayNameOrNull, toString, updateByXml, updateByXml, writeConfigDotXmladdAction, addOrReplaceAction, doContextMenu, getAction, getAction, getActions, getAllActions, getDynamic, removeAction, removeActions, replaceAction, replaceActionsgetSearch, getSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendErrorclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdelete, getAbsoluteUrl, getAllJobs, getFullDisplayName, getFullName, getName, getParent, getRelativeNameFrom, getRelativeNameFrom, getShortUrl, getUrl, onCopiedFrom, savegetRootDirgetSearchgetSearchIndex, getSearchName, getSearchUrlcheckPermission, hasPermission, hasPermissiongetFullDisplayName, getName, getUrlallItems, allItems, getAllItems, getAllItems, getFullDisplayName, getFullName, getUrlgetDescriptorByNamepublic void onCreatedFromScratch()
onCreatedFromScratch in interface ItemonCreatedFromScratch in class com.cloudbees.hudson.plugins.folder.computed.ComputedFolder<MultiBranchProject<?,?>>public void onLoad(ItemGroup<? extends Item> parent, String name) throws IOException
onLoad in interface ItemonLoad in class com.cloudbees.hudson.plugins.folder.computed.ComputedFolder<MultiBranchProject<?,?>>IOExceptionpublic MultiBranchProject<?,?> getItem(String name) throws org.acegisecurity.AccessDeniedException
getItem in interface ItemGroup<MultiBranchProject<?,?>>getItem in class com.cloudbees.hudson.plugins.folder.AbstractFolder<MultiBranchProject<?,?>>org.acegisecurity.AccessDeniedException@CheckForNull public MultiBranchProject<?,?> getItemByProjectName(@NonNull String projectName)
null if no such child job exists.projectName - the name of the project.null if no such job exists or if the requesting user does ave permission to
view it.public boolean isSingleOrigin()
true if this is a single origin OrganizationFolder.true if this is a single origin OrganizationFolder.public DescribableList<jenkins.scm.api.SCMNavigator,jenkins.scm.api.SCMNavigatorDescriptor> getNavigators()
@NonNull public List<jenkins.scm.api.SCMNavigator> getSCMNavigators()
getSCMNavigators in interface jenkins.scm.api.SCMNavigatorOwnerpublic DescribableList<MultiBranchProjectFactory,MultiBranchProjectFactoryDescriptor> getProjectFactories()
public DescribableList<BranchBuildStrategy,BranchBuildStrategyDescriptor> getBuildStrategies()
BranchBuildStrategys to apply.BranchBuildStrategys to apply.protected void submit(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
throws IOException,
javax.servlet.ServletException,
Descriptor.FormException
submit in class com.cloudbees.hudson.plugins.folder.computed.ComputedFolder<MultiBranchProject<?,?>>IOExceptionjavax.servlet.ServletExceptionDescriptor.FormException@Nonnull protected com.cloudbees.hudson.plugins.folder.computed.FolderComputation<MultiBranchProject<?,?>> createComputation(@CheckForNull com.cloudbees.hudson.plugins.folder.computed.FolderComputation<MultiBranchProject<?,?>> previous)
createComputation in class com.cloudbees.hudson.plugins.folder.computed.ComputedFolder<MultiBranchProject<?,?>>public boolean isHasEvents()
isHasEvents in class com.cloudbees.hudson.plugins.folder.computed.ComputedFolder<MultiBranchProject<?,?>>public boolean isBuildable()
isBuildable in class com.cloudbees.hudson.plugins.folder.computed.ComputedFolder<MultiBranchProject<?,?>>protected void computeChildren(com.cloudbees.hudson.plugins.folder.computed.ChildObserver<MultiBranchProject<?,?>> observer, TaskListener listener) throws IOException, InterruptedException
computeChildren in class com.cloudbees.hudson.plugins.folder.computed.ComputedFolder<MultiBranchProject<?,?>>IOExceptionInterruptedExceptionprotected com.cloudbees.hudson.plugins.folder.views.AbstractFolderViewHolder newFolderViewHolder()
newFolderViewHolder in class com.cloudbees.hudson.plugins.folder.AbstractFolder<MultiBranchProject<?,?>>protected com.cloudbees.hudson.plugins.folder.FolderIcon newDefaultFolderIcon()
newDefaultFolderIcon in class com.cloudbees.hudson.plugins.folder.AbstractFolder<MultiBranchProject<?,?>>public String getIconClassName()
getIconClassName in interface org.jenkins.ui.icon.IconSpecpublic String getSourcePronoun()
Item. Must start with a capital letter.public List<jenkins.scm.api.SCMSource> getSCMSources()
getSCMSources in interface jenkins.scm.api.SCMSourceOwnerpublic jenkins.scm.api.SCMSource getSCMSource(String sourceId)
getSCMSource in interface jenkins.scm.api.SCMSourceOwnerpublic void onSCMSourceUpdated(jenkins.scm.api.SCMSource source)
onSCMSourceUpdated in interface jenkins.scm.api.SCMSourceOwnerpublic jenkins.scm.api.SCMSourceCriteria getSCMSourceCriteria(jenkins.scm.api.SCMSource source)
getSCMSourceCriteria in interface jenkins.scm.api.SCMSourceOwnerpublic View getPrimaryView()
getPrimaryView in interface ViewGroupgetPrimaryView in class com.cloudbees.hudson.plugins.folder.AbstractFolder<MultiBranchProject<?,?>>protected View getWelcomeView()
public View getView(String name)
getView in interface ViewGroupgetView in class com.cloudbees.hudson.plugins.folder.AbstractFolder<MultiBranchProject<?,?>>public String getDescription()
getDescription in class AbstractItempublic String getDisplayName()
getDisplayName in interface ItemgetDisplayName in interface ModelObjectgetDisplayName in interface ResourceActivitygetDisplayName in class AbstractItempublic ACL getACL()
getACL in interface AccessControlledgetACL in class AbstractItemCopyright © 2016–2019. All rights reserved.