[JIRA] (JENKINS-58248) CLI command install-plugin does not take Proxy configuration into account

2019-06-27 Thread aburdajew...@cloudbees.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Allan BURDAJEWICZ updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-58248  
 
 
  CLI command install-plugin does not take Proxy configuration into account   
 

  
 
 
 
 

 
Change By: 
 Allan BURDAJEWICZ  
 

  
 
 
 
 

 
 When trying to install a plugin with the Jenkins CLI and providing a URL as argument, the proxy configuration of the Jenkins master does not seem to be taken into account.For example if I use the following command: > {code}  java -jar jenkins-cli.jar -logger FINE -s https://my.jenkinsexample.com -noCertificateCheck -auth myUser:myPassword install-plugin https://jenkins-updates.cloudbees.com/download/plugins/cloudbees-aws-cli/1.5.9/cloudbees-aws-cli.hpi {code}   But requires to be behind an HTTP proxy to be able to download that plugin, it fails with: > {code}  ERROR: Unexpected exception occurred while performing install-plugin command.  >  java.net.ConnectException: Connection timed out  {code}   Even if I have a proxy configured under **Manage Jenkins > Manage Plugins > Advanced**.h3. Evidence* https://github.com/jenkinsci/jenkins/blob/jenkins-2.176.1/core/src/main/java/hudson/cli/InstallPluginCommand.java#L100-L122* https://github.com/jenkinsci/jenkins/blob/jenkins-2.176.1/core/src/main/java/hudson/FilePath.java#L965-L976h3. WorkaroundOnly workaround seem to be to set the proxy via system properties on the master:{code}-Dhttps.proxyHost=myproxy.server.com-Dhttps.proxyPort=8080-Dhttps.proxyUser=myUser-Dhttp.proxyPassword=myPassword{code}  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
  

[JIRA] (JENKINS-58248) CLI command install-plugin does not take Proxy configuration into account

2019-06-27 Thread aburdajew...@cloudbees.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Allan BURDAJEWICZ updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-58248  
 
 
  CLI command install-plugin does not take Proxy configuration into account   
 

  
 
 
 
 

 
Change By: 
 Allan BURDAJEWICZ  
 
 
Issue Type: 
 Improvement Bug  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.200311.156169808.11167.1561698780080%40Atlassian.JIRA.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-58248) CLI command install-plugin does not take Proxy configuration into account

2019-06-27 Thread aburdajew...@cloudbees.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Allan BURDAJEWICZ created an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-58248  
 
 
  CLI command install-plugin does not take Proxy configuration into account   
 

  
 
 
 
 

 
Issue Type: 
  Improvement  
 
 
Assignee: 
 Unassigned  
 
 
Components: 
 cli, core  
 
 
Created: 
 2019-06-28 05:01  
 
 
Priority: 
  Minor  
 
 
Reporter: 
 Allan BURDAJEWICZ  
 

  
 
 
 
 

 
 When trying to install a plugin with the Jenkins CLI and providing a URL as argument, the proxy configuration of the Jenkins master does not seem to be taken into account. For example if I use the following command: > java -jar jenkins-cli.jar -logger FINE -s https://my.jenkinsexample.com -noCertificateCheck -auth myUser:myPassword install-plugin https://jenkins-updates.cloudbees.com/download/plugins/cloudbees-aws-cli/1.5.9/cloudbees-aws-cli.hpi But requires to be behind an HTTP proxy to be able to download that plugin, it fails with: > ERROR: Unexpected exception occurred while performing install-plugin command.  > java.net.ConnectException: Connection timed out  Even if I have a proxy configured under *Manage Jenkins > Manage Plugins > Advanced*. Evidence 
 
https://github.com/jenkinsci/jenkins/blob/jenkins-2.176.1/core/src/main/java/hudson/cli/InstallPluginCommand.java#L100-L122 
https://github.com/jenkinsci/jenkins/blob/jenkins-2.176.1/core/src/main/java/hudson/FilePath.java#L965-L976 
 Workaround Only workaround seem to be to set the proxy via system properties on the master: 

 

-Dhttps.proxyHost=myproxy.server.com
-Dhttps.proxyPort=8080
-Dhttps.proxyUser=myUser
-Dhttp.proxyPassword=myPassword