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
When we execute the following line (153) from out:
read -r -a props_kv_arr <<< "$(jq -r 'to_entries|map("(.key)="(.value|tostring)"")|.[]' <<< "${additional_properties}")"
The props_ky_arr only contains the first value "param.foo: bar"
we would expect all additional properties to be appended to the -Dparameter list...
possible solution:
read -d ‘,’ -r -a props_kv_arr <<< “$(jq -r ‘to_entries|map(“(.key)=\“(.value|tostring)\“”)|.[]’ <<< “${additional_properties}“)”
-d to specify the delimiter which is comma (,) in this case
When we execute the following line (153) from out:
read -r -a props_kv_arr <<< "$(jq -r 'to_entries|map("(.key)="(.value|tostring)"")|.[]' <<< "${additional_properties}")"
The props_ky_arr only contains the first value "param.foo: bar"
we would expect all additional properties to be appended to the -Dparameter list...
possible solution:
read -d ‘,’ -r -a props_kv_arr <<< “$(jq -r ‘to_entries|map(“(.key)=\“(.value|tostring)\“”)|.[]’ <<< “${additional_properties}“)”
-d to specify the delimiter which is comma (,) in this case
sample input json:
{
“params”: {
“project_path”: “cli_project”,
“project_key”: “com.example.cli_project”,
“sources”: [
“src1”,
“src2"
],
“additional_properties”: {
“param.foo”: “bar”,
“param1.foo1": “bar1”
}
},
“source”: {
“host_url”: “https://sonar.example.com/“,
“login”: “$$ACCESS_TOKEN$$”
}
}
The text was updated successfully, but these errors were encountered: