File tree Expand file tree Collapse file tree
PipelineSteps/BatchGeneration Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
1910foreach ($outerKey in $generationTargets.PSObject.Properties.Name ) {
@@ -29,7 +20,7 @@ $targetPatterns = @{
2920 Test = " testWindowsTargets.json"
3021}
3122foreach ($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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments