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

Artifacts are not fingerprinted

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Reproduction:

      • fresh jenkins install via docker
      • Install/configure with bare minimum to use v2.0 of this plugin
      • Create simple pipeline job to build this plugin

      See attached screen shot for results.  Jenkins does not recognize the fingerprint of the artifacts.

      Pipeline script is as follows:

      node() {
        git 'git@github.com:my-fork/pipeline-maven-plugin.git'
        withMaven(maven: 'M3') {
          sh "mvn clean install"
        }
      }

        Attachments

          Activity

          Hide
          cleclerc Cyrille Le Clerc added a comment - - edited

          The problem resides in the way we invoke the FingerprintAction

          https://github.com/jenkinsci/pipeline-maven-plugin/blob/pipeline-maven-parent-2.0/jenkins-plugin/src/main/java/org/jenkinsci/plugins/pipeline/maven/reporters/GeneratedArtifactsReporter.java#L104

          // FINGERPRINT GENERATED MAVEN ARTIFACT
          Fingerprinter.FingerprintAction fingerprintAction = run.getAction(Fingerprinter.FingerprintAction.class);
          if (fingerprintAction == null) {
              run.addAction(new Fingerprinter.FingerprintAction(run, artifactsToFingerPrint));
          } else {
              fingerprintAction.add(artifactsToFingerPrint);
          }
          
          Show
          cleclerc Cyrille Le Clerc added a comment - - edited The problem resides in the way we invoke the FingerprintAction https://github.com/jenkinsci/pipeline-maven-plugin/blob/pipeline-maven-parent-2.0/jenkins-plugin/src/main/java/org/jenkinsci/plugins/pipeline/maven/reporters/GeneratedArtifactsReporter.java#L104 // FINGERPRINT GENERATED MAVEN ARTIFACT Fingerprinter.FingerprintAction fingerprintAction = run.getAction(Fingerprinter.FingerprintAction.class); if (fingerprintAction == null ) { run.addAction( new Fingerprinter.FingerprintAction(run, artifactsToFingerPrint)); } else { fingerprintAction.add(artifactsToFingerPrint); }
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Cyrille Le Clerc
          Path:
          jenkins-plugin/src/main/java/org/jenkinsci/plugins/pipeline/maven/reporters/GeneratedArtifactsReporter.java
          http://jenkins-ci.org/commit/pipeline-maven-plugin/d3df1535910dbf5bb70043e139daad6554b2e4ab
          Log:
          JENKINS-43101 Fix “The fingerprint xyz did not match any of the recorded data.”, add the artifacts produced by the maven build to jenkins.fingerprintMap

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Cyrille Le Clerc Path: jenkins-plugin/src/main/java/org/jenkinsci/plugins/pipeline/maven/reporters/GeneratedArtifactsReporter.java http://jenkins-ci.org/commit/pipeline-maven-plugin/d3df1535910dbf5bb70043e139daad6554b2e4ab Log: JENKINS-43101 Fix “The fingerprint xyz did not match any of the recorded data.”, add the artifacts produced by the maven build to jenkins.fingerprintMap
          Show
          cleclerc Cyrille Le Clerc added a comment - See https://github.com/jenkinsci/pipeline-maven-plugin/pull/36
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Cyrille Le Clerc
          Path:
          jenkins-plugin/src/main/java/org/jenkinsci/plugins/pipeline/maven/reporters/GeneratedArtifactsReporter.java
          http://jenkins-ci.org/commit/pipeline-maven-plugin/e49725fd5394180d90b6977a99c2afc8e1a1f0cd
          Log:
          JENKINS-43101 Fix “The fingerprint xyz did not match any of the recorded data.”, add the artifacts produced by the maven build to jenkins.fingerprintMap

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Cyrille Le Clerc Path: jenkins-plugin/src/main/java/org/jenkinsci/plugins/pipeline/maven/reporters/GeneratedArtifactsReporter.java http://jenkins-ci.org/commit/pipeline-maven-plugin/e49725fd5394180d90b6977a99c2afc8e1a1f0cd Log: JENKINS-43101 Fix “The fingerprint xyz did not match any of the recorded data.”, add the artifacts produced by the maven build to jenkins.fingerprintMap
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Cyrille Le Clerc
          Path:
          jenkins-plugin/src/main/java/org/jenkinsci/plugins/pipeline/maven/reporters/GeneratedArtifactsReporter.java
          http://jenkins-ci.org/commit/pipeline-maven-plugin/d2c73586d6c6caf5dddeb62df2eec8c4d34478c7
          Log:
          Merge pull request #36 from jenkinsci/JENKINS-43101

          JENKINS-43101 Fix “The fingerprint xyz did not match any of the recorded data."

          Compare: https://github.com/jenkinsci/pipeline-maven-plugin/compare/01e8690c5db3...d2c73586d6c6

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Cyrille Le Clerc Path: jenkins-plugin/src/main/java/org/jenkinsci/plugins/pipeline/maven/reporters/GeneratedArtifactsReporter.java http://jenkins-ci.org/commit/pipeline-maven-plugin/d2c73586d6c6caf5dddeb62df2eec8c4d34478c7 Log: Merge pull request #36 from jenkinsci/ JENKINS-43101 JENKINS-43101 Fix “The fingerprint xyz did not match any of the recorded data." Compare: https://github.com/jenkinsci/pipeline-maven-plugin/compare/01e8690c5db3...d2c73586d6c6
          Hide
          cleclerc Cyrille Le Clerc added a comment -

          Fixed in 2.0.1

          Show
          cleclerc Cyrille Le Clerc added a comment - Fixed in 2.0.1

            People

            • Assignee:
              cleclerc Cyrille Le Clerc
              Reporter:
              crussell52 Chris Russell
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: