diff --git a/src/main/java/hudson/plugins/git/GitPublisher.java b/src/main/java/hudson/plugins/git/GitPublisher.java index bbb8332dff..c0d3f6ea9b 100644 --- a/src/main/java/hudson/plugins/git/GitPublisher.java +++ b/src/main/java/hudson/plugins/git/GitPublisher.java @@ -332,15 +332,15 @@ else if (!tagExists) { if (isPushNotes()) { for (final NoteToPush b : notesToPush) { - if (b.getnoteMsg() == null) + if (b.getNoteMsg() == null) throw new AbortException("No note to push defined"); b.setEmptyTargetRepoToOrigin(); - String noteMsgTmp = environment.expand(b.getnoteMsg()); + String noteMsgTmp = environment.expand(b.getNoteMsg()); final String noteMsg = replaceAdditionalEnvironmentalVariables(noteMsgTmp, build); - final String noteNamespace = environment.expand(b.getnoteNamespace()); + final String noteNamespace = environment.expand(b.getNoteNamespace()); final String targetRepo = environment.expand(b.getTargetRepoName()); - final boolean noteReplace = b.getnoteReplace(); + final boolean noteReplace = b.getNoteReplace(); try { // Lookup repository with unexpanded name as GitSCM stores them unexpanded @@ -579,18 +579,33 @@ public static final class NoteToPush extends PushConfig { private String noteNamespace; private boolean noteReplace; + @Deprecated public String getnoteMsg() { return noteMsg; } + @Deprecated public String getnoteNamespace() { return noteNamespace; } + @Deprecated public boolean getnoteReplace() { return noteReplace; } + public String getNoteMsg() { + return noteMsg; + } + + public String getNoteNamespace() { + return noteNamespace; + } + + public boolean getNoteReplace() { + return noteReplace; + } + @DataBoundConstructor public NoteToPush( String targetRepoName, String noteMsg, String noteNamespace, boolean noteReplace ) { super(targetRepoName);