Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-28088

Support Using Proxy

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      The Jenkins CloudFormation Plugin should use the proxy configuration in Jenkins to connect to AWS. This is needed for installations that do not have direct access to the internet.

        Attachments

          Activity

          Hide
          admje14 Joshua Edwards added a comment -

          Hey, Matt -

          It looks like we had the same issue and solved it differently. I didn't see your JIRA due to the default filter going to "cloudformation-plugin" instead of "jenkins-cloudformation". Anyway, I looked over your solution, and it looks like we came up with basically the same thing. One caveat - does yours work in Hudson as well? I know that's probably not a primary concern since this is a Jenkins plugin, but my team uses it in Hudson, so I've tested my solution in both Hudson and Jenkins. Now that I've found this JIRA, I'm going to close out mine as a duplicate.

          Show
          admje14 Joshua Edwards added a comment - Hey, Matt - It looks like we had the same issue and solved it differently. I didn't see your JIRA due to the default filter going to "cloudformation-plugin" instead of "jenkins-cloudformation". Anyway, I looked over your solution, and it looks like we came up with basically the same thing. One caveat - does yours work in Hudson as well? I know that's probably not a primary concern since this is a Jenkins plugin, but my team uses it in Hudson, so I've tested my solution in both Hudson and Jenkins. Now that I've found this JIRA, I'm going to close out mine as a duplicate.
          Hide
          alex13rivera Alex Rivera added a comment - - edited

          Anyone has the fix for this I am having the same issue.

          Feb 12, 2016 1:24:54 PM com.amazonaws.http.AmazonHttpClient executeHelper
          INFO: Unable to execute HTTP request: connect timed out
          java.net.SocketTimeoutException: connect timed out
          at java.net.PlainSocketImpl.socketConnect(Native Method)
          at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
          at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
          at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
          at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
          at java.net.Socket.connect(Socket.java:579)
          at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:618)
          at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:524)
          at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:403)
          at com.amazonaws.http.conn.ssl.SdkTLSSocketFactory.connectSocket(SdkTLSSocketFactory.java:118)
          at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:177)
          at org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedClientConnectionImpl.java:304)
          at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:611)
          at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:446)
          at org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:863)
          at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)
          at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:57)
          at com.amazonaws.http.AmazonHttpClient.executeOneRequest(AmazonHttpClient.java:686)
          at com.amazonaws.http.AmazonHttpClient.executeHelper(AmazonHttpClient.java:461)
          at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:296)
          at com.amazonaws.services.cloudformation.AmazonCloudFormationClient.invoke(AmazonCloudFormationClient.java:1273)
          at com.amazonaws.services.cloudformation.AmazonCloudFormationClient.createStack(AmazonCloudFormationClient.java:631)
          at com.syncapse.jenkinsci.plugins.awscloudformationwrapper.CloudFormation.create(CloudFormation.java:203)
          at com.syncapse.jenkinsci.plugins.awscloudformationwrapper.CloudFormationBuildStep.perform(CloudFormationBuildStep.java:90)
          at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45)
          at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:782)
          at hudson.model.Build$BuildExecution.build(Build.java:205)
          at hudson.model.Build$BuildExecution.doRun(Build.java:162)
          at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)
          at hudson.model.Run.execute(Run.java:1738)
          at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
          at hudson.model.ResourceController.execute(ResourceController.java:98)
          at hudson.model.Executor.run(Executor.java:410)

          Show
          alex13rivera Alex Rivera added a comment - - edited Anyone has the fix for this I am having the same issue. Feb 12, 2016 1:24:54 PM com.amazonaws.http.AmazonHttpClient executeHelper INFO: Unable to execute HTTP request: connect timed out java.net.SocketTimeoutException: connect timed out at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339) at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200) at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) at java.net.Socket.connect(Socket.java:579) at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:618) at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:524) at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:403) at com.amazonaws.http.conn.ssl.SdkTLSSocketFactory.connectSocket(SdkTLSSocketFactory.java:118) at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:177) at org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedClientConnectionImpl.java:304) at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:611) at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:446) at org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:863) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:57) at com.amazonaws.http.AmazonHttpClient.executeOneRequest(AmazonHttpClient.java:686) at com.amazonaws.http.AmazonHttpClient.executeHelper(AmazonHttpClient.java:461) at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:296) at com.amazonaws.services.cloudformation.AmazonCloudFormationClient.invoke(AmazonCloudFormationClient.java:1273) at com.amazonaws.services.cloudformation.AmazonCloudFormationClient.createStack(AmazonCloudFormationClient.java:631) at com.syncapse.jenkinsci.plugins.awscloudformationwrapper.CloudFormation.create(CloudFormation.java:203) at com.syncapse.jenkinsci.plugins.awscloudformationwrapper.CloudFormationBuildStep.perform(CloudFormationBuildStep.java:90) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:782) at hudson.model.Build$BuildExecution.build(Build.java:205) at hudson.model.Build$BuildExecution.doRun(Build.java:162) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534) at hudson.model.Run.execute(Run.java:1738) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410)
          Hide
          admje14 Joshua Edwards added a comment -

          Hey, Alex - the attached Patch should fix the issue. I'm still waiting (and hoping) for it to get integrated into an upcoming release.

          Show
          admje14 Joshua Edwards added a comment - Hey, Alex - the attached Patch should fix the issue. I'm still waiting (and hoping) for it to get integrated into an upcoming release.
          Hide
          alex13rivera Alex Rivera added a comment - - edited

          Hi Joshua ... thanks for the quick help. I did the install via war file in tomcat and not sure how to apply this patch. Can you please point to the correct location and process on installing this patch?

          Show
          alex13rivera Alex Rivera added a comment - - edited Hi Joshua ... thanks for the quick help. I did the install via war file in tomcat and not sure how to apply this patch. Can you please point to the correct location and process on installing this patch?
          Hide
          admje14 Joshua Edwards added a comment -

          Ah. In order to use the patch, you will have to download the code. From there, the patch is a diff file for you to apply, and then build the code. Sorry that it's not pre-built. (That's why I'd like it to be in the next release - so it's much easier to use.)

          Show
          admje14 Joshua Edwards added a comment - Ah. In order to use the patch, you will have to download the code. From there, the patch is a diff file for you to apply, and then build the code. Sorry that it's not pre-built. (That's why I'd like it to be in the next release - so it's much easier to use.)

            People

            Assignee:
            mattfirtioncoveros Matt Firtion
            Reporter:
            mattfirtioncoveros Matt Firtion
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated: