ПРобую так:
def test = "https://someurlru/jira/rest/atm/1.0/testrun/${testCycleKey}/testcase/${line}/testresult"
echo "test - ${test}"
def response23 = sh(script: "curl -X PUT -H \'Content-Type: application/json\' -k --basic --user ${username}:${password} -d \'{\"assignedTo\":\"str-sa-sbkd0001\",\"executedBy\":\"str-sa-sbkd0001\"}\' \"${test}\"", returnStdout: true)
}
выдается ошибка
script.sh: line 1: syntax error near unexpected token `f2b6^