Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pipelines/PowerShell-Packages-Official.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ variables:
resources:
pipelines:
- pipeline: CoOrdinatedBuildPipeline
source: 'PowerShell-Coordinated Packages-Official'
source: 'PowerShell-Coordinated Binaries-Official'
trigger:
branches:
include:
Expand Down
2 changes: 1 addition & 1 deletion .pipelines/PowerShell-Release-Official-Azure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ resources:

pipelines:
- pipeline: CoOrdinatedBuildPipeline
source: 'PowerShell-Coordinated Packages-Official'
source: 'PowerShell-Coordinated Binaries-Official'

- pipeline: PSPackagesOfficial
source: 'PowerShell-Packages-Official'
Expand Down
2 changes: 1 addition & 1 deletion .pipelines/PowerShell-Release-Official.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ resources:

pipelines:
- pipeline: CoOrdinatedBuildPipeline
source: 'PowerShell-Coordinated Packages-Official'
source: 'PowerShell-Coordinated Binaries-Official'

- pipeline: PSPackagesOfficial
source: 'PowerShell-Packages-Official'
Expand Down
10 changes: 0 additions & 10 deletions .pipelines/templates/checkAzureContainer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,6 @@ jobs:
}
displayName: 'Check suppress.json'

# Needed as per FAQ here: https://eng.ms/docs/products/onebranch/build/troubleshootingfaqs
- task: PowerShell@2
displayName: 'Update Az.Storage Module'
inputs:
targetType: 'inline'
script: |
Get-PackageProvider -Name NuGet -ForceBootstrap
Install-Module -Name Az.Storage -Verbose -Force -AllowClobber
Uninstall-AzureRm -Verbose

- task: AzurePowerShell@5
displayName: Check if blob exists and delete if specified
inputs:
Expand Down
13 changes: 0 additions & 13 deletions .pipelines/templates/compliance/apiscan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,19 +78,6 @@ jobs:
workingDirectory: '$(repoRoot)'
retryCountOnTaskFailure: 2

- pwsh: |
$modules = 'Az.Accounts', 'Az.Storage'
foreach($module in $modules) {
if(!(get-module $module -listavailable)) {
Write-Verbose "installing $module..." -verbose
Install-Module $module -force -AllowClobber
} else {
Write-Verbose "$module already installed." -verbose
}
}
displayName: Install PowerShell modules
workingDirectory: '$(repoRoot)'

- task: AzurePowerShell@5
displayName: Download winverify-private Artifacts
inputs:
Expand Down
23 changes: 0 additions & 23 deletions .pipelines/templates/compliance/generateNotice.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,29 +95,6 @@ jobs:
Get-PackageProvider -Name NuGet -ForceBootstrap
displayName: Initalize PowerShellGet

- powershell: |
$modules = 'Az.Accounts', 'Az.Storage'
foreach($module in $modules) {
if(!(get-module $module -listavailable)) {
Write-Verbose "installing $module..." -verbose
Install-Module $module -force -AllowClobber
} else {
Write-Verbose "$module already installed." -verbose
#Update-Module $module -verbose
}
}
displayName: Install PowerShell modules

- powershell: |
if(Get-Command -Name Uninstall-AzureRm -ErrorAction Ignore){
Write-Verbose "running Uninstall-AzureRm" -verbose
Uninstall-AzureRm
} else {
Write-Verbose "Uninstall-AzureRm not present" -verbose
}
displayName: Uninstall Uninstall-AzureRm
continueOnError: true

- task: AzurePowerShell@5
displayName: Upload Notice
inputs:
Expand Down
22 changes: 0 additions & 22 deletions .pipelines/templates/release-MakeBlobPublic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,17 +52,6 @@ jobs:
Get-ChildItem Env:
displayName: 'Capture Environment Variables'

- 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: Copy blobs to PSInfra storage
inputs:
Expand Down Expand Up @@ -150,17 +139,6 @@ jobs:
Get-ChildItem Env:
displayName: 'Capture Environment Variables'

- 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: Copy blobs to PSInfra storage
inputs:
Expand Down
3 changes: 2 additions & 1 deletion .pipelines/templates/release-create-msix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ jobs:
artifact: drop_windows_package_package_win_x86
displayName: Download x86 msix
patterns: '**/*.msix'


# Finds the makeappx tool on the machine with image: 'onebranch.azurecr.io/windows/ltsc2022/vse2022:latest'
- pwsh: |
$cmd = Get-Command makeappx.exe -ErrorAction Ignore
if ($cmd) {
Expand Down
11 changes: 0 additions & 11 deletions .pipelines/templates/release-upload-buildinfo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,17 +104,6 @@ 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:
Expand Down
12 changes: 0 additions & 12 deletions .pipelines/templates/release-validate-packagenames.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,6 @@ jobs:
Write-Host "##vso[build.updatebuildnumber]$name"
displayName: Set Release Name

- 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 and install Az.Storage

- task: AzurePowerShell@5
displayName: Upload packages to blob
inputs:
Expand Down
12 changes: 0 additions & 12 deletions .pipelines/templates/uploadToAzure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -256,18 +256,6 @@ jobs:
New-Item -Path $(Build.ArtifactStagingDirectory)/uploaded -ItemType Directory -Force
displayName: Create output directory for packages

- 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 packages to blob
inputs:
Expand Down
Loading