Class LegacyJobConfigMigrationMonitor

    • Constructor Detail

      • LegacyJobConfigMigrationMonitor

        public LegacyJobConfigMigrationMonitor()
        ctor.
    • Method Detail

      • load

        public void load()
        Load recorded warnings from serialized data.
      • getConfigXml

        @NonNull
        public static XmlFile getConfigXml()
        Returns:
        the path of the xml file to save warnings.
      • getAllJobInformation

        @NonNull
        @Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class)
        public List<LegacyMonitorData.LegacyBuildInfoModel> getAllJobInformation()
        Used by Jelly
        Returns:
        the list of the source and destination jobs to warn.
      • addLegacyJob

        public void addLegacyJob​(@NonNull
                                 Job<?,​?> jobTryingToCopy,
                                 @NonNull
                                 Job<?,​?> jobToBeCopiedFrom,
                                 @NonNull
                                 Date lastBuildDate,
                                 @NonNull
                                 String username)
        Add information of the source job and destination job that would fail in Production mode.
        Parameters:
        jobTryingToCopy - the destination job.
        jobToBeCopiedFrom - the source job.
        lastBuildDate - the build timestamp.
        username - the user name the destination job ran as.
      • removeLegacyJob

        public void removeLegacyJob​(@NonNull
                                    Job<?,​?> jobTryingToCopy,
                                    @NonNull
                                    Job<?,​?> jobToBeCopiedFrom)
        Remove information of the source job and destination job that would fail in Production mode.
        Parameters:
        jobTryingToCopy - the destination job.
        jobToBeCopiedFrom - the source job.
      • doIgnoreAllSelected

        @Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class)
        public org.kohsuke.stapler.HttpResponse doIgnoreAllSelected​(@JsonBody
                                                                    LegacyJobConfigMigrationMonitor.MigrateAllSelectedModel content)
        Called from jelly (stapler). Ignore selected items.
        Parameters:
        content - selected items.
        Returns:
        the response.
      • doHelpDetailedSteps

        @Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class)
        public void doHelpDetailedSteps​(org.kohsuke.stapler.StaplerResponse rsp)
                                 throws IOException
        Called from jelly (stapler). Returns the contents of help-detailedSteps.html
        Parameters:
        rsp - to write contents to.
        Throws:
        IOException - servlet communication errors.