mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-16 13:32:24 +00:00
Merge pull request #710 from recampbell/update-site-parameters
[JENKINS-16815] Specify ID and version in UpdateSite.updateDirectly
This commit is contained in:
commit
cfd629d866
1 file changed
+3
-1
@@ -53,6 +53,7 @@ import java.io.InputStream;
|
||||
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;
|
||||
@@ -162,7 +163,8 @@ public class UpdateSite {
|
||||
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 {
|
||||
|
||||
Reference in new issue
Block a user