hi all!
I created a simple jenkins plugin with only one dependency (json lib).
I build it using Gradle + Gradle JPI plugin 0.12.1 (org.jenkins-ci.tools:gradle-jpi-plugin:0.12.1
) on Oracle JDK 1.7.0_79 64bit.
Jenkins core version dependency in my build.gradle file is 1.580.3.
I tried both building the plugin and running jenkins on Java 8 - no difference from Java 7. also tried OpenJDK vs. Oracle JDK. same result.
I start Jenkins 1.580 from command line (java -jar jenkins-580.war , using the same exact JDK as was used to build the plugin),
then I start a build job. when the build job is finished, my plugin is triggered and it sends data to TestRail. all good so far.
then I stop that Jenkins instance and launch "java -jar jenkins-620.war" in the same folder.
everything is the same except for Jenkins WAR version: same workspace, same build jobs, my plugins is not changed, same JDK, etc. only Jenkins 1.620 instead of 1.580.
I start a build job again. when it finishes, the plugin is supposed to be triggered, but Jenkins 1.620 shows an exception in console:
java.lang.VerifyError: Expecting a stackmap frame at branch target 15
Exception Details:
Location:
org/jenkinsci/plugin/trp/model/Suite.getId()I @6: ifeq
Reason:
Expected stackmap frame at this location.
Bytecode:
0x0000000: 2a12 02b8 0015 9900 09b6 0020 a700 06b4
0x0000010: 0017 ac
at org.jenkinsci.plugin.trp.TestRailClient.getSuites(TestRailClient.java:191)
at org.jenkinsci.plugin.trp.TestRailClient.getSuiteId(TestRailClient.java:171)
at org.jenkinsci.plugin.trp.BuildRunListener.processBuildCompletedNotification(BuildRunListener.java:60)
at org.jenkinsci.plugin.trp.BuildRunListener.onCompleted(BuildRunListener.java:39)
at hudson.model.listeners.RunListener.fireCompleted(RunListener.java:201)
at hudson.model.Run.execute(Run.java:1786)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:381)