Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-28683

PeriodicWork.init() / AperiodicWork.init() does not work for dynamically-loaded plugins

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • core

      PeriodicWork.init() / AperiodicWork.init() are run after JOB_LOADED. If a plugin is subsequently installed which includes such an extension, its work is not run until after a Jenkins restart.

      Should use the new ExtensionListListener to detect this case and start the task.

          [JENKINS-28683] PeriodicWork.init() / AperiodicWork.init() does not work for dynamically-loaded plugins

          Jesse Glick created issue -
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 163537 ] New: JNJira + In-Review [ 181275 ]
          James Nord made changes -
          Summary Original: PeriodicWork.init() does not work for dynamically-loaded plugins New: PeriodicWork.init() / AperiodicWork.init() does not work for dynamically-loaded plugins
          James Nord made changes -
          Description Original: {{PeriodicWork.init()}} is run after {{JOB_LOADED}}. If a plugin is subsequently installed which includes such an extension, its work is not run until after a Jenkins restart.

          Should use the new {{ExtensionListListener}} to detect this case and start the task.
          New: {{PeriodicWork.init()}} / {{AperiodicWork.init()}} are run after {{JOB_LOADED}}. If a plugin is subsequently installed which includes such an extension, its work is not run until after a Jenkins restart.

          Should use the new {{ExtensionListListener}} to detect this case and start the task.
          James Nord made changes -
          Assignee New: James Nord [ teilo ]
          James Nord made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          James Nord made changes -
          Status Original: In Progress [ 3 ] New: In Review [ 10005 ]
          James Nord made changes -
          Remote Link New: This issue links to "PR 3496 (Web Link)" [ 20841 ]
          Stephen Connolly made changes -
          Link New: This issue is duplicated by JENKINS-16714 [ JENKINS-16714 ]
          James Nord made changes -
          Labels New: lts-candidate

            Unassigned Unassigned
            jglick Jesse Glick
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: