I tried to implement the two solutions I suggested above.

  • Adding the Ivy library to jenkins.war works. The plugin does not need to be changed.
  • Adding the Groovy library to the plugin does not work so well. Fortunately no classloader magic on the plugin side is required since Jenkins can hide classes from a plugin when the plugin specifies a "Mask-Classes" attribute in the manifest. I implemented that in a branch, see https://github.com/CoreMedia/job-dsl-plugin/commit/830fae7a0fd8a046c620600e46633166804190e3. Script execution with @Grab works. Unfortunately this needs some workaround in the gradle build and currently breaks "gradlew server". The server does not start because it can not find the Groovy classes. It also breaks rendering the GeneratedJobsBuildAction with a java.lang.VerifyError when deploying to a running instance of Jenkins.
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
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/groups/opt_out.
 
 

Reply via email to