【问题标题】:Concatenate string with Octopus variable in the config file将字符串与配置文件中的 Octopus 变量连接起来
【发布时间】:2021-04-25 11:51:48
【问题描述】:

我在配置中有章鱼变量。我想连接章鱼变量#{HostName-test-site}"preview-" 字符串

如果我在配置中尝试以下操作

 <site name="testSite" hostName="preview-#{HostName-test-site}" xdt:Transform="SetAttributes" xdt:Locator="Match(name)" />

这行得通吗?或者还有其他方法可以将章鱼变量与字符串连接起来吗?

【问题讨论】:

    标签: asp.net asp.net-mvc asp.net-core web-config octopus-deploy


    【解决方案1】:

    如果您在步骤中启用Substitute Variables in Templates 功能,这将起作用。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-05-13
      • 2020-06-20
      • 2016-01-28
      • 2019-12-15
      • 2013-10-20
      • 1970-01-01
      • 2016-06-26
      • 2012-03-10
      相关资源
      最近更新 更多