Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow the default port to be more easily configured.
Docker images and other automation use cases often want to make Jenkins use specific port. Today they do this via init.groovy.d with a problematic sleep timeout, so allow them to control this value via system property.
- Loading branch information
653fbdb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kohsuke could you do your changes using PRs?
653fbdb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👎 for such change and 👎 for direct commits into master even if you are @kohsuke .
This change doesn't follow #1914
653fbdb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, I do use PR when I think a change warrants that (for example this), and in other cases I push through J-on-J. This felt like such a trivial enough change that the latter was well justified. I also thought this is non-controversial, though apparently I was wrong there.
I'm not following the last part of your comment. Clearly I cannot depend on a feature that's not in the code yet.
653fbdb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not only you depend on some changes in core. That's your point of view and core has many contributors that may think other. During review you may get other points of views.
Sorry, what part is not clear? One person from community spent time and picked all magic system variables and proposed change, after your commit it introduces other way of configuration again.
I checked and found that:
Your simple change (because of workflow?) leads to undocumented variables. Now other people should spend their time (rebasing proposed PR to pick your variable, update documentation) even on such trivial change.
653fbdb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now i got this issue, why answer in header available after some delay at all? (CliPort connection fails, CLI switches to buggy http connection). Will be glad to see filled jira issue as it smells like a bug.
653fbdb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or it not used for CLI?
653fbdb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Naming inconsistent with the corresponding option
hudson.TcpSlaveAgentListener.hostName
.653fbdb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kohsuke Does this capture the intended behavior correctly?
653fbdb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No replies, could be reverted?
653fbdb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can the TCP port also be configured through an environmental variable for use on Docker?
653fbdb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@daniel-beck yes it does capture the intended behaviour correctly.
@alexellis When I did this change, there was an in-flight PR that enables such dual support for every similar configuration option, and I was assuming that when that comes in, we'll change this as well. I'm not seeing it in the core today and I cannot find that PR right now.
653fbdb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kohsuke It's still open: #1914