Skip to content

[JENKINS-61694] Groovy Hooks may run before or after JOB_CONFIG_ADAPTED #11440

Closed

Description

@jenkins-infra-bot

After introduction a new milestones in the core,  Groovy hooks may run before or after JOB_CONFIG_ADAPTED depending on how graph is executed. We need to apply a fix in the Jenkins core to ensure that JCasC and Groovy Hooks still interact in a predictable way.

Proposal:

  • Revert ab12f71 to the orifginal state so that init hook behaves as before: after all initialization steps
  • Document Groovy Hooks and explicitly document the state
  • Consider introducing new hooks for specific items like post-job-initialization

Originally reported by oleg_nenashev, imported from: Groovy Hooks may run before or after JOB_CONFIG_ADAPTED
  • assignee: oleg_nenashev
  • status: Resolved
  • priority: Major
  • component(s): core
  • label(s): 2.222.2-rejected, 2.222.4-fixed, jcasc-compatibility
  • resolution: Fixed
  • resolved: 2020-04-06T09:44:08+00:00
  • votes: 0
  • watchers: 2
  • imported: 2025-11-24
Raw content of original issue

After introduction a new milestones in the core,  Groovy hooks may run before or after JOB_CONFIG_ADAPTED depending on how graph is executed. We need to apply a fix in the Jenkins core to ensure that JCasC and Groovy Hooks still interact in a predictable way.

Proposal:

  • Revert ab12f71 to the orifginal state so that init hook behaves as before: after all initialization steps
  • Document Groovy Hooks and explicitly document the state
  • Consider introducing new hooks for specific items like post-job-initialization

Activity

  1. jenkins-infra-bot commented on Mar 26, 2020

    @jenkins-infra-bot
    Author
  2. jenkins-infra-bot commented on Apr 21, 2020

    @jenkins-infra-bot
    Author
    danielbeck:

    Would this address JENKINS-61694?

  3. jenkins-infra-bot commented on Nov 24, 2025

    @jenkins-infra-bot
    Author

    [Original relates_to from Jira: JENKINS-51856]

  4. removed
    bugFor changelog: Minor bug. Will be listed after features
    on Nov 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions