File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,15 +2,20 @@ $rdlFolder = "$(Build.SourcesDirectory)\reports"
22$artifactDir = " $ ( Build.ArtifactStagingDirectory) "
33$newManifestPath = Join-Path $artifactDir " rdl-manifest.json"
44
5+ # Step 1: Compute hashes
56# Step 1: Compute hashes
67$newHashes = @ ()
78Get-ChildItem - Path $rdlFolder - Filter * .rdl - File - Recurse | ForEach-Object {
89 $hash = Get-FileHash - Algorithm SHA256 - Path $_.FullName
10+ $relativePath = $_.FullName.Substring ($rdlFolder.Length + 1 )
11+ $folder = Split-Path $relativePath - Parent # this is the repo subfolder
12+
913 $newHashes += [PSCustomObject ]@ {
10- FileName = $_.Name
11- RelativePath = $_.FullName.Substring ($rdlFolder.Length + 1 )
12- Hash = $hash.Hash
13- FullPath = $_.FullName
14+ FileName = $_.Name
15+ RelativePath = $relativePath
16+ Folder = $folder
17+ Hash = $hash.Hash
18+ FullPath = $_.FullName
1419 }
1520}
1621
You can’t perform that action at this time.
0 commit comments