You can reproduce locally by running mvn clean verify -Pjenkins-release and on CI by enabling incrementals <https://www.jenkins.io/doc/developer/plugin-development/incrementals/>. Be sure to use the same version of Java you intend to use when doing the release, as different Java versions produce different errors.
-- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CAFwNDjqEWaYB9Kb21Mkzr9VCW9H8v6%2BG%3Dr6_UpuaGg3PyTUTnA%40mail.gmail.com.