File tree Expand file tree Collapse file tree
src/main/java/com/cloudbees/jenkins Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33 <parent >
44 <groupId >org.jenkins-ci.plugins</groupId >
55 <artifactId >plugin</artifactId >
6- <version >1.424 </version >
6+ <version >1.445 </version >
77 </parent >
88
99 <groupId >com.coravy.hudson.plugins.github</groupId >
Original file line number Diff line number Diff line change @@ -239,13 +239,13 @@ public List<Credential> getCredentials() {
239239 public boolean configure (StaplerRequest req , JSONObject json ) throws FormException {
240240 JSONObject hookMode = json .getJSONObject ("hookMode" );
241241 manageHook = "auto" .equals (hookMode .getString ("value" ));
242- JSONObject o = json .getJSONObject ("hookUrl" );
242+ JSONObject o = hookMode .getJSONObject ("hookUrl" );
243243 if (o !=null && !o .isNullObject ()) {
244244 hookUrl = o .getString ("url" );
245245 } else {
246246 hookUrl = null ;
247247 }
248- credentials = req .bindJSONToList (Credential .class ,json .get ("credentials" ));
248+ credentials = req .bindJSONToList (Credential .class ,hookMode .get ("credentials" ));
249249 save ();
250250 return true ;
251251 }
You can’t perform that action at this time.
0 commit comments