'groovy script variable with quotation

I'm writing a jenkins File with groovy script. I want to add to one of my variable quotation, and than echo this with shell.

my code:

VARIABLE="\"" + "i love you" + "\""
sh "echo ${VARIABLE}"

output:

i love you

desired output:

"i love you"

thanks!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source