Fix nuget publish and buildinfo

This commit is contained in:
Aditya Patwardhan
2024-05-24 11:55:08 -07:00
parent 4efee1a67b
commit d3b9f612d2
2 changed files with 15 additions and 4 deletions
@@ -59,11 +59,11 @@ jobs:
Get-ChildItem "$(Pipeline.Workspace)/release" -recurse
displayName: Download and capture nupkgs
condition: and(eq('${{ parameters.skipPublish }}', 'false'), succeeded())
condition: and(ne('${{ parameters.skipPublish }}', 'false'), succeeded())
- task: NuGetCommand@2
displayName: 'NuGet push'
condition: and(eq('${{ parameters.skipPublish }}', 'false'), succeeded())
condition: and(ne('${{ parameters.skipPublish }}', 'false'), succeeded())
inputs:
command: push
packagesToPush: '$(Pipeline.Workspace)/release/*.nupkg'
@@ -4,8 +4,8 @@ parameters:
type: boolean
jobs:
- job: PMCPublish
displayName: Publish to PMC
- job: BuildInfoPublish
displayName: Publish BuildInfo
condition: succeeded()
pool:
type: windows
@@ -93,6 +93,17 @@ jobs:
}
displayName: Create json files
- pwsh: |
$azureRmModule = Get-InstalledModule AzureRM -ErrorAction SilentlyContinue -Verbose
if ($azureRmModule) {
Write-Host 'AzureRM module exists. Removing it'
Uninstall-AzureRm
Write-Host 'AzureRM module removed'
}
Install-Module -Name Az.Storage -Force -AllowClobber -Scope CurrentUser -Verbose
displayName: Remove AzRM modules
- task: AzurePowerShell@5
displayName: Upload buildjson to blob
inputs: