Skip to content

Commit 78261c5

Browse files
committed
Fix path
1 parent e4642c3 commit 78261c5

File tree

4 files changed

+14
-6
lines changed

4 files changed

+14
-6
lines changed

.azure-pipelines/PipelineSteps/BatchGeneration/batch-generate-modules.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ foreach ($moduleName in $sortedModuleNames) {
9696
$date = Get-Date -Format "dd/MM/yy"
9797
$newChangeLogEntry = "* Autorest version: $AutorestVersion - $date"
9898
$changeLogContent.Insert(1, $newChangeLogEntry)
99-
Set-Content $changelogPath -Value $changeLogContent
99+
Set-Content $changeLogPath -Value $changeLogContent
100100
$moduleResult.Changed = "Yes, Autorest Change Log Updated"
101101
Write-Host "New change log entry added to $changeLogPath"
102102
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ param (
44
)
55

66
# Check number of generation targets
7-
$generationTargetsFile = Join-Path $PipelineWorkspace "prepare" "generationTargets.json"
7+
$generationTargetsFile = Join-Path $RepoRoot "artifacts" "generationTargets.json"
88
$generationTargets = Get-Content -Raw -Path $generationTargetsFile | ConvertFrom-Json
99
$totalGenerationModules = 0
1010
foreach ($outerKey in $generationTargets.PSObject.Properties.Name) {
@@ -20,7 +20,7 @@ $targetPatterns = @{
2020
Test = "testWindowsTargets.json"
2121
}
2222
foreach ($pattern in $targetPatterns.GetEnumerator()) {
23-
$targetFilePath = Join-Path $PipelineWorkspace "filter" $pattern.Value
23+
$targetFilePath = Join-Path $RepoRoot "artifacts" $pattern.Value
2424
$targetJson = Get-Content -Raw -Path $targetFilePath | ConvertFrom-Json
2525
$total = ($targetJson.PSObject.Properties.Value | ForEach-Object {
2626
$_.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

src/Astro/Astro.Autorest/test/Get-AzAstroOrganization.Recording.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
}
1919
},
2020
"Response": {
21-
"StatusCode": 800,
21+
"StatusCode": 200,
2222
"Headers": {
2323
"Cache-Control": [ "no-cache" ],
2424
"Pragma": [ "no-cache" ],

0 commit comments

Comments
 (0)