-
Notifications
You must be signed in to change notification settings - Fork 396
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
[Declarative input step] groovy.lang.MissingMethodException: No signature of method: deploymentPipeline.input() #366
Comments
@nre-ableton, @stchar, |
I'm pretty sure that you need to provide a mock for the |
Thanks @nre-ableton! These simple mocks were good enough for our context:
|
Glad to hear that you got it working! Poking around the code a bit, I guess we could add these mocks to DeclarativePipelineTest. However, at least you have a workaround for now. |
@nre-ableton Agreed. The null callback may be overly simplistic for the generic case, but it works for us. |
Firstly, thanks for the efforts in creating and supporting JenkinsPipelineUnit!
Secondly, need some help...
We're using JenkinsPipelineUnit to test a declarative Jenkins library pipeline (complete pipeline as a library function).
In the first iteration, we want to test whether the input step was invoked or not, based on branch when clauses i.e.
prd
-> input step is invoked.dev
-> input step is not invoked.After introducing a new stage with a declarative
input
step, we see the error:The library pipeline structure looks like this:
I'm afraid we weren't able to find any examples in the docs or issue history.
Q: How should we handle declarative input steps in a test case?
Complete stacktrace:
The text was updated successfully, but these errors were encountered: