Package com.cloudbees.jenkins.support
Class SupportAction
java.lang.Object
com.cloudbees.jenkins.support.SupportAction
- All Implemented Interfaces:
ExtensionPoint,Action,ModelObject,RootAction,org.kohsuke.stapler.StaplerProxy
@Extension
@ExportedBean
public class SupportAction
extends Object
implements RootAction, org.kohsuke.stapler.StaplerProxy
Main root action for generating support.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.kohsuke.stapler.HttpResponsedoDeleteBundles(org.kohsuke.stapler.StaplerRequest2 req) voiddoDownload(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp) Generates a support bundle with selected components from the UI.voiddoDownloadBundle(String taskId, org.kohsuke.stapler.StaplerResponse2 rsp) voiddoDownloadBundles(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp) voiddoGenerateAllBundles(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp) Generates a support bundle with selected components from the UI.voiddoGenerateBundle(String components, org.kohsuke.stapler.StaplerResponse2 rsp) Generates a support bundle with only requested components.org.kohsuke.stapler.HttpRedirectdoGenerateBundleAsync(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp) Generates a support bundle with selected components from the UI.org.jvnet.localizer.Localizableorg.jvnet.localizer.Localizablefinal ApigetApi()Remote API access.getGeneratorByTaskId(String taskId) booleanboolean
-
Field Details
-
CREATE_BUNDLE
Deprecated. -
SYNC_SUPPORT_BUNDLE
- See Also:
-
-
Constructor Details
-
SupportAction
public SupportAction()
-
-
Method Details
-
getTarget
- Specified by:
getTargetin interfaceorg.kohsuke.stapler.StaplerProxy
-
getIconFileName
- Specified by:
getIconFileNamein interfaceAction
-
getDisplayName
- Specified by:
getDisplayNamein interfaceAction- Specified by:
getDisplayNamein interfaceModelObject
-
getUrlName
- Specified by:
getUrlNamein interfaceAction
-
getActionTitleText
-
getActionTitle
public org.jvnet.localizer.Localizable getActionTitle() -
getActionBlurb
public org.jvnet.localizer.Localizable getActionBlurb() -
getComponents
-
getCategorizedComponents
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public Map<Component.ComponentCategory,List<Component>> getCategorizedComponents() -
getBundles
-
getApi
Remote API access. -
isAnonymized
public boolean isAnonymized() -
doDeleteBundles
public org.kohsuke.stapler.HttpResponse doDeleteBundles(org.kohsuke.stapler.StaplerRequest2 req) throws jakarta.servlet.ServletException - Throws:
jakarta.servlet.ServletException
-
doDownloadBundles
public void doDownloadBundles(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp) throws jakarta.servlet.ServletException, IOException - Throws:
jakarta.servlet.ServletExceptionIOException
-
doDownload
public void doDownload(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp) throws jakarta.servlet.ServletException, IOException Generates a support bundle with selected components from the UI.- Parameters:
req- The stapler requestrsp- The stapler response- Throws:
jakarta.servlet.ServletException- If an error occurred during form submissionIOException- If an input or output exception occurs
-
doGenerateAllBundles
public void doGenerateAllBundles(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp) throws jakarta.servlet.ServletException, IOException Generates a support bundle with selected components from the UI.- Parameters:
req- The stapler requestrsp- The stapler response- Throws:
jakarta.servlet.ServletException- If an error occurred during form submissionIOException- If an input or output exception occurs
-
doGenerateBundleAsync
public org.kohsuke.stapler.HttpRedirect doGenerateBundleAsync(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp) throws jakarta.servlet.ServletException, IOException Generates a support bundle with selected components from the UI. in async- Parameters:
req- The stapler requestrsp- The stapler response- Throws:
jakarta.servlet.ServletException- If an error occurred during form submissionIOException- If an input or output exception occurs
-
doGenerateBundle
public void doGenerateBundle(@QueryParameter("components") String components, org.kohsuke.stapler.StaplerResponse2 rsp) throws IOException Generates a support bundle with only requested components.- Parameters:
components- component names separated by comma.rsp- The stapler response- Throws:
IOException- If an input or output exception occurs
-
selectedByDefault
-
getGeneratorByTaskId
- Throws:
Exception
-
doDownloadBundle
public void doDownloadBundle(@QueryParameter("taskId") String taskId, org.kohsuke.stapler.StaplerResponse2 rsp) throws IOException - Throws:
IOException
-
SupportPlugin.CREATE_BUNDLE