[JIRA] (JENKINS-59153) Link to Job sporadically broken due to null Jenkins root URL

15 views
Skip to first unread message

f.modler@gmx.net (JIRA)

unread,
Aug 30, 2019, 1:02:02 PM8/30/19
to jenkinsc...@googlegroups.com
Falko Modler created an issue
 
Jenkins / Bug JENKINS-59153
Link to Job sporadically broken due to null Jenkins root URL
Issue Type: Bug Bug
Assignee: Martin Reinhardt
Components: rocket-chat-notifier-plugin
Created: 2019-08-30 17:01
Priority: Minor Minor
Reporter: Falko Modler

I had very inconsistent results when testing this plugin as a publisher (not as a pipeline step).

Sporadically, the ... (Open) link in the message was showing up as (<nulljob/some-job/9/|Open>).
The null part is the Jenkins root URL.

I don't really understand how this can happen because both the "Jenkins URL" under "Jenkins Location" and "Build Server URL" under "Global RocketChat Notifier Settings" are configured properly.

After some research I did find the following statement regarding the usage of new JenkinsLocationConfiguration() vs JenkinsLocationConfiguration.get():
https://issues.jenkins-ci.org/browse/JENKINS-52983?focusedCommentId=347707&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-347707
RC notifier is using the apparently "deprecated" new approach which should be switched to .get(), AFAICS.

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

f.modler@gmx.net (JIRA)

unread,
Aug 30, 2019, 1:03:01 PM8/30/19
to jenkinsc...@googlegroups.com
Falko Modler updated an issue
Change By: Falko Modler
I had very inconsistent results when testing this plugin as a publisher (not as a pipeline step).

_Sporadically_, the " {{... (Open)}} " link in the message was showing up as " {{(<nulljob/some-job/9/|Open>)}} " .

The {{null}} part is the Jenkins root URL.

I don't really understand how this can happen because _both_ the "Jenkins URL" under "Jenkins Location" _and_ "Build Server URL" under "Global RocketChat Notifier Settings" are configured properly.


After some research I did find the following statement regarding the usage of {{new JenkinsLocationConfiguration()}} vs {{JenkinsLocationConfiguration.get()}}:
https://issues.jenkins-ci.org/browse/JENKINS-52983?focusedCommentId=347707&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-347707
RC notifier is using the apparently "deprecated" {{new}} approach which should be switched to {{.get()}}, AFAICS.

f.modler@gmx.net (JIRA)

unread,
Aug 30, 2019, 1:03:02 PM8/30/19
to jenkinsc...@googlegroups.com
Falko Modler updated an issue
I had very inconsistent results when testing this plugin as a publisher (not as a pipeline step).

_Sporadically_, the "{{... (Open)}}" link in the message was showing up as "{{(<nulljob/some-job/9/|Open>)}}".
The {{null}} part is the Jenkins root URL.

I don't really understand how this can happen because _both_ the "Jenkins URL" under "Jenkins Location" _and_ "Build Server URL" under "Global RocketChat Notifier Settings" are configured properly.

After some research I did find the following statement regarding the usage of {{new JenkinsLocationConfiguration()}} vs {{JenkinsLocationConfiguration.get()}}:
https://issues.jenkins-ci.org/browse/JENKINS-52983?focusedCommentId=347707&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-347707
RC notifier is using the apparently "deprecated" {{new JenkinsLocationConfiguration() }} approach which should be switched to {{.get()}}, AFAICS.

f.modler@gmx.net (JIRA)

unread,
Aug 30, 2019, 2:13:02 PM8/30/19
to jenkinsc...@googlegroups.com

f.modler@gmx.net (JIRA)

unread,
Aug 30, 2019, 2:13:02 PM8/30/19
to jenkinsc...@googlegroups.com

hypery2k@web.de (JIRA)

unread,
Sep 9, 2019, 2:12:02 AM9/9/19
to jenkinsc...@googlegroups.com
Martin Reinhardt started work on Bug JENKINS-59153
 
Change By: Martin Reinhardt
Status: Open In Progress

hypery2k@web.de (JIRA)

unread,
Sep 9, 2019, 2:12:03 AM9/9/19
to jenkinsc...@googlegroups.com

hypery2k@web.de (JIRA)

unread,
Sep 9, 2019, 1:01:02 PM9/9/19
to jenkinsc...@googlegroups.com
 

fixed in 1.4.4

Change By: Martin Reinhardt
Status: In Review Resolved
Resolution: Fixed
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

hypery2k@web.de (JIRA)

unread,
Sep 9, 2019, 1:01:03 PM9/9/19
to jenkinsc...@googlegroups.com
Martin Reinhardt closed an issue as Fixed
Change By: Martin Reinhardt
Status: Resolved Closed
Assignee: Martin Reinhardt
Reply all
Reply to author
Forward
0 new messages