IIRC objects used in pipelines need to be able to get serialized, because the build should be pausable and resumable at any time. Try to refactor the AntBuilder object creation and call into a groovy method and annotate this method with @NonCPS
-- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/470eba97-6898-49e8-b273-214bb3cfc1aa%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
