无法将多行字符串设置为环境变量

时间:2017-10-09 14:38:26

标签: tfs azure-devops tfsbuild arm-template

如何在VSTS powershell任务上将多行字符串设置为环境变量。以下代码仅保存字符串的第一行。

KeyError: 'cannot use a single bool to index into setitem'

1 个答案:

答案 0 :(得分:3)

不支持构建或发布中的多行变量,因此在构建/发布期间也不能设置多变量。

相关用户声音:Multiple lines variable in Build and Release

使用base64字符串执行此操作是一种好方法。