Regarding the Insertion section of this documentation:
Is it possible to reference a local template as an inserted step(s) in a remote template.
For example, I can't seem to get something like this to work:
# File: jobs/build.yml (remotetemplates)
parameters:
preBuild: []
preTest: []
preSign: []
jobs:
- job: Build
pool:
vmImage: 'vs2017-win2016'
steps:
- script: cred-scan
- ${{ parameters.preBuild }}
- task: msbuild@1
- ${{ parameters.preTest }}
- task: vstest@2
- ${{ parameters.preSign }}
- script: sign
# File: .vsts.ci.yml
jobs:
- template: jobs/build.yml@remotetemplates
parameters:
preBuild:
- template: templates/steps/my-local-steps.yml
The result is something like: jobs/build.yml@remotetemplates: File templates/steps/my-local-steps.yml not found in repository <URL of remote repository>
Is there another approach I can use that would allow me to do this?