Plugin development - upgrading a plugin to work with pipelines, jenkins java.lang.AbstractMethodError

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Plugin development - upgrading a plugin to work with pipelines, jenkins java.lang.AbstractMethodError

Aaron Fay
Hello all, 

I'm attempting to update our company's Jenkins plugin to work with Pipelines (and Jenkins 2.x), following this guide: https://jenkins.io/doc/developer/plugin-development/pipeline-integration/. 

The source code for our plugin is here: https://github.com/ghost-inspector/ghost-inspector-jenkins-plugin/tree/2.0

I have to admit, I'm a bit out of my element here, I've managed to build the hpi, but now I am running into this error at runtime and I'm not completely sure how to move forward on this issue. I would greatly appreciate any pointers your group might have to offer:

Building in workspace /var/jenkins_home/workspace/test
FATAL: null
java.lang.AbstractMethodError
	at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:130)
	at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:85)
	at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744)
	at hudson.model.Build$BuildExecution.build(Build.java:206)
	at hudson.model.Build$BuildExecution.doRun(Build.java:163)
	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:504)
	at hudson.model.Run.execute(Run.java:1794)
	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
	at hudson.model.ResourceController.execute(ResourceController.java:97)
	at hudson.model.Executor.run(Executor.java:429)
Finished: FAILURE

Thanks in advance,
Aaron

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/7ca26bc1-fbca-4e48-9f9d-73d845f09a77%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Plugin development - upgrading a plugin to work with pipelines, jenkins java.lang.AbstractMethodError

slide

On Thu, May 24, 2018 at 2:07 PM Aaron Fay <[hidden email]> wrote:
Hello all, 

I'm attempting to update our company's Jenkins plugin to work with Pipelines (and Jenkins 2.x), following this guide: https://jenkins.io/doc/developer/plugin-development/pipeline-integration/


I have to admit, I'm a bit out of my element here, I've managed to build the hpi, but now I am running into this error at runtime and I'm not completely sure how to move forward on this issue. I would greatly appreciate any pointers your group might have to offer:

Building in workspace /var/jenkins_home/workspace/test
FATAL: null
java.lang.AbstractMethodError
	at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:130)
	at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:85)
	at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744)
	at hudson.model.Build$BuildExecution.build(Build.java:206)
	at hudson.model.Build$BuildExecution.doRun(Build.java:163)
	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:504)
	at hudson.model.Run.execute(Run.java:1794)
	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
	at hudson.model.ResourceController.execute(ResourceController.java:97)
	at hudson.model.Executor.run(Executor.java:429)
Finished: FAILURE

Thanks in advance,
Aaron

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/7ca26bc1-fbca-4e48-9f9d-73d845f09a77%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CAPiUgVeiRMfHCxEbo7EVHDCRbKNPCDwsN-Tjsh56%2BYy3C_qUnQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Plugin development - upgrading a plugin to work with pipelines, jenkins java.lang.AbstractMethodError

Jesse Glick-4
On Thu, May 24, 2018 at 5:53 PM, Slide <[hidden email]> wrote:
> You probably want to implement SimpleBuildStep in your Builder and then
> override the perform method that takes a Run and FilePath instead of a build
> object.

Yes. If the developer guide is not sufficiently clear about this,
please file jenkins-infra/jenkins.io patches to improve it.

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CANfRfr1uRQ0GEsWuDOD7NarhF2xXiqRWf8kKmyjUTrdySGHaLg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.