This keeps tripping me.
This will result in invalid properties file format:
environmentVariables { env 'config', '''multiline content '''
You have to add sth like string.replaceAll('\n','\\\\n' ) to escape it manually