lunes, 6 de enero de 2025

Can't use Predefined variables under environment tags in YAML azure devops pipelines

We should use the syntax ${{}} for compile time in the tag of the environment.

tags: ${{variables['Build.SourceVersion']}}

 

However, we cannot use $(Build.BuildId), $(Build.BuildURL), and $(Build.BuildNumber), because their values aren't set at the time expressions are evaluated.

No hay comentarios:

Publicar un comentario