Class BundleUploadMonitor
- java.lang.Object
-
- hudson.model.AbstractModelObject
-
- hudson.model.AdministrativeMonitor
-
- com.cloudbees.jenkins.plugins.advisor.BundleUploadMonitor
-
- All Implemented Interfaces:
ExtensionPoint
,ModelObject
,SearchableModelObject
,SearchItem
,org.kohsuke.stapler.StaplerProxy
@Extension public class BundleUploadMonitor extends AdministrativeMonitor
Displays a message whenever there is an issue during the bundle upload process. This message will match any of the error messages in the log file.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
-
Fields inherited from class hudson.model.AdministrativeMonitor
id
-
-
Constructor Summary
Constructors Constructor Description BundleUploadMonitor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
doAct(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
String
getDisplayName()
String
getFailureMessage()
Get the failure message from the last bundle upload.boolean
isActivated()
-
Methods inherited from class hudson.model.AdministrativeMonitor
all, disable, doDisable, getRequiredPermission, getSearchUrl, getTarget, getUrl, isEnabled, isSecurity
-
Methods inherited from class hudson.model.AbstractModelObject
getSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError
-
-
-
-
Method Detail
-
isActivated
public boolean isActivated()
- Specified by:
isActivated
in classAdministrativeMonitor
-
getDisplayName
public String getDisplayName()
- Specified by:
getDisplayName
in interfaceModelObject
- Overrides:
getDisplayName
in classAdministrativeMonitor
-
doAct
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public void doAct(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) throws javax.servlet.ServletException, IOException
- Throws:
javax.servlet.ServletException
IOException
-
getFailureMessage
public String getFailureMessage()
Get the failure message from the last bundle upload.- Returns:
- String the error message that was saved as part of the last BundleUpload
-
-