Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perform method signature update #344

Closed
wants to merge 1 commit into from

Conversation

kornrunner
Copy link

Hopefully sorts java.lang.IllegalArgumentException which is being thrown as of Jenkins 2.242:

java.lang.IllegalArgumentException: Method perform not found in com.uber.jenkins.phabricator.PhabricatorNotifier (or it is private, final or static)
	at hudson.Util.getMethod(Util.java:1462)
	at hudson.Util.isOverridden(Util.java:1439)
	at jenkins.tasks.SimpleBuildStep.perform(SimpleBuildStep.java:110)
	at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:78)
	at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:741)
	at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690)
	at hudson.model.Build$BuildExecution.post2(Build.java:186)
	at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:635)
	at hudson.model.Run.execute(Run.java:1905)
	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
	at hudson.model.ResourceController.execute(ResourceController.java:97)
	at hudson.model.Executor.run(Executor.java:428)

Thanks!

Hopefully sorts out java.lang.IllegalArgumentException
@CLAassistant
Copy link

CLAassistant commented Jun 24, 2020

CLA assistant check
All committers have signed the CLA.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 89.949% when pulling 6759bee on kornrunner:master into e77a51b on uber:master.

@aandrius
Copy link

This issue was introduced in 2.241 jenkinsci/jenkins#4766 . Also this method is deprecated and new overloaded version is introduced

void perform(@NonNull Run<?, ?> run, @NonNull FilePath workspace, **@NonNull EnvVars env,** @NonNull Launcher launcher, @NonNull TaskListener listener)

@jglick
Copy link

jglick commented Jul 7, 2020

Better wait for a core fix.

@artms
Copy link
Contributor

artms commented Sep 21, 2020

Tested on our ancient Jenkins - everything seems to work

@jglick
Copy link

jglick commented Sep 21, 2020

Was already fixed in jenkinsci/jenkins#4833. This can be closed.

@kornrunner
Copy link
Author

Thank you.

@kornrunner kornrunner closed this Sep 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants