After introduction a new milestones in the core, JCasC and Groovy hooks will not be aligned properly may run before or after [https://github JOB_CONFIG_ADAPTED depending on how graph is executed.com/jenkinsci/configuration-as-code-plugin/pull/1262] . We need to apply a fix in the Jenkins core to ensure that JCasC and Groovy Hooks still interact in a predictable way.