-
Notifications
You must be signed in to change notification settings - Fork 56
StashBuildTrigger: Use correct getter names for config.jelly fields #112
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
Conversation
The documentation you link to isn't very clear.
In this light I appreciate adding the Still -- I'm worried about job-dsl. Changing method names could cause problems with the autogenerated DSL API. |
FYI according to build |
We are safe with the getter/setter changes because we use |
We should move optional parameters to setters according to this document: |
I can send a patch for Jenkins to recognize
That's another reason we should move to individual setters for parameters with defaults. The generated DSL won't include default settings. |
I'm not asking for this, just wanted to explain why I think this change isn't as trivial as it might seem
Agree |
@guyv any comments? for some reason I can't add you as a reviewer |
Getter names for fields referenced in config.jelly should start with "get" followed by the capitalized property name. "is" is not supported.
@jakub-bochenski looks good to me |
Getter names for fields referenced in config.jelly should start with "get" followed by the capitalized property name. "is" is not supported.
That's an alternative to #72 and it has unit tests.
It's not a pipeline only issue and should not be blocked by any other PR. The current code is not following the rule recommended in the Jenkins Wiki.
https://wiki.jenkins.io/display/JENKINS/Basic+guide+to+Jelly+usage+in+Jenkins#BasicguidetoJellyusageinJenkins-Understandingtheitobject