File tree 4 files changed +14
-6
lines changed
PipelineSteps/BatchGeneration
src/Astro/Astro.Autorest/test
4 files changed +14
-6
lines changed Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ foreach ($moduleName in $sortedModuleNames) {
96
96
$date = Get-Date - Format " dd/MM/yy"
97
97
$newChangeLogEntry = " * Autorest version: $AutorestVersion - $date "
98
98
$changeLogContent.Insert (1 , $newChangeLogEntry )
99
- Set-Content $changelogPath - Value $changeLogContent
99
+ Set-Content $changeLogPath - Value $changeLogContent
100
100
$moduleResult.Changed = " Yes, Autorest Change Log Updated"
101
101
Write-Host " New change log entry added to $changeLogPath "
102
102
}
Original file line number Diff line number Diff line change 4
4
)
5
5
6
6
# Check number of generation targets
7
- $generationTargetsFile = Join-Path $PipelineWorkspace " prepare " " generationTargets.json"
7
+ $generationTargetsFile = Join-Path $RepoRoot " artifacts " " generationTargets.json"
8
8
$generationTargets = Get-Content - Raw - Path $generationTargetsFile | ConvertFrom-Json
9
9
$totalGenerationModules = 0
10
10
foreach ($outerKey in $generationTargets.PSObject.Properties.Name ) {
@@ -20,7 +20,7 @@ $targetPatterns = @{
20
20
Test = " testWindowsTargets.json"
21
21
}
22
22
foreach ($pattern in $targetPatterns.GetEnumerator ()) {
23
- $targetFilePath = Join-Path $PipelineWorkspace " filter " $pattern.Value
23
+ $targetFilePath = Join-Path $RepoRoot " artifacts " $pattern.Value
24
24
$targetJson = Get-Content - Raw - Path $targetFilePath | ConvertFrom-Json
25
25
$total = ($targetJson.PSObject.Properties.Value | ForEach-Object {
26
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
Original file line number Diff line number Diff line change 18
18
}
19
19
},
20
20
"Response" : {
21
- "StatusCode" : 800 ,
21
+ "StatusCode" : 200 ,
22
22
"Headers" : {
23
23
"Cache-Control" : [ " no-cache" ],
24
24
"Pragma" : [ " no-cache" ],
You can’t perform that action at this time.
0 commit comments