Ask Your Question
1

What is the method for utilizing the variables I have defined within the Azure Pipeline interface as the job name or displayName?

asked 2023-06-15 12:46:10 +0000

huitzilopochtli gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2023-06-15 13:14:01 +0000

pufferfish gravatar image

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.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-06-15 12:46:10 +0000

Seen: 12 times

Last updated: Jun 15 '23