Skip to content

Commit

Permalink
Use correct getters for note fields
Browse files Browse the repository at this point in the history
  • Loading branch information
sboardwell committed Jul 15, 2024
1 parent 9f17f9a commit f97e456
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/main/java/hudson/plugins/git/GitPublisher.java
Original file line number Diff line number Diff line change
Expand Up @@ -332,15 +332,15 @@ else if (!tagExists) {

if (isPushNotes()) {
for (final NoteToPush b : notesToPush) {
if (b.getnoteMsg() == null)
if (b.getNoteMsg() == null)

Check warning on line 335 in src/main/java/hudson/plugins/git/GitPublisher.java

View check run for this annotation

ci.jenkins.io / Code Coverage

Partially covered line

Line 335 is only partially covered, one branch is missing
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
Expand Down Expand Up @@ -579,15 +579,15 @@ public static final class NoteToPush extends PushConfig {
private String noteNamespace;
private boolean noteReplace;

public String getnoteMsg() {
public String getNoteMsg() {
return noteMsg;
}

public String getnoteNamespace() {
public String getNoteNamespace() {
return noteNamespace;
}

public boolean getnoteReplace() {
public boolean getNoteReplace() {
return noteReplace;
}

Expand Down

0 comments on commit f97e456

Please sign in to comment.