Skip to content

getting jenkins root url from Jenkins class instance#27

Closed
tomascea wants to merge 1 commit intojenkinsci:masterfrom
tomascea:master
Closed

getting jenkins root url from Jenkins class instance#27
tomascea wants to merge 1 commit intojenkinsci:masterfrom
tomascea:master

Conversation

@tomascea
Copy link

No description provided.

@proski
Copy link

proski commented Nov 6, 2018

The broken link in Stash posts is the biggest annoyance with the new Jenkins. Thank you for fixing the issue. Please merge and release soon!

@jimklimov
Copy link

@tomascea : just in case, is your PR a sort of duplicate (alternative) to my #26 which I think it is? Just in case, ask someone from IRC to review it, because I also started the fixed logic as big and branchey, but in the end at jenkinsci/jenkins#3570 (comment) was recommended to use the single global object getter, so the change to fix became a one-liner.

@tomascea tomascea closed this Nov 9, 2018
Copy link

@goostleek goostleek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the #26 from @jimklimov fixes the same issue in a much more concise way.

if (!rootUrl.isEmpty()){
buildUrl = rootUrl + build.getUrl();
}else{
buildUrl = "Jenkins instance root URL is empty "+ build.getUrl();
Copy link

@goostleek goostleek Dec 19, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the previous message (PLEASE SET JENKINS ROOT URL FROM GLOBAL CONFIGURATION) is more valuable for the user. It says precisely to adjust Jenkins configuration to get the proper build URL.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants