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

TaskScanner Plugin creates too many links "OpenTasks"

    XMLWordPrintable

Details

    Description

      Task Scanner generates new links "Open Tasks" on the left (cf screenshot in attachement)

      All of the links open the same URL .../MY_JOB/BUILD_NUMBER/tasksResult/ 

      Note : I use 4 build steps "withMaven" that automatically generates reports (junit, findbugs and Tasks). They are used in different stages of my pipeline.

      one of them in example (nothing special)

      withMaven(jdk: "${jdkVersion}", maven: "${mavenVersion}", mavenLocalRepo: '${workspace}/.repository', mavenOpts: '', mavenSettingsFilePath: '') {
           timestamps {
               sh "mvn -s settings.xml verify site -fn -DskipTests" 
           }
       }

      Expected result : Only one link should be displayed in the left Menu of the job

      Attachments

        Activity

          drulli Ulli Hafner added a comment -

          Please comment your requirements in the corresponding wiki page.

          drulli Ulli Hafner added a comment - Please comment your requirements in the corresponding wiki page .
          drulli Ulli Hafner added a comment -

          Is this automatic invocation of the analysis plugins using the withMaven block required? Or would it be just fine if you call these steps manually?

          drulli Ulli Hafner added a comment - Is this automatic invocation of the analysis plugins using the withMaven block required? Or would it be just fine if you call these steps manually?
          tcoan Thomas COAN added a comment -

          Yes, I can call the steps manually. 

          does it solve the problem ? => 1 call of taskscanner generates only 1 link "Open Task" 

           

          in order to run code analysis, will I need to do something like that (example from your wiki) ?
          sh "${mvnHome}/bin/mvn -batch-mode -V -U -e checkstyle:checkstyle pmd:pmd findbugs:findbugs"
                  def checkstyle = scanForIssues tool: [$}}{{class}}{{: }}{{'CheckStyle'}}{{], pattern: '**/checkstyle-result.xml'
                  publishIssues issues:[checkstyle], useStableBuildAsReference: true
           

          tcoan Thomas COAN added a comment - Yes, I can call the steps manually.  does it solve the problem ? => 1 call of taskscanner generates only 1 link "Open Task"    in order to run code analysis, will I need to do something like that (example from your wiki) ? sh  "${mvnHome}/bin/mvn -batch-mode -V -U -e checkstyle:checkstyle pmd:pmd findbugs:findbugs"           def   checkstyle = scanForIssues tool: [$}}{{class}}{{: }}{{'CheckStyle'}}{{] , pattern:  '**/checkstyle-result.xml'          publishIssues issues: [checkstyle] , useStableBuildAsReference: true  
          drulli Ulli Hafner added a comment - - edited

          (Hint: You can wrap sh Scripts using the noformat tag in Confluence.)

          The new approach will be:

          1. Collect the open tasks
          2. Publish the open tasks

          In step 2 you can combine the results of 'n' results that have been obtained in step 1

          drulli Ulli Hafner added a comment - - edited (Hint: You can wrap sh Scripts using the noformat tag in Confluence.) The new approach will be: Collect the open tasks Publish the open tasks In step 2 you can combine the results of 'n' results that have been obtained in step 1
          tcoan Thomas COAN added a comment -

          Ok seems good to me, thanks Ulli.

          I wait for the new version

          tcoan Thomas COAN added a comment - Ok seems good to me, thanks Ulli. I wait for the new version

          People

            drulli Ulli Hafner
            tcoan Thomas COAN
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: