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

Open tasks counted twice in maven multi-module projects

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: tasks-plugin
    • Labels:
      None
    • Environment:
      Tasks-plugin 4.23, Jenkins 1.409.2
    • Similar Issues:

      Description

      I've updated the tasks plugin to 4.23 (from 4.20 if I remember correctly) and now all tasks are counted twice in multi-module projects.
      Once for the parent/aggregator module and once for the concrete module.
      Tasks for single-module jobs are still counted correctly.

        Attachments

          Issue Links

            Activity

            kutzi kutzi created issue -
            Hide
            drulli Ulli Hafner added a comment -

            How are your modules structured? For my plug-ins everything seems to be normal:
            http://faktorlogik.de:8081/job/Jenkins%20Analysis%20Plug-ins%20%28Maven%29/

            Show
            drulli Ulli Hafner added a comment - How are your modules structured? For my plug-ins everything seems to be normal: http://faktorlogik.de:8081/job/Jenkins%20Analysis%20Plug-ins%20%28Maven%29/
            Hide
            kutzi kutzi added a comment -

            The children modules are physically located below the aggregator module which also acts as the parent POM, if that makes a difference.

            Show
            kutzi kutzi added a comment - The children modules are physically located below the aggregator module which also acts as the parent POM, if that makes a difference.
            drulli Ulli Hafner made changes -
            Field Original Value New Value
            Link This issue is related to JENKINS-6127 [ JENKINS-6127 ]
            Hide
            drulli Ulli Hafner added a comment -

            Seems that the fix for JENKINS-6127 caused this problem. Rather than scanning the folders defined in the pom I'm scanning the files below the current folder which includes the sub-modules.

            Show
            drulli Ulli Hafner added a comment - Seems that the fix for JENKINS-6127 caused this problem. Rather than scanning the folders defined in the pom I'm scanning the files below the current folder which includes the sub-modules.
            Hide
            drulli Ulli Hafner added a comment - - edited

            A possible solution would be to read the pom and exclude all module folders from the task scanner. What do you think? Would that work?

            Show
            drulli Ulli Hafner added a comment - - edited A possible solution would be to read the pom and exclude all module folders from the task scanner. What do you think? Would that work?
            Hide
            kutzi kutzi added a comment -

            Sounds reasonable to me

            Show
            kutzi kutzi added a comment - Sounds reasonable to me
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Ulli Hafner
            Path:
            src/main/java/hudson/plugins/tasks/TasksPublisher.java
            src/main/java/hudson/plugins/tasks/TasksReporter.java
            src/main/java/hudson/plugins/tasks/parser/WorkspaceScanner.java
            http://jenkins-ci.org/commit/tasks-plugin/ccc87206205bbe9998214de4e59a4f08d634fa01
            Log:
            [FIXED JENKINS-11571] Don't scan module folders of a maven project.

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Ulli Hafner Path: src/main/java/hudson/plugins/tasks/TasksPublisher.java src/main/java/hudson/plugins/tasks/TasksReporter.java src/main/java/hudson/plugins/tasks/parser/WorkspaceScanner.java http://jenkins-ci.org/commit/tasks-plugin/ccc87206205bbe9998214de4e59a4f08d634fa01 Log: [FIXED JENKINS-11571] Don't scan module folders of a maven project.
            scm_issue_link SCM/JIRA link daemon made changes -
            Status Open [ 1 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]
            Hide
            dogfood dogfood added a comment -

            Integrated in plugins_tasks #305
            [FIXED JENKINS-11571] Don't scan module folders of a maven project.

            Ulli Hafner :
            Files :

            • src/main/java/hudson/plugins/tasks/TasksReporter.java
            • src/main/java/hudson/plugins/tasks/TasksPublisher.java
            • src/main/java/hudson/plugins/tasks/parser/WorkspaceScanner.java
            Show
            dogfood dogfood added a comment - Integrated in plugins_tasks #305 [FIXED JENKINS-11571] Don't scan module folders of a maven project. Ulli Hafner : Files : src/main/java/hudson/plugins/tasks/TasksReporter.java src/main/java/hudson/plugins/tasks/TasksPublisher.java src/main/java/hudson/plugins/tasks/parser/WorkspaceScanner.java
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Ulli Hafner
            Path:
            src/main/java/hudson/plugins/tasks/TasksPublisher.java
            src/main/java/hudson/plugins/tasks/TasksReporter.java
            http://jenkins-ci.org/commit/tasks-plugin/88a3410bd441bb385705789ca99b574b4bb7a7d9
            Log:
            JENKINS-11571 Don't print remote log twice.

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Ulli Hafner Path: src/main/java/hudson/plugins/tasks/TasksPublisher.java src/main/java/hudson/plugins/tasks/TasksReporter.java http://jenkins-ci.org/commit/tasks-plugin/88a3410bd441bb385705789ca99b574b4bb7a7d9 Log: JENKINS-11571 Don't print remote log twice.
            Hide
            dogfood dogfood added a comment -

            Integrated in plugins_tasks #306
            JENKINS-11571 Don't print remote log twice.

            Ulli Hafner :
            Files :

            • src/main/java/hudson/plugins/tasks/TasksPublisher.java
            • src/main/java/hudson/plugins/tasks/TasksReporter.java
            Show
            dogfood dogfood added a comment - Integrated in plugins_tasks #306 JENKINS-11571 Don't print remote log twice. Ulli Hafner : Files : src/main/java/hudson/plugins/tasks/TasksPublisher.java src/main/java/hudson/plugins/tasks/TasksReporter.java
            Hide
            kutzi kutzi added a comment -

            Installed the new version of the plugin and warnings count is down again.
            Thanks.

            Show
            kutzi kutzi added a comment - Installed the new version of the plugin and warnings count is down again. Thanks.
            kutzi kutzi made changes -
            Status Resolved [ 5 ] Closed [ 6 ]
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 141814 ] JNJira + In-Review [ 205434 ]

              People

              • Assignee:
                drulli Ulli Hafner
                Reporter:
                kutzi kutzi
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: