Class TemplatesWorkflowJob
java.lang.Object
hudson.model.AbstractModelObject
hudson.model.Actionable
hudson.model.AbstractItem
hudson.model.Job<JobT,RunT>
hudson.model.ViewJob<TemplatesWorkflowJob,TemplateswWorkflowRun>
org.jenkins.plugin.templateWorkflows.TemplatesWorkflowJob
- All Implemented Interfaces:
ExtensionPoint,Describable<TopLevelItem>,DescriptorByNameOwner,Item,ModelObject,PersistenceRoot,Saveable,TopLevelItem,SearchableModelObject,SearchItem,AccessControlled,ModelObjectWithChildren,ModelObjectWithContextMenu,OnMaster,org.kohsuke.stapler.HttpDeletable,org.kohsuke.stapler.StaplerOverridable,org.kohsuke.stapler.StaplerProxy
public class TemplatesWorkflowJob
extends ViewJob<TemplatesWorkflowJob,TemplateswWorkflowRun>
implements TopLevelItem
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class hudson.model.Job
Job.LastItemListener, Job.SubItemBuildsLocationImplNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudsonNested classes/interfaces inherited from interface jenkins.model.ModelObjectWithContextMenu
ModelObjectWithContextMenu.ContextMenu, ModelObjectWithContextMenu.ContextMenuVisibility, ModelObjectWithContextMenu.MenuItem, ModelObjectWithContextMenu.MenuItemType -
Field Summary
Fields inherited from class hudson.model.ViewJob
reloadPeriodically, runsFields inherited from class hudson.model.Job
HISTORY_ADAPTER, nextBuildNumber, properties, runIdMigratorFields inherited from class hudson.model.AbstractItem
description, displayName, name, PRONOUN, SKIP_PERMISSION_CHECK, TASK_NOUN -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnet.sf.json.JSONObjectdeleteInstance(String instanceName) net.sf.json.JSONObjectexecuteWorkflow(String workflowName) net.sf.json.JSONObjectprotected voidreload()net.sf.json.JSONObjectsetTemplateInstanceName(String instanceName) voidsubmit(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) net.sf.json.JSONObjectvalidateJobIsNotRunning(String jobName) net.sf.json.JSONObjectvalidateJobName(String newJobName, boolean allowUseOfExistingJob) net.sf.json.JSONObjectvalidateTemplateName(String instanceNewName) Methods inherited from class hudson.model.ViewJob
_getRuns, isBuildable, onLoad, removeRunMethods inherited from class hudson.model.Job
addProperty, assignBuildNumber, checkRename, createHistoryWidget, delete, doBuildStatus, doChildrenContextMenu, doConfigSubmit, doDescription, doDoRename, doRssAll, doRssChangelog, doRssFailed, getACL, getAllJobs, getAllProperties, getBuild, getBuildByNumber, getBuildDir, getBuildDiscarder, getBuildForCLI, getBuildHealth, getBuildHealthReports, getBuilds, getBuilds, getBuildsAsMap, getBuildsByTimestamp, getBuildStatusIconClassName, getBuildStatusUrl, getBuildTimeGraph, getCharacteristicEnvVars, getDynamic, getEnvironment, getEstimatedDuration, getEstimatedDurationCandidates, getFirstBuild, getIconColor, getLastBuild, getLastBuildsOverThreshold, getLastCompletedBuild, getLastFailedBuild, getLastStableBuild, getLastSuccessfulBuild, getLastUnstableBuild, getLastUnsuccessfulBuild, getLogRotator, getNearestBuild, getNearestOldBuild, getNewBuilds, getNextBuildNumber, getOverrides, getPermalinks, getPronoun, getProperties, getProperty, getProperty, getQueueItem, getTimeline, getWidgets, isBuilding, isHoldOffBuildUntilSave, isInQueue, isKeepDependencies, isLogUpdated, isNameEditable, logRotate, makeSearchIndex, movedTo, onCopiedFrom, onCreatedFromScratch, removeProperty, removeProperty, renameTo, save, saveNextBuildNumber, setBuildDiscarder, setLogRotator, supportsLogRotator, updateNextBuildNumberMethods inherited from class hudson.model.AbstractItem
delete, doCheckNewName, doConfigDotXml, doConfirmRename, doDoDelete, doReload, doSetName, doSubmitDescription, getAbsoluteUrl, getApi, getConfigFile, getDescription, getDisplayName, getDisplayNameOrNull, getFullDisplayName, getFullName, getName, getRelativeDisplayNameFrom, getRelativeNameFromGroup, getRootDir, getSearchName, getSearchUrl, getShortUrl, getTarget, getTaskNoun, getUrl, performDelete, resolveForCLI, setDescription, setDisplayName, setDisplayNameOrNull, toString, updateByXml, updateByXml, writeConfigDotXml, writeReplaceMethods inherited from class hudson.model.Actionable
addAction, addOrReplaceAction, doContextMenu, getAction, getAction, getActions, getActions, getAllActions, removeAction, removeActions, replaceAction, replaceActionsMethods inherited from class hudson.model.AbstractModelObject
getSearch, getSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendErrorMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface hudson.security.AccessControlled
checkAnyPermission, checkPermission, getACL, hasAnyPermission, hasPermission, hasPermission, hasPermission2Methods inherited from interface hudson.model.DescriptorByNameOwner
getDescriptorByNameMethods inherited from interface hudson.model.Item
delete, getAbsoluteUrl, getAllJobs, getDisplayName, getFullDisplayName, getFullName, getName, getRelativeNameFrom, getRelativeNameFrom, getShortUrl, getUrl, onCopiedFrom, onCreatedFromScratch, onLoad, saveMethods inherited from interface hudson.model.PersistenceRoot
getRootDirMethods inherited from interface hudson.search.SearchableModelObject
getSearchMethods inherited from interface hudson.search.SearchItem
getSearchIndex, getSearchName, getSearchUrl
-
Constructor Details
-
TemplatesWorkflowJob
-
-
Method Details
-
getTemplateName
-
getTemplateInstanceName
-
getTemplateInstances
-
getProjectDesc
-
getTemplateNames
-
getParent
- Specified by:
getParentin interfaceItem- Overrides:
getParentin classAbstractItem
-
submit
public void submit(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) throws IOException, javax.servlet.ServletException, Descriptor.FormException - Overrides:
submitin classViewJob<TemplatesWorkflowJob,TemplateswWorkflowRun> - Throws:
IOExceptionjavax.servlet.ServletExceptionDescriptor.FormException
-
getDescriptor
- Specified by:
getDescriptorin interfaceDescribable<TopLevelItem>- Specified by:
getDescriptorin interfaceTopLevelItem
-
setTemplateInstanceName
-
executeWorkflow
@JavaScriptMethod public net.sf.json.JSONObject executeWorkflow(String workflowName) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
deleteInstance
@JavaScriptMethod public net.sf.json.JSONObject deleteInstance(String instanceName) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
validateJobName
@JavaScriptMethod public net.sf.json.JSONObject validateJobName(String newJobName, boolean allowUseOfExistingJob) -
validateJobIsNotRunning
-
validateTemplateName
-
refresh
-
reload
protected void reload()- Specified by:
reloadin classViewJob<TemplatesWorkflowJob,TemplateswWorkflowRun>
-