i have a variables declared in yaml templates like
# File: vars.yml
variables:
- name: firstvar
value:'first var value'
- name: secondvar
value:'second var value'
and in pipeline i'm using extend template
trigger:
- none
extends:
template: resource-template.yml
paramters:
uservariablestemplate: <i want to pass above variable yaml template here>
because my extend template using other variables so this user defined variables should be used in there
# File: resource-template.yml
parameters:
- name: uservariablestemplate
type: string
default: none
resources:
repositories:
- repository: samplerepo
type: git
name: myproject/myrepo
variables:
- template: centralvariables.yml@samplerepo
- template: <i want to use variable template from user here>
steps:
- script: echo "Testing resource template"
Any help would be appreciated. or any other workaround to achieve this.
