I'm trying to change a build description text according to some parameters. The BuildNumber
follows but the build description (the big name of the build) doesn't seem to interpret the variables.
Here's an extract of the yaml
variables:
- group: NumVersion
- name: upperversion
${{ if eq(parameters.VersionBuild,'ReleaseProd') }}:
value: $(1-VersionMajeur).$(2-VersionMineure-ReleaseProd)
${{ if eq(parameters.VersionBuild,'Release') }}:
value: $(1-VersionMajeur).$(2-VersionMineure-Release)
${{ if eq(parameters.VersionBuild,'Develop') }}:
value: $(1-VersionMajeur).$(2-VersionMineure-Dev)
- name: lowerversion
${{ if eq(parameters.TypeBuild,'Feature') }}:
value: 99.$(Build.BuildId)
${{ if eq(parameters.TypeBuild,'Validation') }}:
value: 0.$(Build.BuildId)
name: $(upperversion).$(lowerversion)
steps:
- script: |
echo $(Build.BuildNumber)
echo $(upperversion)
echo $(lowerversion)
displayName: Second variable pass
The output of the bash script
The name of the build
Did I forget something to set or should I use another way of calling the variables?
Thanks for your help!