-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Use correct getters for note fields #1607
Conversation
@@ -579,15 +579,15 @@ public static final class NoteToPush extends PushConfig { | |||
private String noteNamespace; | |||
private boolean noteReplace; | |||
|
|||
public String getnoteMsg() { | |||
public String getNoteMsg() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately for binary backwards compatibility the old method signatures needs to be kept and @Deprecated
.
Also shouldn't there be needed changes in the config.jelly for the signature change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @rsandell, will add the old method signatures back. And good catch with the jelly sections.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reinstated the old methods.
I checked the config.jelly
and the fields are referenced so it seems jelly does not need the official getters, just the constructor:
git-plugin/src/main/resources/hudson/plugins/git/GitPublisher/config.jelly
Lines 75 to 89 in 9f17f9a
<f:entry title="${%Note to push}" field="noteMsg" > | |
<f:textarea checkUrl="descriptorByName/GitPublisher/checkNoteMsg" checkDependsOn="" /> | |
</f:entry> | |
<f:entry field="targetRepoName" title="${%Target remote name}"> | |
<f:textbox/> | |
</f:entry> | |
<f:entry title="${%Note's namespace}" field="noteNamespace"> | |
<f:textbox/> | |
</f:entry> | |
<f:entry field="noteReplace" > | |
<f:checkbox title="${%Abort if note exists}" /> | |
</f:entry> |
Use correct getters on NoteToPush
This PR corrects the getters used on the NoteToPush internal class of the GitPublisher class.
Checklist
Types of changes
What types of changes does your code introduce?
Further comments
n/a