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

24 views
Skip to first unread message

Aaron Fay

unread,
May 24, 2018, 5:07:42 PM5/24/18
to Jenkins Developers
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

Slide

unread,
May 24, 2018, 5:53:43 PM5/24/18
to jenkin...@googlegroups.com

--
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 jenkinsci-de...@googlegroups.com.
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.

Jesse Glick

unread,
May 25, 2018, 9:19:57 AM5/25/18
to Jenkins Dev
On Thu, May 24, 2018 at 5:53 PM, Slide <slide...@gmail.com> 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.
Reply all
Reply to author
Forward
0 new messages