[JIRA] (JENKINS-30832) Seed job encounters `NoClassDefFoundError`

2017-01-04 Thread bran...@fryslie.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Brandon Fryslie commented on  JENKINS-30832  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Seed job encounters `NoClassDefFoundError`   
 

  
 
 
 
 

 
 

de-register your patches, e.g. by using GroovySystem.metaClassRegistry.removeMetaClass(Job)
 I can verify this fixed the problem for me. I'm monkey patching JobParent to add extensions that are available in the job context, which was causing this error: java.lang.NoClassDefFoundError: com/rallydev/jenkins/jobdsl/GenerateImageBuildJob$_addCommands_closure1_closure2 We add the bindings at the top of the DSL script and remove the bindings at the end of the DSL using the code Daniel posted. Using Jenkins 2.39 and job-dsl 1.55  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-30832) Seed job encounters `NoClassDefFoundError`

2017-01-04 Thread bran...@fryslie.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Brandon Fryslie edited a comment on  JENKINS-30832  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Seed job encounters `NoClassDefFoundError`   
 

  
 
 
 
 

 
 {quote}de-register your patches, e.g. by using GroovySystem.metaClassRegistry.removeMetaClass(Job){quote}I can verify this fixed the problem for me.  I'm monkey patching JobParent to add extensions that  are available in the job context  generate entire jobs , which was causing this error:{{java.lang.NoClassDefFoundError: com/rallydev/jenkins/jobdsl/GenerateImageBuildJob$_addCommands_closure1_closure2}}We add the bindings at the top of the DSL script and remove the bindings at the end of the DSL using the code Daniel posted.Using Jenkins 2.39 and job-dsl 1.55  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.