We've been tracing some errors since upgrading to 1.39 where certain classes no longer appeared to exist.
We have a jar file which we add via "additionalClasspath" on our seed job.
On inspection of the jar, the closure files do exist.
16:37:06 java.lang.NoClassDefFoundError: com/freelancer/jobdsl/dsl/helpers/FreelancerToxWorkflowContext$_init_closure2_closure3
16:37:06 at com.freelancer.jobdsl.dsl.helpers.FreelancerToxWorkflowContext$_init_closure2.doCall(FreelancerToxWorkflowContext.groovy:60)
The weird thing is that we tried make some changes to the source code, but the errors still point to the same location (says line 60) where it can't find the class.
Furthermore, we tried to track down which commit this started happening, and found it started happening when trying to clean up the classloader: https://github.com/jenkinsci/job-dsl-plugin/commit/98ad52ac530dc58156807cd7dca29f323301042c?w=1