diff --git a/src/main/java/hudson/remoting/Launcher.java b/src/main/java/hudson/remoting/Launcher.java index c4c699776..38dddf46a 100644 --- a/src/main/java/hudson/remoting/Launcher.java +++ b/src/main/java/hudson/remoting/Launcher.java @@ -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();