I have an Ant part which builds fine locally and in an lxd container but fails on the snapcraft.io build servers.
I believe I’ve isolated the problem to ant trying to download some zip files directly off the web.
<target name="trydownload" if="trydownload.run" depends="trydownload.check">
<!-- Downloads a file if not yet downloaded and the source URL is available -->
<get src="${sourcefile}" httpusecaches="${trydownload.httpusecaches}" dest="${destfile}" />
</target>
The <get>
tag is attempting to download a file from:
http://www.apache.org/dyn/closer.lua?action=download&filename=
Investigation of the problem suggests that the problem is that ant may be ignoring the snapcraft.io proxies and is therefore being denied access to the outside world.
It looks like I can pass the proxy settings to ant but the problem is I can’t find any documentation on what to set the proxies to?
Can someone provide me with the proxy settings or maybe an environment variable that is set to point at the proxies.
Thanks,
Brett