Created
May 26, 2021 13:16
-
-
Save bjh1977/893225d7bda2523e245f0878875750f8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pool: | |
vmImage: windows-latest | |
variables: | |
- template: vars-all.yml | |
- template: vars-dev.yml | |
steps: | |
# Use default for variable value (look for "$(..)"), but only for variable name "resourcename", and only warn | |
- task: validateVariablesTask@0 | |
displayName: 'Validate Variables 1' | |
inputs: | |
varNameRegex: resourcename | |
warnOrError: Warn | |
# Use default for variable value (look for "$(..)"), warnOrError (error), but only for variable name "resourcename" | |
- task: validateVariablesTask@0 | |
displayName: 'Validate Variables 2' | |
inputs: | |
varNameRegex: resourcename | |
# Use default for variable value (look for "$(..)"), but only for variable name "resourcename", and only warn | |
- task: validateVariablesTask@0 | |
displayName: 'Validate Variables 3' | |
inputs: | |
varNameRegex: resourcename | |
warnOrError: Warn | |
# Use defaults (check all vars, look for "$(..)"), error if invalid | |
- task: validateVariablesTask@0 | |
displayName: 'Validate Variables 4' | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment