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

Add support of @Initializer(after = InitMilestone.COMPLETED)

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Component/s: core
    • Labels:
    • Similar Issues:

      Description

      It's a follow-up to JENKINS-37759. @Initializer(after = InitMilestone.COMPLETED) does not work properly now since COMPLETED switch is always the last task. We need a better solution for the task graph.

      Example:

      • Artificial milestone "COMPLETED_HOOKS_PROCESSED", which does not actually modify Jenkins' initSlate field
      • Handling of default definitions in @Initializer e.g. (after=COMPLETED) should make InitializerFinder to ignore the default before value

        Attachments

          Issue Links

            Activity

            Hide
            jglick Jesse Glick added a comment -

            ItemListener.onLoaded can be used to run stuff just before Jenkins.<init> completes. Unfortunately I can find no listener for WebAppMain swapping in the completed Jenkins for the placeholder HudsonIsLoading.

            Show
            jglick Jesse Glick added a comment - ItemListener.onLoaded can be used to run stuff just before Jenkins.<init> completes. Unfortunately I can find no listener for WebAppMain swapping in the completed Jenkins for the placeholder HudsonIsLoading .

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              oleg_nenashev Oleg Nenashev
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated: