Skip to content

Commit 9295b04

Browse files
Guy Veraghtertproski
Guy Veraghtert
authored andcommitted
Fix exception when using Pipeline Snippet Generator
The getter for credentialsId should be called getCredentialsId, not getcredentialsId. Not having the expected getter name causes an exception: java.lang.UnsupportedOperationException: no public field credentialsId (or getter method) found in class stashpullrequestbuilder.stashpullrequestbuilder.StashBuildTrigger at org.jenkinsci.plugins.structs.describable.DescribableParameter.getValue(DescribableParameter.java:161)
1 parent 1f1bec0 commit 9295b04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/stashpullrequestbuilder/stashpullrequestbuilder/StashBuildTrigger.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ public String getCron() {
137137
}
138138

139139
// Needed for Jelly Config
140-
public String getcredentialsId() {
140+
public String getCredentialsId() {
141141
return this.credentialsId;
142142
}
143143

0 commit comments

Comments
 (0)