Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #710 from recampbell/update-site-parameters
[JENKINS-16815] Specify ID and version in UpdateSite.updateDirectly
  • Loading branch information
ndeloof committed Feb 15, 2013
2 parents 6270556 + 7fdd27f commit cfd629d
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

1 comment on commit cfd629d

@jglick
Copy link
Member

@jglick jglick commented on cfd629d Feb 18, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Neglected to add a changelog.html entry.

Please sign in to comment.