CI Cannot Install Ant
Summary
Since June 5th 2025 all builds on Jenkins started failing, unable to download and install Ant.
Steps to reproduce
Run the build:
- https://ci.eclipse.org/glassfish/job/glassfish_build-and-test-using-jenkinsfile/job/PR-25540/ (tools) - here I tried to use different way, at least it printed something, see below.
- https://ci.eclipse.org/glassfish/job/glassfish_build-and-test-using-jenkinsfile/job/PR-25538/ (withAnt)
What is the current bug behavior?
The original option fails without any log, the PR-25540 fails with a stacktrace:
hudson.remoting.ProxyException: java.net.SocketTimeoutException: Connect timed out
at java.base/sun.nio.ch.NioSocketImpl.timedFinishConnect(NioSocketImpl.java:558)
at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:609)
at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327)
at java.base/java.net.Socket.connect(Socket.java:633)
at java.base/sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:304)
at java.base/sun.net.NetworkClient.doConnect(NetworkClient.java:178)
at java.base/sun.net.www.http.HttpClient.openServer(HttpClient.java:533)
at java.base/sun.net.www.http.HttpClient.openServer(HttpClient.java:638)
at java.base/sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:266)
at java.base/sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:380)
at java.base/sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:193)
at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1257)
at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1143)
at java.base/sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:179)
at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:142)
at hudson.FilePath.installIfNecessaryFrom(FilePath.java:973)
Also: org.jenkinsci.plugins.workflow.actions.ErrorAction$ErrorId: 70ba6de1-ee98-4e6c-b37c-e0322cb61d6c
Caused: hudson.remoting.ProxyException: java.io.IOException: Failed to install https://archive.apache.org/dist/ant/binaries/apache-ant-1.10.15-bin.zip to /home/jenkins/agent/tools/hudson.tasks.Ant_AntInstallation/apache-ant-latest
at hudson.FilePath.installIfNecessaryFrom(FilePath.java:1058)
at hudson.FilePath.installIfNecessaryFrom(FilePath.java:954)
at hudson.tools.DownloadFromUrlInstaller.performInstallation(DownloadFromUrlInstaller.java:77)
at hudson.tools.InstallerTranslator.getToolHome(InstallerTranslator.java:67)
at hudson.tools.ToolLocationNodeProperty.getToolHome(ToolLocationNodeProperty.java:109)
at hudson.tools.ToolInstallation.translateFor(ToolInstallation.java:221)
at PluginClassLoader for ant//hudson.tasks.Ant$AntInstallation.forNode(Ant.java:440)
at PluginClassLoader for ant//hudson.tasks.Ant$AntInstallation.forNode(Ant.java:352)
at PluginClassLoader for workflow-basic-steps//org.jenkinsci.plugins.workflow.steps.ToolStep$Execution.run(ToolStep.java:157)
at PluginClassLoader for workflow-basic-steps//org.jenkinsci.plugins.workflow.steps.ToolStep$Execution.run(ToolStep.java:138)
at PluginClassLoader for workflow-step-api//org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:49)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:853)
It seems to me that the original withAnt
usage is even completely ignored - the whole withAnt
block is missing in the output. Could it be a Jenkins bug?:
What is the expected correct behavior?
Install Ant and run our old tests based on Ant.
Priority
-
Urgent -
High -
Medium -
Low
Severity
-
Blocker -
Major -
Normal -
Low
Impact
We are unable to build and merge anything running these tests.
Edited by David Matějček