@Extension @Symbol(value="copyArtifactLegacyJobConfigMigration") public class LegacyJobConfigMigrationMonitor extends AdministrativeMonitor implements Saveable
Modifier and Type | Class and Description |
---|---|
static class |
LegacyJobConfigMigrationMonitor.ListenerImpl
To keep track of the job rename that occurs while the application is running
|
static class |
LegacyJobConfigMigrationMonitor.MigrateAllSelectedFromAndTo
Used from jelly (stapler) to hold a selected item.
|
static class |
LegacyJobConfigMigrationMonitor.MigrateAllSelectedModel
Used from jelly (stapler) to hold selected items.
|
ExtensionPoint.LegacyInstancesAreScopedToHudson
Modifier and Type | Field and Description |
---|---|
static String |
ID |
id
Constructor and Description |
---|
LegacyJobConfigMigrationMonitor()
ctor.
|
Modifier and Type | Method and Description |
---|---|
void |
addLegacyJob(Job<?,?> jobTryingToCopy,
Job<?,?> jobToBeCopiedFrom,
Date lastBuildDate,
String username)
Add information of the source job and destination job that would fail in Production mode.
|
void |
doHelpDetailedSteps(org.kohsuke.stapler.StaplerResponse rsp)
Called from jelly (stapler).
|
org.kohsuke.stapler.HttpResponse |
doIgnoreAllSelected(LegacyJobConfigMigrationMonitor.MigrateAllSelectedModel content)
Called from jelly (stapler).
|
org.kohsuke.stapler.HttpResponse |
doMigrateAllSelected(LegacyJobConfigMigrationMonitor.MigrateAllSelectedModel content)
Called from jelly (stapler).
|
static LegacyJobConfigMigrationMonitor |
get() |
List<LegacyMonitorData.LegacyBuildInfoModel> |
getAllJobInformation()
Used by Jelly
|
static XmlFile |
getConfigXml() |
String |
getDisplayName() |
boolean |
isActivated() |
void |
load()
Load recorded warnings from serialized data.
|
void |
removeLegacyJob(Job<?,?> jobTryingToCopy,
Job<?,?> jobToBeCopiedFrom)
Remove information of the source job and destination job that would fail in Production mode.
|
void |
save()
Save recorded warnings to the file.
|
all, disable, doDisable, getRequiredPermission, getSearchUrl, getTarget, getUrl, isEnabled, isSecurity
getSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError
public static final String ID
public String getDisplayName()
getDisplayName
in interface ModelObject
getDisplayName
in class AdministrativeMonitor
public boolean isActivated()
isActivated
in class AdministrativeMonitor
public void load()
public void save()
save
in interface Saveable
Saveable.save()
@NonNull public static XmlFile getConfigXml()
@NonNull @Restricted(value=org.kohsuke.accmod.restrictions.DoNotUse.class) public List<LegacyMonitorData.LegacyBuildInfoModel> getAllJobInformation()
public void addLegacyJob(@NonNull Job<?,?> jobTryingToCopy, @NonNull Job<?,?> jobToBeCopiedFrom, @NonNull Date lastBuildDate, @NonNull String username)
jobTryingToCopy
- the destination job.jobToBeCopiedFrom
- the source job.lastBuildDate
- the build timestamp.username
- the user name the destination job ran as.public void removeLegacyJob(@NonNull Job<?,?> jobTryingToCopy, @NonNull Job<?,?> jobToBeCopiedFrom)
jobTryingToCopy
- the destination job.jobToBeCopiedFrom
- the source job.@Restricted(value=org.kohsuke.accmod.restrictions.DoNotUse.class) public org.kohsuke.stapler.HttpResponse doIgnoreAllSelected(@JsonBody LegacyJobConfigMigrationMonitor.MigrateAllSelectedModel content)
content
- selected items.@Restricted(value=org.kohsuke.accmod.restrictions.DoNotUse.class) public org.kohsuke.stapler.HttpResponse doMigrateAllSelected(@JsonBody LegacyJobConfigMigrationMonitor.MigrateAllSelectedModel content)
CopyArtifactPermissionProperty
to the source jobs.content
- selected items.@NonNull public static LegacyJobConfigMigrationMonitor get()
@Restricted(value=org.kohsuke.accmod.restrictions.DoNotUse.class) public void doHelpDetailedSteps(org.kohsuke.stapler.StaplerResponse rsp) throws IOException
rsp
- to write contents to.IOException
- servlet communication errors.Copyright © 2016–2022. All rights reserved.