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

Ignores proxy settings when downloading ant

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • core
    • None
    • Single server Jenkins install on a network that uses a proxy to get to the internet. DNS does not resolve any external site. Only the proxy can do that.

      The information in proxy.xml is correct, and plugin update notification works.

      Manage Jenkins > Configure > Add Ant and configure a new ant.

      Add a job that is configured to use the ant above.

      Trigger a build on that job.

      Jenkins will attempt to download ant from archive.apache.org. It will fail because DNS cannot resolve archive.apache.org.

      Adding -Dhttp.proxyHost=<> -DhttpProxyPort=<> -Dhttp.nonProxyHost=<my domain> to JENKINS_JAVA_OPTIONS in /etc/sysconfig/jenkins (I used the RPM installer) allows ant to download. This is the workaround I have in place right now.

            Unassigned Unassigned
            steven Steve Nicolai
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: