I have a secret variable that can contain the format $(...)
, however I want this to be treated literally, is there a way to do this? Everything I’ve tried so far expands the inner variable.
<code>trigger: none
variables:
- group: SomeVariableGroup # containing variable someVar with value hello$(anotherVar)
- name: anotherVar
value: XXX
stages:
- stage: stage1
jobs:
- job: job1
steps:
- bash: echo $(someVar) # This should print hello$(anotherVar) NOT helloXXX
</code>
<code>trigger: none
variables:
- group: SomeVariableGroup # containing variable someVar with value hello$(anotherVar)
- name: anotherVar
value: XXX
stages:
- stage: stage1
jobs:
- job: job1
steps:
- bash: echo $(someVar) # This should print hello$(anotherVar) NOT helloXXX
</code>
trigger: none
variables:
- group: SomeVariableGroup # containing variable someVar with value hello$(anotherVar)
- name: anotherVar
value: XXX
stages:
- stage: stage1
jobs:
- job: job1
steps:
- bash: echo $(someVar) # This should print hello$(anotherVar) NOT helloXXX