File tree 2 files changed +12
-13
lines changed
PipelineSteps/BatchGeneration
2 files changed +12
-13
lines changed Original file line number Diff line number Diff line change 3
3
[string ]$PipelineWorkspace
4
4
)
5
5
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
-
15
6
# Check number of generation targets
16
- $generationTargetsFile = Join-Path $PipelineWorkspace " _current " " generationTargets.json"
7
+ $generationTargetsFile = Join-Path $RepoRoot " artifacts " " generationTargets.json"
17
8
$generationTargets = Get-Content - Raw - Path $generationTargetsFile | ConvertFrom-Json
18
9
$totalGenerationModules = 0
19
10
foreach ($outerKey in $generationTargets.PSObject.Properties.Name ) {
@@ -29,7 +20,7 @@ $targetPatterns = @{
29
20
Test = " testWindowsTargets.json"
30
21
}
31
22
foreach ($pattern in $targetPatterns.GetEnumerator ()) {
32
- $targetFilePath = Join-Path $PipelineWorkspace " _current " $pattern.Value
23
+ $targetFilePath = Join-Path $RepoRoot " artifacts " $pattern.Value
33
24
$targetJson = Get-Content - Raw - Path $targetFilePath | ConvertFrom-Json
34
25
$total = ($targetJson.PSObject.Properties.Value | ForEach-Object {
35
26
$_.Count
Original file line number Diff line number Diff line change @@ -435,10 +435,18 @@ stages:
435
435
fetchDepth : 1
436
436
fetchTags : false
437
437
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
+
438
448
- download : current
439
449
patterns : |
440
- prepare/generationTargets.json
441
- filter/**
442
450
**/AnalyseReport-*.json
443
451
**/GenerationReport-*.json
444
452
**/BuildReport-*.json
You can’t perform that action at this time.
0 commit comments