Package hudson.model
Class UpdateCenter.HudsonUpgradeJob
java.lang.Object
hudson.model.UpdateCenter.UpdateCenterJob
hudson.model.UpdateCenter.DownloadJob
hudson.model.UpdateCenter.HudsonUpgradeJob
- All Implemented Interfaces:
Runnable
- Enclosing class:
- UpdateCenter
Represents the state of the upgrade activity of Jenkins core.
-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.model.UpdateCenter.DownloadJob
UpdateCenter.DownloadJob.Failure, UpdateCenter.DownloadJob.InstallationStatus, UpdateCenter.DownloadJob.Installing, UpdateCenter.DownloadJob.Pending, UpdateCenter.DownloadJob.Skipped, UpdateCenter.DownloadJob.Success, UpdateCenter.DownloadJob.SuccessButRequiresRestart -
Field Summary
Fields inherited from class hudson.model.UpdateCenter.DownloadJob
statusFields inherited from class hudson.model.UpdateCenter.UpdateCenterJob
error, id, site -
Constructor Summary
ConstructorsConstructorDescriptionHudsonUpgradeJob(UpdateSite site, Authentication auth) Deprecated.HudsonUpgradeJob(UpdateSite site, org.springframework.security.core.Authentication auth) -
Method Summary
Modifier and TypeMethodDescriptionprotected FileWhere to download the file to.getName()Code name used for logging.protected URLgetURL()Where to download the file from.protected voidCalled when the whole thing went successfully.protected voidCalled when the download is completed to overwrite the old file with the new file.Methods inherited from class hudson.model.UpdateCenter.DownloadJob
_run, getComputedSHA1, getComputedSHA256, getComputedSHA512, getContentLength, getDisplayName, getUser, runMethods inherited from class hudson.model.UpdateCenter.UpdateCenterJob
getApi, getCorrelationId, getError, getErrorMessage, getType, schedule, setCorrelationId, submit
-
Constructor Details
-
HudsonUpgradeJob
Deprecated. -
HudsonUpgradeJob
-
-
Method Details
-
getURL
Description copied from class:UpdateCenter.DownloadJobWhere to download the file from.- Specified by:
getURLin classUpdateCenter.DownloadJob- Throws:
MalformedURLException
-
getDestination
Description copied from class:UpdateCenter.DownloadJobWhere to download the file to.- Specified by:
getDestinationin classUpdateCenter.DownloadJob
-
getName
Description copied from class:UpdateCenter.DownloadJobCode name used for logging.- Specified by:
getNamein classUpdateCenter.DownloadJob
-
onSuccess
protected void onSuccess()Description copied from class:UpdateCenter.DownloadJobCalled when the whole thing went successfully.- Specified by:
onSuccessin classUpdateCenter.DownloadJob
-
replace
Description copied from class:UpdateCenter.DownloadJobCalled when the download is completed to overwrite the old file with the new file.- Overrides:
replacein classUpdateCenter.DownloadJob- Throws:
IOException
-
HudsonUpgradeJob(UpdateSite, Authentication)