Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/main/java/hudson/remoting/Launcher.java
Original file line number Diff line number Diff line change
Expand Up @@ -493,6 +493,11 @@ public void run() throws CmdLineException, IOException, InterruptedException {
"WARNING: The \"-jnlpUrl\" argument is deprecated. Use \"-url\" and \"-name\" instead, potentially also passing in \"-webSocket\", \"-tunnel\", and/or work directory options as needed.");
bootstrapInboundAgent(); // calls initialize() internally
} else {
// JENKINS-72881: If workDir is not explicitly set, use current directory by default
// This matches the behavior of -jnlpUrl which receives workDir from server (typically ".")
if (workDir == null) {
workDir = new File(System.getProperty("user.dir"));
}
initialize();
}
runAsInboundAgent();
Expand Down