In my scripted pipeline, I have a shell script that performs helm upgrade and I have also set some environment variables like below:
sh """helm upgrade --install ${someVar} chart-hub/java-${javaVersion} \
...
--set env.vars[1] .name=some_name_here \
--set env.vars[1] .value="123abcdefhgj3457u" \
--set env.vars[2] .name=some_other_name_here \
--set env.vars[2] .value="true"
...
Things were working well until I added --set env.vars[2] .name=some_other_name_here \
and
--set env.vars[2] .value="true"
to my pipeline script . I am getting the error ...ReadString: expects " or n but found t, error found in #10 byte of ...|, "value":true}], ...
I have tried enclosing the value like: 'true'
, "'true'"
and even storing true
in a variable and then assigning the variable to --set env.vars[2] .value="${myVar}" but the error persists.
Any idea what I'm doing wrong, or solutions I could try? Thanks in advance