To utilize the variables defined within the Azure Pipeline interface as the job name or displayName, you need to use the syntax ${{variables.variableName}}
. For example, if you have defined a variable named jobName
, you can use it in the job name or displayName like this:
jobs:
- job: ${{variables.jobName}}
displayName: ${{variables.jobName}}
steps:
...
This will set the job name and displayName to the value of the jobName
variable.
Asked: 2023-06-15 12:46:10 +0000
Seen: 13 times
Last updated: Jun 15 '23