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
@Extension @Symbol("bundleUpload") public class BundleUpload extends AsyncPeriodicWork
-
-
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
Fields Modifier and Type Field Description protected static String
BUNDLE_SUCCESSFULLY_UPLOADED
static int
INITIAL_DELAY_MINUTES
static int
RECURRENCE_PERIOD_HOURS
static String
TEMP_BUNDLE_DIRECTORY
-
Fields inherited from class hudson.model.AsyncPeriodicWork
name
-
Fields inherited from class hudson.model.PeriodicWork
DAY, HOUR, logger, MIN
-
-
Constructor Summary
Constructors Constructor Description BundleUpload()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
execute(TaskListener listener)
long
getInitialDelay()
By default we wait a few minutes to allow support-core plugin time to generate a bundle first.long
getRecurrencePeriod()
String
getTempBundleDirectory()
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 Detail
-
RECURRENCE_PERIOD_HOURS
public static final int RECURRENCE_PERIOD_HOURS
-
INITIAL_DELAY_MINUTES
public static final int INITIAL_DELAY_MINUTES
-
TEMP_BUNDLE_DIRECTORY
public static final String TEMP_BUNDLE_DIRECTORY
-
BUNDLE_SUCCESSFULLY_UPLOADED
protected static final String BUNDLE_SUCCESSFULLY_UPLOADED
- See Also:
- Constant Field Values
-
-
Method Detail
-
execute
protected void execute(TaskListener listener)
- 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).
-
-