Skip to content

Commit c8f8dda

Browse files
authored
Update BuildRDLFiles.ps1
1 parent b166084 commit c8f8dda

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

BuildRDLFiles.ps1

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff 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 = @()
78
Get-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

0 commit comments

Comments
 (0)