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.ExceptionRunnable
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final String
static final int
static final int
static final String
Fields inherited from class hudson.model.AsyncPeriodicWork
name
Fields inherited from class hudson.model.PeriodicWork
DAY, HOUR, logger, MIN
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
execute
(TaskListener listener) long
By default we wait a few minutes to allow support-core plugin time to generate a bundle first.long
Get 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, getSlowLoggingLevel
Methods inherited from class hudson.model.PeriodicWork
all, init
Methods inherited from class hudson.triggers.SafeTimerTask
getLogsRoot, of, run
Methods 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:
execute
in classAsyncPeriodicWork
-
getRecurrencePeriod
public long getRecurrencePeriod()- Specified by:
getRecurrencePeriod
in classPeriodicWork
-
getInitialDelay
public long getInitialDelay()By default we wait a few minutes to allow support-core plugin time to generate a bundle first.- Overrides:
getInitialDelay
in 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
-