In a pipeline (Jenkins Version 2.496) script block;
I have an environment params variable defined with 4 & to pass multiple values;
SET tools_params=mainBranch=%default_branch%^&sonarGitHubBindingAlm=xxyyzz^&...
When I call curl in the script block with something like;
C:\curl-8.9.1_1-win64-mingw\curl-8.9.1_1-win64-mingw\bin\curl.exe" -X PUT "https://[our apiurl]/sonarqubeProjects/[our sonarproject]?%tools_params%" -d '' -H "Authorization: Basic %tools_api_credential%" -w "Received %%{response_code> response\n"**
I am having an issue with how the Groovy/cmd parser interpolates the arguments.
08:03:44 c:\jenkins\workspace\_SonarQube_feature_BEHHLTH-72603>"C:\curl-8.9.1_1-win64-mingw\curl-8.9.1_1-win64-mingw\bin\curl.exe" -X PUT "https://[our apiurl]/sonarqubeProjects/[our sonarproject]?mainBranch=feature/BEHHLTH-72603&sonarGitHubBindingAlm=[our sonarcube github app]&sonarGitHubBindingRepo=[our repo]&sonarGitHubBindingMonoRepo=true&sonarQualityGate=OHAI_Default" -d '' -H "Authorization: Basic [our cred id]" -w "Received %{response_code> response
08:03:45 % Total % Received % Xferd Average Speed Time Time Time Current
08:03:45 Dload Upload Total Spent Left Speed
08:03:45
08:03:45 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
08:03:45 100 2 0 0 100 2 0 20 --:--:-- --:--:-- --:--:-- 23
08:03:45 Received %{response_code> response
08:03:45 c:\jenkins\workspace\_SonarQube_feature_BEHHLTH-72603>"
**08:03:45 '"' is not recognized as an internal or external command,
08:03:45 operable program or batch file.**
Any thoughts on why it is trying to execute the workspace as a command?
I have tried different combinations of escaping characters and single/double quotes.