Skip to content

Commit f0c9a9f

Browse files
authored
Add generation task to auto-generate manifest file. (#23848)
1 parent bd8a1dd commit f0c9a9f

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.azure-pipelines/code-oob.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ stages:
7474
``````
7575
- Install the latest Az.Accounts module unless the OOB build requires a specific version.
7676
``````powershell
77-
Install-Module Az.Accounts -Repository PSGallery
77+
Install-Module Az.Accounts -Repository PSGallery
7878
``````
7979
- Use Az.Tools.Installer to install the OOB build.
8080
``````powershell
@@ -118,7 +118,6 @@ stages:
118118
displayName: Create PR to main branch
119119
condition: and(succeeded(), eq(variables['NeedBumpUp'], 'true'))
120120

121-
122121
- task: PowerShell@2
123122
displayName: publish oob tools
124123
inputs:
@@ -127,6 +126,13 @@ stages:
127126
Copy-Item .\tools\ModulePublisher.psd1 -Destination OOB
128127
Copy-Item .\tools\ModulePublisher.psm1 -Destination OOB
129128
Copy-Item .\tools\NuGet.exe -Destination OOB
129+
130+
- task: ManifestGeneratorTask@0
131+
displayName: 'Generation Task'
132+
inputs:
133+
PackageName: 'Azure PowerShell - ${{ parameters.ServiceName }}'
134+
BuildDropPath: '$(System.ArtifactsDirectory)/OOB'
135+
130136
- task: PublishBuildArtifacts@1
131137
inputs:
132138
PathtoPublish: OOB
@@ -172,4 +178,4 @@ stages:
172178
$moduleName = $jsonObject.ModuleName
173179
$context = New-AzStorageContext -StorageAccountName "$(TestStorageAccountName)"
174180
$package = Get-Item "$(System.ArtifactsDirectory)/artifacts/Az.$moduleName.$versionNumber.nupkg"
175-
$package | Set-AzStorageBlobContent -Container "public" -Context $context -Force
181+
$package | Set-AzStorageBlobContent -Container "public" -Context $context -Force

0 commit comments

Comments
 (0)