-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[JENKINS-44112] - Enable WorkDir in JNLPLauncher #2945
[JENKINS-44112] - Enable WorkDir in JNLPLauncher #2945
Conversation
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.
LGTM overall, couple of nits.
@@ -86,6 +122,20 @@ public void launch(SlaveComputer computer, TaskListener listener) { | |||
*/ | |||
public static /*almost final*/ Descriptor<ComputerLauncher> DESCRIPTOR; | |||
|
|||
/** | |||
* gets |
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.
Fix comment here?
@Issue("JENKINS-44112") | ||
public void testNoWorkDirMigration() throws Exception { | ||
Computer computer = j.jenkins.getComputer("Foo"); | ||
Assert.assertThat(computer, instanceOf(SlaveComputer.class)); |
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.
nit: static import for consistency
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.
yep
} | ||
|
||
StringBuilder bldr = new StringBuilder(); | ||
bldr.append("-workDir \""); |
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.
Is this going to work with windows? I am not 100% sure but I feel like that backslash is for the start of a file in windows rather than a special character announcement
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.
It is. Windows also needs escaping
@@ -0,0 +1,4 @@ | |||
<div> | |||
If defined, Remoting will fail the startup if the target work directory is missing. |
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.
"Remoting will fail at startup" I think rather than "Remoting will fail the startup"
LGTM as well with a few small nitpicky things |
This pull request originates from a CloudBees employee. At CloudBees, we require that all pull requests be reviewed by other CloudBees employees before we seek to have the change accepted. If you want to learn more about our process please see this explanation. |
@reviewbybees @rysteboe @alexanderrtaylor Ready for the final review |
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.
Sorry wrong place from before
🐝
@reviewbybees done. I kindly ask @jenkinsci/code-reviewers to take a look, because I would like to get this change integrated into the weekly to have it in the next LTS baseline |
Merged the change in order to have it in the weekly. |
See JENKINS-44112. Since Jenkins 2.57 we can enable Remoting Work Directories.
@DataBoundSetter
to get it supported in child classes automagically?UI samples
Config:
Main page:
Proposed changelog entries
Submitter checklist
* Use the
Internal:
prefix if the change has no user-visible impact (API, test frameworks, etc.)Desired reviewers
@reviewbybees
@batmat since it collides with #2775