From 7cb5eb78c00dd4a4c2868a653bc3d7ada9abe1e2 Mon Sep 17 00:00:00 2001 From: JJ Asghar Date: Fri, 23 Sep 2022 10:13:12 -0500 Subject: [PATCH] Revise curl example for inbound agent (#7142) Signed-off-by: JJ Asghar --- core/src/main/resources/hudson/slaves/JNLPLauncher/main.jelly | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/src/main/resources/hudson/slaves/JNLPLauncher/main.jelly b/core/src/main/resources/hudson/slaves/JNLPLauncher/main.jelly index a31298a13a..84668b85d0 100644 --- a/core/src/main/resources/hudson/slaves/JNLPLauncher/main.jelly +++ b/core/src/main/resources/hudson/slaves/JNLPLauncher/main.jelly @@ -57,6 +57,9 @@ curl -sO ${jenkinsURL}jnlpJars/agent.jar java -jar agent.jar -jnlpUrl ${jenkinsURL}${it.url}jenkins-agent.jnlp -secret @secret-file ${it.launcher.getWorkDirOptions(it)} +

+ ${%Note: PowerShell users must use curl.exe instead of curl because curl is a default PowerShell cmdlet alias for Invoke-WebRequest.} +