StashBuildTrigger: Use correct getter names for config.jelly fields#112
StashBuildTrigger: Use correct getter names for config.jelly fields#112jakub-bochenski merged 1 commit intojenkinsci:masterfrom proski:getter-names
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