...
1parameters:
2 - name: ServiceDirectory
3 type: string
4 default: not-specified
5 - name: ScriptDirectory
6 type: string
7 default: eng/common/scripts
8
9steps:
10 - pwsh: |
11 # If the last path segment is an absolute path it will be used entirely.
12 $root = [System.IO.Path]::Combine('$(Build.SourcesDirectory)', 'sdk', '${{ parameters.ServiceDirectory }}')
13 Get-ChildItem $root -Filter *.md -Recurse | ${{ parameters.ScriptDirectory }}/Test-SampleMetadata.ps1 -AllowParentProducts
14 displayName: Verify sample metadata
15 workingDirectory: $(Build.SourcesDirectory)
View as plain text