Uploaded image for project: 'Nuxeo ECM Build/Test Environment'
  1. Nuxeo ECM Build/Test Environment
  2. NXBT-3008

Jenkins X builds failing at Checksum validation when scanning Maven projects

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Jenkins X

      Description

      As seen in http://jenkins.platform.34.74.59.50.nip.io/job/nuxeo/job/nuxeo/view/change-requests/job/PR-3334/52/console, we get:

      14:29:55  [WARNING] Checksum validation failed, expected 5c09b31861eb6212fb603cbd8ba88ba6153def33 but is da39a3ee5e6b4b0d3255bfef95601890afd80709 from nexus for http://nexus/repository/maven-group/org/nuxeo/build/ant-assembly-maven-plugin/2.1.2/ant-assembly-maven-plugin-2.1.2.pom
      14:29:55  [WARNING] Could not validate integrity of download from http://nexus/repository/maven-group/org/nuxeo/build/ant-assembly-maven-plugin/2.1.2/ant-assembly-maven-plugin-2.1.2.pom: Checksum validation failed, expected 5c09b31861eb6212fb603cbd8ba88ba6153def33 but is da39a3ee5e6b4b0d3255bfef95601890afd80709
      14:29:55  [WARNING] Checksum validation failed, expected 5c09b31861eb6212fb603cbd8ba88ba6153def33 but is da39a3ee5e6b4b0d3255bfef95601890afd80709 from nexus for http://nexus/repository/maven-group/org/nuxeo/build/ant-assembly-maven-plugin/2.1.2/ant-assembly-maven-plugin-2.1.2.pom
      14:29:55  [WARNING] The POM for org.nuxeo.build:ant-assembly-maven-plugin:jar:2.1.2 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
      14:30:05  [WARNING] Checksum validation failed, expected bb4df35ec675d6a39eaff7fdfca6c9576a362df0 but is da39a3ee5e6b4b0d3255bfef95601890afd80709 from nexus for http://nexus/repository/maven-group/org/nuxeo/build/ant-assembly-maven-plugin/2.1.2/ant-assembly-maven-plugin-2.1.2.jar
      14:30:15  [WARNING] Could not validate integrity of download from http://nexus/repository/maven-group/org/nuxeo/build/ant-assembly-maven-plugin/2.1.2/ant-assembly-maven-plugin-2.1.2.jar: Checksum validation failed, expected bb4df35ec675d6a39eaff7fdfca6c9576a362df0 but is da39a3ee5e6b4b0d3255bfef95601890afd80709
      14:30:15  [WARNING] Checksum validation failed, expected bb4df35ec675d6a39eaff7fdfca6c9576a362df0 but is da39a3ee5e6b4b0d3255bfef95601890afd80709 from nexus for http://nexus/repository/maven-group/org/nuxeo/build/ant-assembly-maven-plugin/2.1.2/ant-assembly-maven-plugin-2.1.2.jar
      14:30:15  [ERROR] Invalid extension descriptor for org.nuxeo.build:ant-assembly-maven-plugin:2.1.2: zip file is empty
      14:30:21  [WARNING] The project org.nuxeo.ecm.core:nuxeo-opencmis-impl:jar:11.1-SNAPSHOT uses prerequisites which is only intended for maven-plugin projects but not for non maven-plugin projects. For such purposes you should use the maven-enforcer-plugin. See https://maven.apache.org/enforcer/enforcer-rules/requireMavenVersion.html
      14:30:21  [WARNING] The project org.nuxeo.ecm.core:nuxeo-opencmis-bindings:jar:11.1-SNAPSHOT uses prerequisites which is only intended for maven-plugin projects but not for non maven-plugin projects. For such purposes you should use the maven-enforcer-plugin. See https://maven.apache.org/enforcer/enforcer-rules/requireMavenVersion.html
      

      then later on:

      14:30:21  [WARNING] Checksum validation failed, expected aa2f722e76341e98a19d14069488061b02452fb8 but is da39a3ee5e6b4b0d3255bfef95601890afd80709 from nexus for http://nexus/repository/maven-group/net/java/maven-incremental-build/incremental-build-plugin/1.6-NX1/incremental-build-plugin-1.6-NX1.pom
      14:30:21  [WARNING] Could not validate integrity of download from http://nexus/repository/maven-group/net/java/maven-incremental-build/incremental-build-plugin/1.6-NX1/incremental-build-plugin-1.6-NX1.pom: Checksum validation failed, expected aa2f722e76341e98a19d14069488061b02452fb8 but is da39a3ee5e6b4b0d3255bfef95601890afd80709
      14:30:21  [WARNING] Checksum validation failed, expected aa2f722e76341e98a19d14069488061b02452fb8 but is da39a3ee5e6b4b0d3255bfef95601890afd80709 from nexus for http://nexus/repository/maven-group/net/java/maven-incremental-build/incremental-build-plugin/1.6-NX1/incremental-build-plugin-1.6-NX1.pom
      14:30:21  [WARNING] The POM for net.java.maven-incremental-build:incremental-build-plugin:jar:1.6-NX1 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
      

      which is finally causing the build to fail with:

      14:30:21  [ERROR] Plugin net.java.maven-incremental-build:incremental-build-plugin:1.6-NX1 or one of its dependencies could not be resolved: Failed to read artifact descriptor for net.java.maven-incremental-build:incremental-build-plugin:jar:1.6-NX1: 1 problem was encountered while building the effective model
      14:30:21  [ERROR] [FATAL] Non-readable POM /root/.mvnrepository/net/java/maven-incremental-build/incremental-build-plugin/1.6-NX1/incremental-build-plugin-1.6-NX1.pom: input contained no data @
      

      This is quickly reproducible, just rebuild the job, it happens very fast.

      Looking at the Nexus logs, we can see:

      Invalid content: GET /org/nuxeo/build/ant-assembly-maven-plugin/2.1.2/ant-assembly-maven-plugin-2.1.2.pom.sha1: org.sonatype.nexus.repository.InvalidContentException: Not a Maven2 digest: org/nuxeo/build/ant-assembly-maven-plugin/2.1.2/ant-assembly-maven-plugin-2.1.2.pom.sha1
      

      This is strange since we can see that http://nexus.platform.34.74.59.50.nip.io/repository/public/org/nuxeo/build/ant-assembly-maven-plugin/2.1.2/ant-assembly-maven-plugin-2.1.2.pom.sha1
      ==
      https://maven-us.nuxeo.org/nexus/content/repositories/public/org/nuxeo/build/ant-assembly-maven-plugin/2.1.2/ant-assembly-maven-plugin-2.1.2.pom.sha1
      == 5c09b31861eb6212fb603cbd8ba88ba6153def33
      == the expected sha1

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 hour
                  1h