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

MavenModuleSetBuild.mavenArtifatcs is always null

    Details

    • Similar Issues:

      Description

      MavenModuleSetBuild.mavenArtifatcs is supposed to return the build's MavenAggregatedArtifactRecord, but is always null

      The cause is maven artifacts are recorder asynchronously (https://github.com/jenkinsci/maven-plugin/blob/master/src/main/java/hudson/maven/reporters/MavenArtifactArchiver.java#L128)
      and then MavenModuleSetBuild can't see the created MavenArtifactRecord, so never add the MavenAggregatedArtifactRecord action to the build.

        Attachments

          Issue Links

            Activity

            ndeloof Nicolas De Loof created issue -
            jglick Jesse Glick made changes -
            Field Original Value New Value
            Description MavenModuleSetBuild.mavenArtifatcs is supposed to return the build's MavenAggregatedArtifactRecord, but is always null

            The cause is maven artifacts are recorder asynchronously (https://github.com/jenkinsci/maven-plugin/blob/master/src/main/java/hudson/maven/reporters/MavenArtifactArchiver.java#L128)
            and then [MavenModuleSetBuild](https://github.com/jenkinsci/maven-plugin/blob/master/src/main/java/hudson/maven/MavenModuleSetBuild.java#L564) can't see the created MavenArtifactRecord, so never add the MavenAggregatedArtifactRecord action to the build.
            MavenModuleSetBuild.mavenArtifatcs is supposed to return the build's MavenAggregatedArtifactRecord, but is always null

            The cause is maven artifacts are recorder asynchronously (https://github.com/jenkinsci/maven-plugin/blob/master/src/main/java/hudson/maven/reporters/MavenArtifactArchiver.java#L128)
            and then [MavenModuleSetBuild|https://github.com/jenkinsci/maven-plugin/blob/master/src/main/java/hudson/maven/MavenModuleSetBuild.java#L564] can't see the created MavenArtifactRecord, so never add the MavenAggregatedArtifactRecord action to the build.
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Nicolas De Loof
            Path:
            src/main/java/hudson/maven/Maven3Builder.java
            src/main/java/hudson/maven/reporters/MavenArtifactArchiver.java
            http://jenkins-ci.org/commit/maven-plugin/0af0bb8de5a9fa7652c03776e36db7bdae000404
            Log:
            [FIXED JENKINS-20487] call postBuild after module build completion
            fingerprints are managed by MavenFingerprinter

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Nicolas De Loof Path: src/main/java/hudson/maven/Maven3Builder.java src/main/java/hudson/maven/reporters/MavenArtifactArchiver.java http://jenkins-ci.org/commit/maven-plugin/0af0bb8de5a9fa7652c03776e36db7bdae000404 Log: [FIXED JENKINS-20487] call postBuild after module build completion fingerprints are managed by MavenFingerprinter
            scm_issue_link SCM/JIRA link daemon made changes -
            Status Open [ 1 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Nicolas De Loof
            Path:
            src/main/java/hudson/maven/Maven3Builder.java
            src/main/java/hudson/maven/reporters/MavenArtifactArchiver.java
            http://jenkins-ci.org/commit/maven-plugin/b28d95f4e0a0a2a64777ba7c170619bfdc107c7c
            Log:
            [FIXED JENKINS-20487] call postBuild after module build completion
            fingerprints are managed by MavenFingerprinter

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Nicolas De Loof Path: src/main/java/hudson/maven/Maven3Builder.java src/main/java/hudson/maven/reporters/MavenArtifactArchiver.java http://jenkins-ci.org/commit/maven-plugin/b28d95f4e0a0a2a64777ba7c170619bfdc107c7c Log: [FIXED JENKINS-20487] call postBuild after module build completion fingerprints are managed by MavenFingerprinter
            jglick Jesse Glick made changes -
            Link This issue is duplicated by JENKINS-11814 [ JENKINS-11814 ]
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Jesse Glick
            Path:
            src/main/java/hudson/maven/reporters/MavenArtifact.java
            src/main/java/hudson/maven/reporters/MavenArtifactRecord.java
            http://jenkins-ci.org/commit/maven-plugin/2320cc985b27abab948fff971be5813ad2bca5f8
            Log:
            JENKINS-11814 JENKINS-20487 Cleaning up dead code now that MavenArtifactArchiver does not call recordFingerprints.

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: src/main/java/hudson/maven/reporters/MavenArtifact.java src/main/java/hudson/maven/reporters/MavenArtifactRecord.java http://jenkins-ci.org/commit/maven-plugin/2320cc985b27abab948fff971be5813ad2bca5f8 Log: JENKINS-11814 JENKINS-20487 Cleaning up dead code now that MavenArtifactArchiver does not call recordFingerprints.
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 152012 ] JNJira + In-Review [ 194172 ]

              People

              • Assignee:
                ndeloof Nicolas De Loof
                Reporter:
                ndeloof Nicolas De Loof
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: