Hello.
I'm looking for the way to set build variable from Build > Shell/Batch Command
step.
Below script failed to set variable.
Could you please guide me how to use this from Build > Shell/Batch Command
step.
echo ${vars.get("TEST_VAR")}
result_lines=$(bash ./test_echo_multiple_lines.sh)
echo "===="
echo "$result_lines" # <== OK.
echo "===="
${vars.get("TEST_VAR").setValue("$result_lines")} # <== FAIL. Updated to the raw string "$result_lines" not the actual texts.
${vars.get("TEST_VAR").setValue("${result_lines}")} # <== FAIL. mvel
- solved #2
- replies 1
- views 1030
- stars 1
-