I am using HTML Publisher plugin to display test results report as HTML. the tests run-time is about 4 hours and the HTML report is been updated with the tests results during running. I have the first part of test results after an hour and I want to display it immediately. After I get the other parts of the report I want to refresh the report view during running. When I run both tasks in parallel I get a new tab to a new report for each time I run the publisher command when I wanted just to update the existing report view.

      Any idea how to solve it?

      echo '*** Run-Regression-Tests ***'
          def tasks = [:]
      
          tasks["Regression-Test"] = {
              stage ('Run-Regression-Test'){
                      tests_function()
              }
          }
          tasks["HTML-Publisher"] = {
              stage ('HTML-Report'){
                      while (! finishRegressionTests){
                          DownloadHTMLReport()
                          DisplayHTMLReport()
                  }
              }
          }
      
          parallel tasks
      }
      
      
      def DisplayHTMLReport(){
          publishHTML([
                  allowMissing: false,
                  alwaysLinkToLastBuild: false,
                  keepAll: true,
                  reportDir: '',
                  reportFiles: 'report.html',
                  reportName: 'HTML Report',
                  reportTitles: ''])
      }
      
      

       The result I get is in the attached image.

       

          [JENKINS-60974] Refresh HTML Report View During A Build

          R Kremer created issue -
          R Kremer made changes -
          Issue Type Original: Task [ 3 ] New: Bug [ 1 ]
          R Kremer made changes -
          Description Original: I am using HTML Publisher plugin to display test results report as HTML. the tests run-time is about 4 hours and the HTML report is been updated with the tests results during running. I have the first part of test results after an hour and I want to display it immediately. After I get the other parts of the report I want to refresh the report view during running. When I run both tasks in parallel I get a new tab to a new report for each time I run the publisher command when I wanted just to update the existing report view.

          Any idea how to solve it?


          {code:java}
          echo '*** Run-Regression-Tests ***'
              def tasks = [:]

              tasks["Regression-Test"] = {
                  stage ('Run-Regression-Test'){
                          tests_function()
                  }
              }
              tasks["HTML-Publisher"] = {
                  stage ('HTML-Report'){
                          while (! finishRegressionTests){
                              DownloadHTMLReport()
                              DisplayHTMLReport()
                      }
                  }
              }

              parallel tasks
          }

          {code}


           The result I get is in the attached image.

           
          New: I am using HTML Publisher plugin to display test results report as HTML. the tests run-time is about 4 hours and the HTML report is been updated with the tests results during running. I have the first part of test results after an hour and I want to display it immediately. After I get the other parts of the report I want to refresh the report view during running. When I run both tasks in parallel I get a new tab to a new report for each time I run the publisher command when I wanted just to update the existing report view.

          Any idea how to solve it?


          {code:java}
          echo '*** Run-Regression-Tests ***'
              def tasks = [:]

              tasks["Regression-Test"] = {
                  stage ('Run-Regression-Test'){
                          tests_function()
                  }
              }
              tasks["HTML-Publisher"] = {
                  stage ('HTML-Report'){
                          while (! finishRegressionTests){
                              DownloadHTMLReport()
                              DisplayHTMLReport()
                      }
                  }
              }

              parallel tasks
          }

          {code}


          {code:java}
          def DisplayHTMLReport(){
              publishHTML([
                      allowMissing: false,
                      alwaysLinkToLastBuild: false,
                      keepAll: true,
                      reportDir: '',
                      reportFiles: 'report.html',
                      reportName: 'HTML Report',
                      reportTitles: ''])
          }

          {code}

           The result I get is in the attached image.

           
          R Kremer made changes -
          Assignee Original: Richard Bywater [ r2b2_nz ] New: R Kremer [ 0533159505 ]
          Richard Bywater made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          R Kremer made changes -
          Attachment New: image-2020-03-04-09-52-36-541.png [ 50547 ]
          Attachment New: image-2020-03-04-09-52-30-846.png [ 50548 ]
          Attachment New: image-2020-03-04-09-51-55-488.png [ 50549 ]

            0533159505 R Kremer
            0533159505 R Kremer
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: