【发布时间】:2025-12-25 22:25:11
【问题描述】:
我正在尝试在“运行脚本”步骤中为内置发行说明变量赋值。
$OctopusParameters["Octopus.Release.Notes"] = "Some release notes"
在下一步“发送电子邮件”中,我在电子邮件正文中使用此变量,但不幸的是它是空的。
<p>#{Octopus.Release.Notes}</p>
是否可以通过 PowerShell 设置 Octopus Deploy 系统变量值并在下一步中使用?
我正在使用 Octopus Deploy 3.7.11。
编辑:
我也尝试了 cmdlet Set-OctopusVariable,但它不起作用。
Set-OctopusVariable -name "Octopus.Release.Notes" -value "Something"
【问题讨论】:
-
这与我的问题有什么关系?我在问如何在 Octopus Deploy 中设置变量而不是 Windows 中的环境变量。
标签: octopus-deploy