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

"Use previous build as reference" doesn't work for maven multi-module projects

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: pmd-plugin
    • Labels:
      None
    • Environment:
      Jenkins: 1.609.1
      analysis-core-plugin: 1.72
      pmd-plugin: 3.41
    • Similar Issues:

      Description

      When trying to publish PMD analysis results for a maven multi-module project the overall reference build (stated at a build results page) doesn't take into account "Use previous build as reference" checkbox.
      TC:

      1. Create a job that publishes PMD analysis results for a maven multi-module project
      2. Create a successful build (let's call in #N)
      3. Set build configuration to use deltas and mark build unstable only if there are new HIGH warnings (i.e. consequent builds without codebase changes should produce successful builds only)
      4. Introduce 2 new HIGH warnings and start build ( #(N+1) )
        ER: #(N+1) should become unstable
      5. Fix 1 introduced HIGH warning ant start build ( #(N+2) )
        ER: #(N+2) should become successful (since comparing to #(N+1) no new HIGHs were introduced)
        AR: #(N+2) is still unstable; it says its reference build is still #N (while console output prints [PMD] Computing warning deltas based on reference build #(N+1))

        Attachments

          Activity

          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Ulli Hafner
          Path:
          dry.iml
          pom.xml
          src/main/java/hudson/plugins/dry/DryMavenResultAction.java
          http://jenkins-ci.org/commit/dry-plugin/1767d1b25dfa339aff49d3c91ff58c1ae0e6ae50
          Log:
          [FIXED JENKINS-28938] Use correct reference build in maven jobs.

          Compare: https://github.com/jenkinsci/dry-plugin/compare/6aa30c444b21...1767d1b25dfa

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Ulli Hafner Path: dry.iml pom.xml src/main/java/hudson/plugins/dry/DryMavenResultAction.java http://jenkins-ci.org/commit/dry-plugin/1767d1b25dfa339aff49d3c91ff58c1ae0e6ae50 Log: [FIXED JENKINS-28938] Use correct reference build in maven jobs. Compare: https://github.com/jenkinsci/dry-plugin/compare/6aa30c444b21...1767d1b25dfa
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Ulli Hafner
          Path:
          plugin/findbugs.iml
          plugin/pom.xml
          plugin/src/main/java/hudson/plugins/findbugs/FindBugsMavenResultAction.java
          http://jenkins-ci.org/commit/findbugs-plugin/976c1403db809bd6a93b332721c0cc189e8ffbe3
          Log:
          [FIXED JENKINS-28938] Use correct reference build in maven jobs.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Ulli Hafner Path: plugin/findbugs.iml plugin/pom.xml plugin/src/main/java/hudson/plugins/findbugs/FindBugsMavenResultAction.java http://jenkins-ci.org/commit/findbugs-plugin/976c1403db809bd6a93b332721c0cc189e8ffbe3 Log: [FIXED JENKINS-28938] Use correct reference build in maven jobs.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Ulli Hafner
          Path:
          pmd.iml
          pom.xml
          src/main/java/hudson/plugins/pmd/PmdMavenResultAction.java
          http://jenkins-ci.org/commit/pmd-plugin/db4e9a4e25cc1c49a9347ac56ab9c4eb2ea4aa6d
          Log:
          [FIXED JENKINS-28938] Use correct reference build in maven jobs.

          Compare: https://github.com/jenkinsci/pmd-plugin/compare/83cda3f27de9...db4e9a4e25cc

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Ulli Hafner Path: pmd.iml pom.xml src/main/java/hudson/plugins/pmd/PmdMavenResultAction.java http://jenkins-ci.org/commit/pmd-plugin/db4e9a4e25cc1c49a9347ac56ab9c4eb2ea4aa6d Log: [FIXED JENKINS-28938] Use correct reference build in maven jobs. Compare: https://github.com/jenkinsci/pmd-plugin/compare/83cda3f27de9...db4e9a4e25cc
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Ulli Hafner
          Path:
          pom.xml
          src/main/java/hudson/plugins/tasks/TasksMavenResultAction.java
          tasks.iml
          http://jenkins-ci.org/commit/tasks-plugin/af9f72def8917b97141d789e475137565a231d6e
          Log:
          [FIXED JENKINS-28938] Use correct reference build in maven jobs.

          Compare: https://github.com/jenkinsci/tasks-plugin/compare/75989e6b21e6...af9f72def891

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Ulli Hafner Path: pom.xml src/main/java/hudson/plugins/tasks/TasksMavenResultAction.java tasks.iml http://jenkins-ci.org/commit/tasks-plugin/af9f72def8917b97141d789e475137565a231d6e Log: [FIXED JENKINS-28938] Use correct reference build in maven jobs. Compare: https://github.com/jenkinsci/tasks-plugin/compare/75989e6b21e6...af9f72def891
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Ulli Hafner
          Path:
          pom.xml
          warnings.iml
          http://jenkins-ci.org/commit/warnings-plugin/53d5b39aa56d1520ba14914e33d3ceae2d13eaa4
          Log:
          [FIXED JENKINS-28938] Use correct reference build in maven jobs.

          Compare: https://github.com/jenkinsci/warnings-plugin/compare/d30ce6176a88...53d5b39aa56d

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Ulli Hafner Path: pom.xml warnings.iml http://jenkins-ci.org/commit/warnings-plugin/53d5b39aa56d1520ba14914e33d3ceae2d13eaa4 Log: [FIXED JENKINS-28938] Use correct reference build in maven jobs. Compare: https://github.com/jenkinsci/warnings-plugin/compare/d30ce6176a88...53d5b39aa56d

            People

            • Assignee:
              drulli Ulli Hafner
              Reporter:
              flash_1999 Vsevolod Kalinin
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: