Switch to our custom images for build and release (#16801)

This commit is contained in:
Travis Plunk 2022-01-26 11:47:14 -08:00 committed by travis plunk
parent 64ff0fc799
commit f5381d5694
21 changed files with 36 additions and 28 deletions

View File

@ -1938,7 +1938,7 @@ function Start-PSBootstrap {
elseif ($environment.IsUbuntu18) { $Deps += "libicu60"}
# Packaging tools
if ($Package) { $Deps += "ruby-dev", "groff", "libffi-dev" }
if ($Package) { $Deps += "ruby-dev", "groff", "libffi-dev", "rpm" }
# Install dependencies
# change the fontend from apt-get to noninteractive

View File

@ -982,7 +982,15 @@ function New-UnixPackage {
try {
if ($PSCmdlet.ShouldProcess("Create $type package")) {
Write-Log "Creating package with fpm..."
$Output = Start-NativeExecution { fpm $Arguments }
try {
$Output = Start-NativeExecution { fpm $Arguments }
}
catch {
Write-Verbose -Message "!!!Handling error in FPM!!!" -Verbose -ErrorAction SilentlyContinue
Write-Verbose -Message "$Output" -Verbose -ErrorAction SilentlyContinue
Get-Error -InputObject $_
throw
}
}
} finally {
if ($Environment.IsMacOS) {
@ -4097,7 +4105,7 @@ function Invoke-AzDevOpsLinuxPackageCreation {
}
}
catch {
Get-Error
Get-Error -InputObject $_
throw
}
}
@ -4178,7 +4186,7 @@ function Invoke-AzDevOpsLinuxPackageBuild {
}
}
catch {
Get-Error
Get-Error -InputObject $_
throw
}
}

View File

@ -207,7 +207,7 @@ stages:
pool:
name: PowerShell1ES
demands:
- ImageOverride -equals MMS2019TLS
- ImageOverride -equals PSMMS2019-Secure
steps:
- checkout: self
clean: true

View File

@ -179,7 +179,7 @@ stages:
pool: PowerShell1ES
demands:
- ImageOverride -equals MMS2019TLS
- ImageOverride -equals PSMMS2019-Secure
variables:
- group: 'Staging_ACR'
@ -195,7 +195,7 @@ stages:
pool: PowerShell1ES
demands:
- ImageOverride -equals MMS2019TLS
- ImageOverride -equals PSMMS2019-Secure
variables:
- group: 'Azure Blob variable group'
@ -231,7 +231,7 @@ stages:
pool: PowerShell1ES
demands:
- ImageOverride -equals MMS2019TLS
- ImageOverride -equals PSMMS2019-Secure
steps:
- template: templates/release-ReleaseToNuGet.yml
@ -240,7 +240,7 @@ stages:
pool: PowerShell1ES
demands:
- ImageOverride -equals MMSUbuntu20.04TLS
- ImageOverride -equals PSMMSUbuntu20.04-Secure
variables:
- group: 'AzDevOpsArtifacts'
@ -337,7 +337,7 @@ stages:
pool: PowerShell1ES
demands:
- ImageOverride -equals MMS2019TLS
- ImageOverride -equals PSMMS2019-Secure
variables:
- group: 'Azure Blob variable group'

View File

@ -10,7 +10,7 @@ jobs:
pool:
name: PowerShell1ES
demands:
- ImageOverride -equals MMS2019TLS
- ImageOverride -equals PSMMS2019-Secure
steps:
- checkout: self
clean: true

View File

@ -18,7 +18,7 @@ jobs:
pool:
name: PowerShell1ES
demands:
- ImageOverride -equals MMS2019TLS
- ImageOverride -equals PSMMS2019-Secure
# APIScan can take a long time
timeoutInMinutes: 180

View File

@ -19,7 +19,7 @@ jobs:
pool:
name: PowerShell1ES
demands:
- ImageOverride -equals MMS2019TLS
- ImageOverride -equals PSMMS2019-Secure
# APIScan can take a long time
timeoutInMinutes: 180

View File

@ -16,7 +16,7 @@ jobs:
pool:
name: PowerShell1ES
demands:
- ImageOverride -equals MMS2019TLS
- ImageOverride -equals PSMMS2019-Secure
timeoutInMinutes: 15

View File

@ -15,7 +15,7 @@ jobs:
pool:
name: PowerShell1ES
demands:
- ImageOverride -equals MMS2019TLS
- ImageOverride -equals PSMMS2019-Secure
steps:
#- task: <task type name>@<version>

View File

@ -10,7 +10,7 @@ jobs:
pool:
name: PowerShell1ES
demands:
- ImageOverride -equals MMSUbuntu20.04TLS
- ImageOverride -equals PSMMSUbuntu20.04-Secure
dependsOn: ${{ parameters.parentJob }}
variables:
- name: runCodesignValidationInjection
@ -151,7 +151,7 @@ jobs:
pool:
name: PowerShell1ES
demands:
- ImageOverride -equals MMS2019TLS
- ImageOverride -equals PSMMS2019-Secure
variables:
- name: buildName
value: ${{ parameters.buildName }}

View File

@ -9,7 +9,7 @@ jobs:
pool:
name: PowerShell1ES
demands:
- ImageOverride -equals MMS2019TLS
- ImageOverride -equals PSMMS2019-Secure
variables:
- group: ESRP

View File

@ -9,7 +9,7 @@ jobs:
pool:
name: PowerShell1ES
demands:
- ImageOverride -equals MMS2019TLS
- ImageOverride -equals PSMMS2019-Secure
variables:
- group: ESRP
- name: runCodesignValidationInjection

View File

@ -10,7 +10,7 @@ jobs:
pool:
name: PowerShell1ES
demands:
- ImageOverride -equals MMS2019TLS
- ImageOverride -equals PSMMS2019-Secure
timeoutInMinutes: 90

View File

@ -4,7 +4,7 @@ jobs:
pool: PowerShell1ES
demands:
- ImageOverride -equals MMS2019TLS
- ImageOverride -equals PSMMS2019-Secure
variables:
- group: msixTools

View File

@ -4,7 +4,7 @@ jobs:
pool: PowerShell1ES
demands:
- ImageOverride -equals MMS2019TLS
- ImageOverride -equals PSMMS2019-Secure
variables:
- group: 'Azure Blob variable group'

View File

@ -10,7 +10,7 @@ jobs:
condition: succeeded()
pool: PowerShell1ES
demands:
- ImageOverride -equals MMS2019TLS
- ImageOverride -equals PSMMS2019-Secure
steps:
- checkout: self
clean: true

View File

@ -12,7 +12,7 @@ jobs:
pool:
name: PowerShell1ES
demands:
- ImageOverride -equals MMS2019TLS
- ImageOverride -equals PSMMS2019-Secure
steps:
- checkout: self

View File

@ -16,7 +16,7 @@ jobs:
pool:
name: PowerShell1ES
demands:
- ImageOverride -equals MMS2019TLS
- ImageOverride -equals PSMMS2019-Secure
variables:
- name: runCodesignValidationInjection
value: false

View File

@ -10,7 +10,7 @@ jobs:
pool:
name: PowerShell1ES
demands:
- ImageOverride -equals MMS2019TLS
- ImageOverride -equals PSMMS2019-Secure
variables:
- name: DOTNET_SKIP_FIRST_TIME_EXPERIENCE
value: 1

View File

@ -16,7 +16,7 @@ jobs:
pool:
name: PowerShell1ES
demands:
- ImageOverride -equals MMS2019TLS
- ImageOverride -equals PSMMS2019-Secure
variables:
- name: BuildConfiguration
value: ${{ parameters.BuildConfiguration }}

View File

@ -27,7 +27,7 @@ stages:
pool: PowerShell1ES
demands:
- ImageOverride -equals MMS2019TLS
- ImageOverride -equals PSMMS2019-Secure
steps:
- checkout: self