Class BundleUpload
java.lang.Object
java.util.TimerTask
hudson.triggers.SafeTimerTask
hudson.model.PeriodicWork
hudson.model.AsyncPeriodicWork
com.cloudbees.jenkins.plugins.advisor.BundleUpload
- All Implemented Interfaces:
ExtensionPoint,Runnable
-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.triggers.SafeTimerTask
SafeTimerTask.ExceptionRunnableNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringstatic final intstatic final intstatic final StringFields inherited from class hudson.model.AsyncPeriodicWork
nameFields inherited from class hudson.model.PeriodicWork
DAY, HOUR, logger, MIN -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidexecute(TaskListener listener) longBy default we wait a few minutes to allow support-core plugin time to generate a bundle first.longGet the directory where Advisor bundle are temporarily generated before being sent to the remote server.Methods inherited from class hudson.model.AsyncPeriodicWork
createListener, doRun, getErrorLoggingLevel, getLogFile, getNormalLoggingLevel, getSlowLoggingLevelMethods inherited from class hudson.model.PeriodicWork
all, initMethods inherited from class hudson.triggers.SafeTimerTask
getLogsRoot, of, runMethods inherited from class java.util.TimerTask
cancel, scheduledExecutionTime
-
Field Details
-
RECURRENCE_PERIOD_HOURS
public static final int RECURRENCE_PERIOD_HOURS -
INITIAL_DELAY_MINUTES
public static final int INITIAL_DELAY_MINUTES -
TEMP_BUNDLE_DIRECTORY
-
BUNDLE_SUCCESSFULLY_UPLOADED
- See Also:
-
-
Constructor Details
-
BundleUpload
public BundleUpload()
-
-
Method Details
-
execute
- Specified by:
executein classAsyncPeriodicWork
-
getRecurrencePeriod
public long getRecurrencePeriod()- Specified by:
getRecurrencePeriodin classPeriodicWork
-
getInitialDelay
public long getInitialDelay()By default we wait a few minutes to allow support-core plugin time to generate a bundle first.- Overrides:
getInitialDelayin classPeriodicWork- Returns:
- initial delay before running work (in milliseconds).
-
getTempBundleDirectory
Get the directory where Advisor bundle are temporarily generated before being sent to the remote server.- Returns:
- the path as
String
-