public class UpdateCenter.InstallationJob extends UpdateCenter.DownloadJob
UpdateCenter.DownloadJob.Failure, UpdateCenter.DownloadJob.InstallationStatus, UpdateCenter.DownloadJob.Installing, UpdateCenter.DownloadJob.Pending, UpdateCenter.DownloadJob.Skipped, UpdateCenter.DownloadJob.Success, UpdateCenter.DownloadJob.SuccessButRequiresRestart
Modifier and Type | Field and Description |
---|---|
protected boolean |
dynamicLoad
True to load the plugin into this Jenkins, false to wait until restart.
|
UpdateSite.Plugin |
plugin
What plugin are we trying to install?
|
protected PluginManager |
pm |
status
error, id, site
Constructor and Description |
---|
InstallationJob(UpdateSite.Plugin plugin,
UpdateSite site,
org.acegisecurity.Authentication auth)
Deprecated.
as of 1.442
|
InstallationJob(UpdateSite.Plugin plugin,
UpdateSite site,
org.acegisecurity.Authentication auth,
boolean dynamicLoad) |
Modifier and Type | Method and Description |
---|---|
void |
_run() |
protected File |
getDestination()
Where to download the file to.
|
String |
getName() |
protected URL |
getURL()
Where to download the file from.
|
protected void |
onSuccess()
Called when the whole thing went successfully.
|
protected void |
replace(File dst,
File src)
Called when the download is completed to overwrite
the old file with the new file.
|
String |
toString() |
protected boolean |
wasInstalled()
Indicates there is another installation job for this plugin
|
getComputedSHA1, getUser, run
getApi, getCorrelationId, getError, getErrorMessage, getType, schedule, setCorrelationId, submit
@Exported public final UpdateSite.Plugin plugin
protected final PluginManager pm
protected final boolean dynamicLoad
@Deprecated public InstallationJob(UpdateSite.Plugin plugin, UpdateSite site, org.acegisecurity.Authentication auth)
public InstallationJob(UpdateSite.Plugin plugin, UpdateSite site, org.acegisecurity.Authentication auth, boolean dynamicLoad)
protected URL getURL() throws MalformedURLException
UpdateCenter.DownloadJob
getURL
in class UpdateCenter.DownloadJob
MalformedURLException
protected File getDestination()
UpdateCenter.DownloadJob
getDestination
in class UpdateCenter.DownloadJob
public String getName()
getName
in class UpdateCenter.DownloadJob
public void _run() throws IOException, UpdateCenter.DownloadJob.InstallationStatus
_run
in class UpdateCenter.DownloadJob
IOException
UpdateCenter.DownloadJob.InstallationStatus
protected boolean wasInstalled()
protected void onSuccess()
UpdateCenter.DownloadJob
onSuccess
in class UpdateCenter.DownloadJob
protected void replace(File dst, File src) throws IOException
replace
in class UpdateCenter.DownloadJob
IOException
Copyright © 2004–2017. All rights reserved.