Skip to content

Commit 9fdc77f

Browse files
committed
Fix path 4
1 parent 70b3c3a commit 9fdc77f

File tree

2 files changed

+12
-13
lines changed

2 files changed

+12
-13
lines changed

.azure-pipelines/PipelineSteps/BatchGeneration/report.ps1

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,8 @@ param (
33
[string]$PipelineWorkspace
44
)
55

6-
Get-ChildItem -Path $PipelineWorkspace -Recurse -Depth 2 | ForEach-Object {
7-
if ($_.PSIsContainer) {
8-
Write-Host "DIR : $($_.FullName)"
9-
} else {
10-
Write-Host "FILE: $($_.FullName)"
11-
}
12-
}
13-
14-
156
# Check number of generation targets
16-
$generationTargetsFile = Join-Path $PipelineWorkspace "_current" "generationTargets.json"
7+
$generationTargetsFile = Join-Path $RepoRoot "artifacts" "generationTargets.json"
178
$generationTargets = Get-Content -Raw -Path $generationTargetsFile | ConvertFrom-Json
189
$totalGenerationModules = 0
1910
foreach ($outerKey in $generationTargets.PSObject.Properties.Name) {
@@ -29,7 +20,7 @@ $targetPatterns = @{
2920
Test = "testWindowsTargets.json"
3021
}
3122
foreach ($pattern in $targetPatterns.GetEnumerator()) {
32-
$targetFilePath = Join-Path $PipelineWorkspace "_current" $pattern.Value
23+
$targetFilePath = Join-Path $RepoRoot "artifacts" $pattern.Value
3324
$targetJson = Get-Content -Raw -Path $targetFilePath | ConvertFrom-Json
3425
$total = ($targetJson.PSObject.Properties.Value | ForEach-Object {
3526
$_.Count

.azure-pipelines/batch-generation.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -435,10 +435,18 @@ stages:
435435
fetchDepth: 1
436436
fetchTags: false
437437

438+
- task: DownloadPipelineArtifact@2
439+
inputs:
440+
artifactName: 'prepare'
441+
targetPath: artifacts
442+
443+
- task: DownloadPipelineArtifact@2
444+
inputs:
445+
artifactName: 'filter'
446+
targetPath: artifacts
447+
438448
- download: current
439449
patterns: |
440-
prepare/generationTargets.json
441-
filter/**
442450
**/AnalyseReport-*.json
443451
**/GenerationReport-*.json
444452
**/BuildReport-*.json

0 commit comments

Comments
 (0)