After upgrade to Jenkins 2.22 and the Pipeline plugins 2.x my build script failed
[Pipeline] End of Pipeline java.io.NotSerializableException: java.util.LinkedHashMap$LinkedKeySet It failed when I called map.keySet() which did worked before the update. This was logic executing on a Jenkins flyweight executor before any stage step. Moving this build logic within a method with @NonCPS worked. It is a bit annoying that this just suddenly stopped working when I updated our Jenkins production instance. Any changes that breaks previous functionality should be mentioned. Perhaps it did, but I did not see it. Usually I read the changelog of Jenkins and the plugins before I perform any update. I am beginning to consider cloning our Jenkins production instance to use in a test environment to test update changes. A few things must be disabled in the build script in regards when running within a test instance, such as git tagging and artifact publish. -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/6287dd8f-4e5d-4330-9885-4420a8cfda10%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.