Skip to content

Commit

Permalink
JENKINS-26556 fixed by adding additional signature on java side
Browse files Browse the repository at this point in the history
  • Loading branch information
ghenzler committed Jan 22, 2015
1 parent cfc754e commit 67521b9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Expand Up @@ -4,7 +4,7 @@
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>plugin</artifactId>
<!-- which version of Jenkins is this plugin built against? -->
<version>1.526</version>
<version>1.580.1</version>
</parent>

<groupId>javagh.jenkins</groupId>
Expand Down
Expand Up @@ -34,11 +34,16 @@ public String getJavascript() {
public String getContainerDivId() {
return containerDivId;
}


@JavaScriptMethod
public HttpResponse ajaxViaJenkins(String urlStr) {
return new ServerSideHttpCall(urlStr, null, null);
}

@JavaScriptMethod
public HttpResponse ajaxViaJenkins(String urlStr, String user, String pw) {
return new ServerSideHttpCall(urlStr, user, pw);
}
}

@Extension
public static class GenericJsPortletDescriptor extends Descriptor<DashboardPortlet> {
Expand Down

0 comments on commit 67521b9

Please sign in to comment.