Skip to content

Commit

Permalink
Print deprecation warning when using -jnlpUrl (#705)
Browse files Browse the repository at this point in the history
  • Loading branch information
basil authored Dec 11, 2023
1 parent dfeda4c commit 03a4018
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/hudson/remoting/Launcher.java
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,8 @@ public void run() throws CmdLineException, IOException, InterruptedException {
runAsTcpClient();
} else if (agentJnlpURL != null || !urls.isEmpty() || directConnection != null) {
if (agentJnlpURL != null) {
System.err.println(
"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 {
initialize();
Expand Down

0 comments on commit 03a4018

Please sign in to comment.