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

Deploying Build Info to Artifactory 4.0.2

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      We are currently running Jenkins 1.596.2 on Linux and have recently upgraded Artifactory to 4.0.2 on our Windows test environment. We make use of the Artifactory plugin (2.3.0) to deploy artifacts and the build info to Artifactory.

      As part of our testing we have found that if we have a build running 1.6 JDK it fails during the downloading and deploying of Artifacts to Artifactory with the following error.

      pool-2-thread-1, WRITE: TLSv1 Handshake, length = 75
      pool-2-thread-1, WRITE: SSLv2 client hello message, length = 101
      pool-2-thread-1, READ: Unknown-3.3 Alert, length = 2
      pool-2-thread-1, RECV TLSv1 ALERT: fatal, handshake_failure
      pool-2-thread-1, called closeSocket()
      pool-2-thread-1, handling exception: javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure
      pool-2-thread-1, IOException in getSession(): javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure

      It seems this issue could be caused by the new version of Artifactory (possibly Tomcat 4,0?) not accepting connections via SSLv2? There doesn't seem to be much information about it though?

      I've got round one part of the issue to an extent by specifying '-Dhttps.protocols=TLSv1' and this now means maven is able to pull down requests but it still fails on the 'build info' step with 'peer not authenticated errors'.

      [ERROR] Internal error: java.lang.RuntimeException: org.jfrog.build.extractor.maven.BuildInfoRecorder.sessionEnded() listener has failed: Error occurred while publishing artifact to Artifactory: /data/jenkins/jobs/application-develop/workspace/target/application-develop-SNAPSHOT-javadoc.jar.
      [ERROR] Skipping deployment of remaining artifacts (if any) and build info. peer not authenticated
      [ERROR] -> [Help 1]

      I've checked the cacerts file and all looks to be correct and the whole process was working before the upgrade. I've upgraded the Artifactory plugin to the latest version but still get errors.

      I don't want to upgrade Jenkins on our test environment without knowing that doing so might fix this issue.

      Many Thanks.

        Attachments

          Activity

          Hide
          louisb Louis Bergelson added a comment -

          CM Team I'm having a very similar issue with the handshake failing. I don't understand why, but changing from using OpenJDK to Oracle JDK fixed the problem for me.

          Show
          louisb Louis Bergelson added a comment - CM Team I'm having a very similar issue with the handshake failing. I don't understand why, but changing from using OpenJDK to Oracle JDK fixed the problem for me.

            People

            Assignee:
            eyalbe Eyal Ben Moshe
            Reporter:
            cmteam CM Team
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: