← Back to issue list

ant builds fail behind a proxy

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1682534
Type
issue
State
closed
Author
~cjwatson
Labels
—
Created
Updated
Closed

Current evaluation

Fixed by merged snapcraft PR #1490 (commit 4f1b5316e), which added authenticated-proxy support for Ant and Gradle builds after PR #1256 added basic proxy handling.

Resolution: closed resolved

Reason: PR canonical/snapcraft#1490 was merged and commit 4f1b5316e extended the Ant and Gradle plugins to honor authenticated proxy settings, resolving Launchpad proxy build failures.

Evaluated by: mr-cal-bot

No scores available.

Issue body

Builds that use the ant plugin fail when network access is required to go via a proxy, as is the case in Launchpad. Launchpad builds currently use an authenticated proxy, which is (as far as I can tell) prohibitively difficult to support in the ant plugin; Java makes this extremely difficult. However, I have work in flight to convert this to an unauthenticated proxy from snapcraft's point of view (https://code.launchpad.net/~cjwatson/launchpad-buildd/local-snap-proxy/+merge/322545), at which point it's not too difficult to handle here.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Fixed by merged snapcraft PR #1490 (commit 4f1b5316e), which added authenticated-proxy support for Ant and Gradle builds after PR #1256 added basic proxy handling.
stealth/space-bunny-alpha — closed resolved Ant (and Gradle) plugin proxy support added: PR #1256 (commit 3f5c735f0) honoured unauthenticated proxy env vars, then PR #1490 (commit 4f1b5316e) extended it to authenticated proxies, closing the Launchpad proxy build failures.
stealth/space-bunny-alpha — closed resolved Fixed by merged PR canonical/snapcraft#1256 (commit 3f5c735f0), which made the Ant plugin honor proxy configuration and resolved LP bug #1682534.
qwen/qwen3.6-35b-a3b — — Abandoned. Ant plugin support for Launchpad's authenticated proxy remains unimplemented due to Java limitations. Resolution depends on an external switch to an unauthenticated proxy.
qwen/qwen3.6-35b-a3b — — Closed as abandoned pending an external proxy change. The author plans to switch Launchpad to an unauthenticated proxy, which will resolve the ant build failures.

Update history

Date Change
created

Related work

  • Likely Fixed By: canonical/snapcraft#1490 (confidence 100%)

    Merged PR adding authenticated-proxy support for the Ant and Gradle plugins.

  • Related To: snapcraft#1256 (confidence 98%)

    Earlier PR added initial support for unauthenticated proxy environment variables.

Related issues

Issue Project State Summary Similarity
#1490 ant plugin, gradle plugin: add support for authenticated proxies snapcraft merged Merged PR #1490 (commit 4f1b5316e), adding authenticated-proxy support to the Ant and Gradle plugins and resolving snapcraft#1485 and LP #1682534.
73%