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

Gradle automatically install failed.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • gradle-plugin
    • None
    • java.home /usr/lib/jvm/java-11-openjdk-11.0.11.0.9-1.el7_9.x86_64
      java.runtime.version 11.0.11+9-LTS
      os.arch amd64
      os.name Linux
      os.version 3.10.0-1160.31.1.el7.x86_64
      CentOS Linux release 7.9.2009 (Core)

      I am using a free-style project to build an Android project and set up Gradle via the `Gradle plugin` in Configuration.

      But automatically install gralde always failed with fellow log:

      FATAL: Failed to install https://services.gradle.org/distributions/gradle-4.4-rc-6-bin.zip to /var/lib/jenkins/tools/hudson.plugins.gradle.GradleInstallation/4.4
      java.net.SocketException: Connection reset
      at java.base/java.net.SocketInputStream.read(SocketInputStream.java:186)
      at java.base/java.net.SocketInputStream.read(SocketInputStream.java:140)
      at java.base/sun.security.ssl.SSLSocketInputRecord.read(SSLSocketInputRecord.java:478)
      at java.base/sun.security.ssl.SSLSocketInputRecord.readHeader(SSLSocketInputRecord.java:472)
      at java.base/sun.security.ssl.SSLSocketInputRecord.decode(SSLSocketInputRecord.java:160)
      at java.base/sun.security.ssl.SSLTransport.decode(SSLTransport.java:110)
      Also: java.net.SocketException: Broken pipe (Write failed)
      at java.base/java.net.SocketOutputStream.socketWrite0(Native Method)
      at java.base/java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:110)
      at java.base/java.net.SocketOutputStream.write(SocketOutputStream.java:150)
      at java.base/sun.security.ssl.SSLSocketOutputRecord.encodeAlert(SSLSocketOutputRecord.java:81)
      at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:380)
      Caused: javax.net.ssl.SSLException: Connection reset
      at java.base/sun.security.ssl.Alert.createSSLException(Alert.java:127)
      at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:349)
      at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:292)
      at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:287)
      at java.base/sun.security.ssl.SSLTransport.decode(SSLTransport.java:144)
      at java.base/sun.security.ssl.SSLSocketImpl.decode(SSLSocketImpl.java:1418)
      at java.base/sun.security.ssl.SSLSocketImpl.readHandshakeRecord(SSLSocketImpl.java:1324)
      at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:440)
      at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:411)
      at java.base/sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:567)
      at java.base/sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:197)
      at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:168)
      at hudson.FilePath.installIfNecessaryFrom(FilePath.java:961)
      Caused: java.io.IOException: Failed to install https://services.gradle.org/distributions/gradle-4.4-rc-6-bin.zip to /var/lib/jenkins/tools/hudson.plugins.gradle.GradleInstallation/4.4
      at hudson.FilePath.installIfNecessaryFrom(FilePath.java:1035)
      at hudson.FilePath.installIfNecessaryFrom(FilePath.java:948)
      at hudson.tools.DownloadFromUrlInstaller.performInstallation(DownloadFromUrlInstaller.java:78)
      at hudson.tools.InstallerTranslator.getToolHome(InstallerTranslator.java:70)
      at hudson.tools.ToolLocationNodeProperty.getToolHome(ToolLocationNodeProperty.java:109)
      at hudson.tools.ToolInstallation.translateFor(ToolInstallation.java:222)
      at hudson.plugins.gradle.GradleInstallation.forNode(GradleInstallation.java:96)
      at hudson.plugins.gradle.Gradle.perform(Gradle.java:251)
      at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:21)
      at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:808)
      at hudson.model.Build$BuildExecution.build(Build.java:199)
      at hudson.model.Build$BuildExecution.doRun(Build.java:164)
      at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:516)
      at hudson.model.Run.execute(Run.java:1889)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      at hudson.model.ResourceController.execute(ResourceController.java:100)
      at hudson.model.Executor.run(Executor.java:433)
      Archiving artifacts
      Finished: FAILURE

      The network of os was available and can use `wget` to download Gradle manually. I also tried reinstall JDK but not thing help.
      I've been digging out for a long time and found nothing.
      Do you have any suggestions? If more information is needed, I will post it.

            wolfs Stefan Wolf
            rosuh rosu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: