You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
10:55:08 % Total % Received % Xferd Average Speed Time Time Time Current
10:55:08 Dload Upload Total Spent Left Speed
10:55:09
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 799 100 435 100 364 5958 4986 --:--:-- --:--:-- --:--:-- 10945
10:55:09 <!doctype html><html lang="en"><head><title>HTTP Status 400 – Bad Request</title><style type="text/css">body {font-family:Tahoma,Arial,sans-serif;} h1, h2, h3, b {color:white;background-color:#525D76;} h1 {font-size:22px;} h2 {font-size:16px;} h3 {font-size:14px;} p {font-size:12px;} a {color:black;} .line {height:1px;background-color:#525D76;border:none;}</style></head><body><h1>HTTP Status 400 – Bad Request</h1></body></html> % Total % Received % Xferd Average Speed Time Time Time Current
10:55:09 Dload Upload Total Spent Left Speed
10:55:09
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (6) Could not resolve host: "
Reproduction steps
see description
Expected behavior
The header parameter value Content-Type: application/json should be treated as one argument and not two.
JFrog plugin version
1.2.0
JFrog CLI version
2.34.6
Operating system type and version
Debian
JFrog Artifactory version
JFrog Cloud
JFrog Xray version
No response
The text was updated successfully, but these errors were encountered:
@getrostt,
This is actually the expected behavior - the plugin splits the arguments by whitespace and executes the JFrog CLI with these arguments. Using more sophisticated algorithms is risky and may not work in some cases (See jfrog#41 (comment)).
To support special cases such as quotes and spaces, since 1.2.0 we allow providing the arguments as a list.
Describe the bug
The
jf
step does not consider quotes when splitting an args string.The following command works on the shell:
The equivalent in a Jenkins pipeline fails:
jf('rt curl -XPUT -H "Content-Type: application/json" --upload-file buildinfo.json "/api/build" --server-id=af')
Workaround: Pass a list of arguments:
Current behavior
The following pipeline step results in an error:
jf('rt curl -XPUT -H "Content-Type: application/json" --upload-file buildinfo.json "/api/build" --server-id=af')
The console output:
Reproduction steps
see description
Expected behavior
The header parameter value
Content-Type: application/json
should be treated as one argument and not two.JFrog plugin version
1.2.0
JFrog CLI version
2.34.6
Operating system type and version
Debian
JFrog Artifactory version
JFrog Cloud
JFrog Xray version
No response
The text was updated successfully, but these errors were encountered: