[JIRA] (JENKINS-58634) Custom ID cause broken link in job view

22 views
Skip to first unread message

jochen.steinmann2@de.bosch.com (JIRA)

unread,
Jul 24, 2019, 5:47:02 AM7/24/19
to jenkinsc...@googlegroups.com
Jochen Steinmann created an issue
 
Jenkins / Bug JENKINS-58634
Custom ID cause broken link in job view
Issue Type: Bug Bug
Assignee: Ulli Hafner
Components: warnings-ng-plugin
Created: 2019-07-24 09:46
Labels: jenkins
Priority: Minor Minor
Reporter: Jochen Steinmann

If recordIssues is called with a custom id, the job view link is broken and leads to HTTP ERROR 404.

For example:

The URL behind the Link is generated like:

https://Jenkins/job/BBB/job/test/job/master/1000

but should be

https://Jenkins/job/BBB/job/test/job/master/45/1000

where 45 is in my example HEAD of the job list.

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

ullrich.hafner@gmail.com (JIRA)

unread,
Jul 24, 2019, 5:53:02 AM7/24/19
to jenkinsc...@googlegroups.com
Ulli Hafner commented on Bug JENKINS-58634
 
Re: Custom ID cause broken link in job view

Actually the link is correct. It should just not create a 404, it should navigate to the latest results of the tool with ID 1000.

ullrich.hafner@gmail.com (JIRA)

unread,
Jul 24, 2019, 5:55:02 AM7/24/19
to jenkinsc...@googlegroups.com
Ulli Hafner edited a comment on Bug JENKINS-58634
Actually the link is correct. It should just not create a 404, it should navigate to the latest results of the tool with ID {{1000}}.

See https://ci.jenkins.io/job/Plugins/job/warnings-ng-plugin/job/master/pmd as a working example.

jochen.steinmann2@de.bosch.com (JIRA)

unread,
Jul 24, 2019, 5:57:01 AM7/24/19
to jenkinsc...@googlegroups.com
Jochen Steinmann updated an issue
 
Change By: Jochen Steinmann
If recordIssues is called with a custom id, e.g{{ }}

{{recordIssues aggregatingResults: true, tools: [clangTidy(id:
'1000', name: 'Clang-Tidy: Aggregated Results', pattern:
'build/**/clang-tidy.txt')]}},

the job view link is broken and leads to HTTP ERROR 404.

For example:

The URL behind the Link is generated like:



where 45 is in my example HEAD of the job list.

jochen.steinmann2@de.bosch.com (JIRA)

unread,
Jul 24, 2019, 5:57:03 AM7/24/19
to jenkinsc...@googlegroups.com

jochen.steinmann2@de.bosch.com (JIRA)

unread,
Jul 24, 2019, 6:10:02 AM7/24/19
to jenkinsc...@googlegroups.com
Jochen Steinmann commented on Bug JENKINS-58634
 
Re: Custom ID cause broken link in job view

If I use the build-in ID everything works fine, as soon I add id:'1000' it don't

working:

recordIssues aggregatingResults: true, tools: [clangTidy(name: 'Clang-Tidy: Aggregated Results', pattern:
'build/**/clang-tidy.txt')]

don't

recordIssues aggregatingResults: true, tools: [clangTidy(id: '1000', name: 'Clang-Tidy: Aggregated Results', pattern:
'build/**/clang-tidy.txt')]

jochen.steinmann2@de.bosch.com (JIRA)

unread,
Jul 24, 2019, 6:11:02 AM7/24/19
to jenkinsc...@googlegroups.com
Jochen Steinmann edited a comment on Bug JENKINS-58634
Is your working in example called with custom id . ?

jochen.steinmann2@de.bosch.com (JIRA)

unread,
Jul 24, 2019, 6:11:02 AM7/24/19
to jenkinsc...@googlegroups.com
 
Re: Custom ID cause broken link in job view

Is your working in example called with custom id.

ullrich.hafner@gmail.com (JIRA)

unread,
Jul 24, 2019, 6:12:02 AM7/24/19
to jenkinsc...@googlegroups.com

No, that is why it is working

ullrich.hafner@gmail.com (JIRA)

unread,
Jul 24, 2019, 6:13:02 AM7/24/19
to jenkinsc...@googlegroups.com
Ulli Hafner updated an issue
 
Change By: Ulli Hafner
If recordIssues is called with a custom id, e.g

recordIssues aggregatingResults: true, tools: [clangTidy(id:
'1000', name: 'Clang-Tidy: Aggregated Results', pattern:
'build/**/clang-tidy.txt')]

the job view link is broken and leads to HTTP ERROR 404.

For example:

The URL behind the Link is generated like:

{{[https://Jenkins/job/BBB/job/test/job/master/1000|https://jenkins/job/BBB/job/test/job/master/1000]}}

but The link should be automatically mapped to the latest results, e.g. to

ullrich.hafner@gmail.com (JIRA)

unread,
Jul 24, 2019, 6:13:03 AM7/24/19
to jenkinsc...@googlegroups.com
Ulli Hafner updated an issue
If recordIssues is called with a custom id, e.g

recordIssues aggregatingResults: true, tools: [clangTidy(id:
'1000', name: 'Clang-Tidy: Aggregated Results', pattern:
'build/**/clang-tidy.txt')]

the job view link is broken and leads to HTTP ERROR 404.

For example:

The URL behind the Link is generated like:

{{[https://Jenkins/job/BBB/job/test/job/master/1000|https://jenkins/job/BBB/job/test/job/master/1000]}}

The link should be automatically mapped to the latest results, e.g. to

jochen.steinmann2@de.bosch.com (JIRA)

unread,
Jul 24, 2019, 7:16:01 AM7/24/19
to jenkinsc...@googlegroups.com
Jochen Steinmann edited a comment on Bug JENKINS-58634
Is your working in example called with custom id?

ullrich.hafner@gmail.com (JIRA)

unread,
Sep 8, 2019, 12:01:03 PM9/8/19
to jenkinsc...@googlegroups.com
Ulli Hafner resolved as Won't Fix
 

The problem is that you are using a numeric only ID. Seems that such IDs are claimed as build number IDs somewhere in Jenkins core (Build or Run instance). So my URL actually will never be resolved.

If you use an id with character in it m1000 then everything works as expected. That means I can do nothing in my plugin here. You can try to file that as bug in core but I doubt that this will be fixed by someone as an actual build number can also resolve to the ID you have chosen.

Change By: Ulli Hafner
Status: Open Resolved
Resolution: Won't Fix

ullrich.hafner@gmail.com (JIRA)

unread,
Sep 8, 2019, 12:02:02 PM9/8/19
to jenkinsc...@googlegroups.com
The problem is that you are using a numeric only ID. Seems that such IDs are claimed as build number IDs somewhere in Jenkins core (Build or Run instance). So my URL actually will never be resolved.

If you use an id with character in it like {{m1000}} then everything works as expected. That means I can do nothing in my plugin here. You can try to file that as bug in core but I doubt that this will be fixed by someone as an actual build number can also resolve to the ID you have chosen.
Reply all
Reply to author
Forward
0 new messages