Azure devops发行版变量未在自定义服务器任务中解析

问题描述 投票:0回答:1

在发布管道上的自定义服务器任务中尝试在运行时无法解析以下发布变量。

  • System.JobName
  • System.JobDisplayName

  • System.StageDisplayName

  • System.DefinitionName

我能够通过使用$(system.JobId)来获取JobId,但不能如上所述使用其他作业详细信息(JobName)。我在这里错过了什么吗?

enter image description here

azure-devops azure-pipelines-release-pipeline
1个回答
-1
投票

那些YAML管道变量。它们将无法在传统的发布管道中使用。

使用特定于发行版的等效项:https://docs.microsoft.com/en-us/azure/devops/pipelines/release/variables?view=azure-devops&tabs=batch#default-variables

© www.soinside.com 2019 - 2024. All rights reserved.