最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

How to pass a variable from Teamcity to Octopus deploy - Stack Overflow

programmeradmin2浏览0评论

I need to send a variable from Teamcity to Octopus Deploy, to use it there in a PowerShell script

I have tried to send it using "Additional command line arguments" in the step "Build Step: OctopusDeploy: Create release", using --variable "OctopusRegistry=Snapshot" in Teamcity

But when I try to show it using Write-Output "OctopusRegistry: $OctopusParameters["OctopusRegistry"]" in a powershell script in Octopus I get the following error:

OctopusRegistry: System.Collections.Generic.Dictionary`2[System.String,System.String]

Thanks!

发布评论

评论列表(0)

  1. 暂无评论