[JIRA] (JENKINS-46722) alwaysLinkToLastBuild not linking to last job result

11 views
Skip to first unread message

rethdakair@gmail.com (JIRA)

unread,
Jun 4, 2018, 8:46:01 AM6/4/18
to jenkinsc...@googlegroups.com
Mat Mor commented on Bug JENKINS-46722
 
Re: alwaysLinkToLastBuild not linking to last job result

Same behavior here.

The report is only attached to last successful build, failed build do not publish the report to the project level. All pipeline behave as such.

Any workaround / news ?

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)
Atlassian logo

jdavis@ipswitch.com (JIRA)

unread,
Dec 21, 2018, 12:41:02 PM12/21/18
to jenkinsc...@googlegroups.com

Also seeing this issue. Workarounds appreciated!

This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

swcompany@abv.bg (JIRA)

unread,
Jan 24, 2019, 4:08:02 AM1/24/19
to jenkinsc...@googlegroups.com

My workaround is to send exit code 0 even when there are failures in the tests.

martin.rossland@altibox.no (JIRA)

unread,
Jan 31, 2019, 3:46:02 AM1/31/19
to jenkinsc...@googlegroups.com

I have a build monitor where I would like to display the last cucumber test report. I also experience this issue where only successfully builds get published to the project level.

Are there a chance this will be fixed in version 1.19?

Using pipelines with jenkins 2.161 and HTML publisher plugin 1.18.

martin.rossland@altibox.no (JIRA)

unread,
Jan 31, 2019, 4:05:02 AM1/31/19
to jenkinsc...@googlegroups.com
Martin Røssland edited a comment on Bug JENKINS-46722
I have a build monitor where I would like to display the last cucumber test report. I also experience this issue where *only* successfully builds get published to the project level.


Are there a chance this will be fixed in version 1.19?

Using pipelines with jenkins 2.161 and HTML publisher plugin 1.18.


*Workaround for my case:*

Initially I tried to load the project report since it was a static url (example url):
[http://jenkins/job/tests/job/master/report/report.html]

Since the build failed it was only accessible on the specific build (example url):
[http://jenkins/job/tests/job/master/123/report/report.html]

I figured out that I could access the latest build through this static url (example url):
[http://jenkins/job/tests/job/master/lastBuild/report/report.html]

*Conclusion:*

**This issue is not a show stopper for me, but it would still be convenient to find the latest pipeline build, despite successfully run or not, in the project menu.

martin.rossland@altibox.no (JIRA)

unread,
Jan 31, 2019, 4:06:04 AM1/31/19
to jenkinsc...@googlegroups.com
Martin Røssland edited a comment on Bug JENKINS-46722
I have a build monitor where I would like to display the last cucumber test report. I also experience this issue where *only* successfully builds get published to the project level.

Are there a chance this will be fixed in version 1.19?

Using pipelines with jenkins 2.161 and HTML publisher plugin 1.18.

*Workaround for in my case:*


Initially I tried to load the project report since it was a static url (example url):
[http://jenkins/job/tests/job/master/report/report.html]

Since the build failed it was only accessible on the specific build (example url):
[http://jenkins/job/tests/job/master/123/report/report.html]

I figured out that I could access the latest build through this static url (example url):
[http://jenkins/job/tests/job/master/lastBuild/report/report.html]

*Conclusion:*

**This issue is not a show stopper for me, but it would still be convenient to find the latest pipeline build, despite successfully run or not, in the project menu.

martin.rossland@altibox.no (JIRA)

unread,
Jan 31, 2019, 4:06:06 AM1/31/19
to jenkinsc...@googlegroups.com
Martin Røssland edited a comment on Bug JENKINS-46722
I have a build monitor where I would like to display the last cucumber test report. I also experience this issue where *only* successfully builds get published to the project level.

Are there a chance this will be fixed in version 1.19?

Using pipelines with jenkins 2.161 and HTML publisher plugin 1.18.

*Workaround in my case:*


Initially I tried to load the project report since it was a static url (example url):
[http://jenkins/job/tests/job/master/report/report.html]

Since the build failed it was only accessible on the specific build (example url):
[http://jenkins/job/tests/job/master/123/report/report.html]

I figured out that I could access the latest build through this static url (example url):
[http://jenkins/job/tests/job/master/lastBuild/report/report.html]

*Conclusion:*

** This issue is not a show stopper for me, but it would still be convenient to find the latest pipeline build, despite successfully run or not, in the project menu.

martin.rossland@altibox.no (JIRA)

unread,
Jan 31, 2019, 4:14:02 AM1/31/19
to jenkinsc...@googlegroups.com
Martin Røssland edited a comment on Bug JENKINS-46722
I have a build monitor where I would like to display the last cucumber test report. I also experience this issue where *only* successfully builds get published to the project level.

Are there a chance this will be fixed in version 1.19?

Using pipelines with jenkins 2.161 and HTML publisher plugin 1.18.

*Workaround in my case:*

Initially I tried to load the project report since it was a static url (example url):
[http://jenkins/job/tests/job/master/report/report.html]

Since the build failed it was only accessible on the specific build (example url):
[http://jenkins/job/tests/job/master/123/report/report.html]

I figured out that I could access the latest build through this static url (example url):
[http://jenkins/job/tests/job/master/ lastBuild lastCompletedBuild /report/report.html]

*Conclusion:*


This issue is not a show stopper for me, but it would still be convenient to find the latest pipeline build, despite successfully run or not, in the project menu.

nickbroon@gmail.com (JIRA)

unread,
Sep 12, 2019, 11:00:11 AM9/12/19
to jenkinsc...@googlegroups.com
Nicholas Brown updated an issue
 
Jenkins / Bug JENKINS-46722
Change By: Nicholas Brown
Priority: Minor Major
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

nickbroon@gmail.com (JIRA)

unread,
Sep 12, 2019, 11:07:06 AM9/12/19
to jenkinsc...@googlegroups.com
Nicholas Brown commented on Bug JENKINS-46722
 
Re: alwaysLinkToLastBuild not linking to last job result

I'm seeing this issue. The workaround to access the report suggested by Martin Røssland does not work for me.

In the build log I see:

[Pipeline] publishHTML
[htmlpublisher] Archiving HTML reports...
[htmlpublisher] Archiving at PROJECT level /var/lib/jenkins/workspace/project_code_master/clangScanBuildReports to /var/lib/jenkins/jobs/project/jobs/code/branches/master/htmlreports/clang_20scan-build_20Static_20Analysis_20Report

and as mentioned in the this Jira ticket there is no link in the sidebar of the build. Trying to directly access the report results in:

HTTP ERROR 404
Problem accessing /jobs/project/jobs/code/branches/master/htmlreports/clang_20scan-build_20Static_20Analysis_20Report/index.html. Reason:

    Not Found

The publishHTML step is being used in a post failure section of stage in a pipeline:

            post {
                failure {
                    publishHTML target: [
                        allowMissing: false,
                        alwaysLinkToLastBuild: false,
                        keepAll: false,
                        reportDir: 'clangScanBuildReports',
                        reportFiles: 'index.html',
                        reportTitles: 'clang scan-build Static Analysis',
                        reportName: 'clang scan-build Static Analysis Report'
                    ]
                }

Senthilkumar.Palanisamy@in.bosch.com (JIRA)

unread,
Nov 29, 2019, 4:57:02 AM11/29/19
to jenkinsc...@googlegroups.com

Hi,

We are also facing same issue for failed build HTML publish is not creating any link in Jenkins Project level, we have to enable
alwaysLinkToLastBuild: true,
keepAll: true,
In order to see in particular build is there any other workaround to see in project level or any permanent fix.

Thanks

Senthilkumar.Palanisamy@in.bosch.com (JIRA)

unread,
Dec 10, 2019, 7:17:03 AM12/10/19
to jenkinsc...@googlegroups.com
Hi,

We are also facing same issue for failed build HTML publish is not creating any link in Jenkins Project level, we have to enable
alwaysLinkToLastBuild: true,
            keepAll: true,
In order to see in particular build , Please can i know is there any other workaround to see HTML publish result in project level or any permanent fix.

Thanks
Reply all
Reply to author
Forward
0 new messages