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

17 views
Skip to first unread message

rivky9505@gmail.com (JIRA)

unread,
Feb 5, 2020, 5:39:03 AM2/5/20
to jenkinsc...@googlegroups.com
R Kremer created an issue
 
Jenkins / Task JENKINS-60974
Refresh HTML Report View During A Build
Issue Type: Task Task
Assignee: Richard Bywater
Attachments: Screenshot from 2020-02-05 12-27-45.png
Components: htmlpublisher-plugin
Created: 2020-02-05 10:38
Labels: plugin htmlpublisher jekins
Priority: Major Major
Reporter: R Kremer

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
}

 The result I get is in the attached image.

 

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

rivky9505@gmail.com (JIRA)

unread,
Feb 9, 2020, 1:12:04 AM2/9/20
to jenkinsc...@googlegroups.com
R Kremer updated an issue
 
Jenkins / Bug JENKINS-60974
Change By: R Kremer
Issue Type: Task Bug

rivky9505@gmail.com (JIRA)

unread,
Feb 9, 2020, 1:14:02 AM2/9/20
to jenkinsc...@googlegroups.com
R Kremer assigned an issue to R Kremer
Change By: R Kremer
Assignee: Richard Bywater R Kremer

rivky9505@gmail.com (JIRA)

unread,
Feb 9, 2020, 1:14:02 AM2/9/20
to jenkinsc...@googlegroups.com
R Kremer updated an issue
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.

 

richard@bywater.nz (JIRA)

unread,
Feb 22, 2020, 11:20:02 PM2/22/20
to jenkinsc...@googlegroups.com
Richard Bywater started work on Bug JENKINS-60974
 
Change By: Richard Bywater
Status: Open In Progress

richard@bywater.nz (JIRA)

unread,
Feb 22, 2020, 11:22:02 PM2/22/20
to jenkinsc...@googlegroups.com
Richard Bywater commented on Bug JENKINS-60974
 
Re: Refresh HTML Report View During A Build

Currently whenever the publishHTML pipeline call is made it adds another "action" to the build which is shown by them getting stacked up in the left hand nav as per your screenshot. I'm investigating changing this to just update if possible.

You may have already found this but it's worth noting that any of the "HTML Report" links should end up showing the latest version only anyway. 

rivky9505@gmail.com (JIRA)

unread,
Feb 23, 2020, 1:26:02 AM2/23/20
to jenkinsc...@googlegroups.com
R Kremer commented on Bug JENKINS-60974

I  have already found that all the "HTML Report" links  showing the latest version only anyway.

But I still use it as I need the refreshing during the build and really,  It's so ineffective and gets me links to important actions like REBUILD at the bottom of the page and suddenly I have to scroll to them ... not too comfortable. 

If you can fix it to just update if possible I will thank you so much!

 

rivky9505@gmail.com (JIRA)

unread,
Mar 4, 2020, 2:51:05 AM3/4/20
to jenkinsc...@googlegroups.com
R Kremer commented on Bug JENKINS-60974

Hi

Something new about this progress? my Jenkins page looks terrible!

For example you can watch the image I uploaded.

If you can fix it - I will thank you so much!

 

 

 

This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo

rivky9505@gmail.com (JIRA)

unread,
Mar 4, 2020, 2:53:02 AM3/4/20
to jenkinsc...@googlegroups.com
R Kremer edited a comment on Bug JENKINS-60974
Hi

Something new about this progress? my Jenkins page looks terrible!

For example you can watch the image I uploaded.

If you can fix it - I will thank you so much!

!image-2020-03-04-09-52-36-541.png!

 

!image-2020-03-04-09-51-55-488.png!  

 

rivky9505@gmail.com (JIRA)

unread,
Mar 4, 2020, 2:54:02 AM3/4/20
to jenkinsc...@googlegroups.com
R Kremer edited a comment on Bug JENKINS-60974
Hi

Something new about this progress? my Jenkins page
looks is looking terrible!


For example you can watch the image I uploaded.

If you can fix it - I will thank you so much!

!image-2020-03-04-09-52-36-541.png!

 

!image-2020-03-04-09-51-55-488.png!  

 
Reply all
Reply to author
Forward
0 new messages