After introduction a new milestones in the core, JCasC and Groovy hooks will not be aligned properly after https://github.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.