Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[JENKINS-16815] Specify ID and version in UpdateSite.updateDirectly
  • Loading branch information
recampbell committed Feb 15, 2013
1 parent 6270556 commit 7fdd27f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/src/main/java/hudson/model/UpdateSite.java
Expand Up @@ -53,6 +53,7 @@
import java.net.URI;
import java.net.URL;
import java.net.URLConnection;
import java.net.URLEncoder;
import java.security.GeneralSecurityException;
import java.util.ArrayList;
import java.util.Collections;
Expand Down Expand Up @@ -162,7 +163,8 @@ public Future<FormValidation> updateDirectly(final boolean signatureCheck) {
return Jenkins.getInstance().getUpdateCenter().updateService.submit(new Callable<FormValidation>() {

public FormValidation call() throws Exception {
URL src = new URL(getUrl());
URL src = new URL(getUrl() + "?id=" + URLEncoder.encode(getId(),"UTF-8")
+ "&version="+URLEncoder.encode(Jenkins.VERSION, "UTF-8"));
URLConnection conn = ProxyConfiguration.open(src);
InputStream is = conn.getInputStream();
try {
Expand Down

0 comments on commit 7fdd27f

Please sign in to comment.