Switch to our custom images for build and release (#16801)
This commit is contained in:
parent
64ff0fc799
commit
f5381d5694
@ -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
|
||||
|
@ -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
|
||||
}
|
||||
}
|
||||
|
@ -207,7 +207,7 @@ stages:
|
||||
pool:
|
||||
name: PowerShell1ES
|
||||
demands:
|
||||
- ImageOverride -equals MMS2019TLS
|
||||
- ImageOverride -equals PSMMS2019-Secure
|
||||
steps:
|
||||
- checkout: self
|
||||
clean: true
|
||||
|
@ -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'
|
||||
|
@ -10,7 +10,7 @@ jobs:
|
||||
pool:
|
||||
name: PowerShell1ES
|
||||
demands:
|
||||
- ImageOverride -equals MMS2019TLS
|
||||
- ImageOverride -equals PSMMS2019-Secure
|
||||
steps:
|
||||
- checkout: self
|
||||
clean: true
|
||||
|
@ -18,7 +18,7 @@ jobs:
|
||||
pool:
|
||||
name: PowerShell1ES
|
||||
demands:
|
||||
- ImageOverride -equals MMS2019TLS
|
||||
- ImageOverride -equals PSMMS2019-Secure
|
||||
|
||||
# APIScan can take a long time
|
||||
timeoutInMinutes: 180
|
||||
|
@ -19,7 +19,7 @@ jobs:
|
||||
pool:
|
||||
name: PowerShell1ES
|
||||
demands:
|
||||
- ImageOverride -equals MMS2019TLS
|
||||
- ImageOverride -equals PSMMS2019-Secure
|
||||
|
||||
# APIScan can take a long time
|
||||
timeoutInMinutes: 180
|
||||
|
@ -16,7 +16,7 @@ jobs:
|
||||
pool:
|
||||
name: PowerShell1ES
|
||||
demands:
|
||||
- ImageOverride -equals MMS2019TLS
|
||||
- ImageOverride -equals PSMMS2019-Secure
|
||||
|
||||
timeoutInMinutes: 15
|
||||
|
||||
|
@ -15,7 +15,7 @@ jobs:
|
||||
pool:
|
||||
name: PowerShell1ES
|
||||
demands:
|
||||
- ImageOverride -equals MMS2019TLS
|
||||
- ImageOverride -equals PSMMS2019-Secure
|
||||
|
||||
steps:
|
||||
#- task: <task type name>@<version>
|
||||
|
@ -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 }}
|
||||
|
@ -9,7 +9,7 @@ jobs:
|
||||
pool:
|
||||
name: PowerShell1ES
|
||||
demands:
|
||||
- ImageOverride -equals MMS2019TLS
|
||||
- ImageOverride -equals PSMMS2019-Secure
|
||||
|
||||
variables:
|
||||
- group: ESRP
|
||||
|
@ -9,7 +9,7 @@ jobs:
|
||||
pool:
|
||||
name: PowerShell1ES
|
||||
demands:
|
||||
- ImageOverride -equals MMS2019TLS
|
||||
- ImageOverride -equals PSMMS2019-Secure
|
||||
variables:
|
||||
- group: ESRP
|
||||
- name: runCodesignValidationInjection
|
||||
|
@ -10,7 +10,7 @@ jobs:
|
||||
pool:
|
||||
name: PowerShell1ES
|
||||
demands:
|
||||
- ImageOverride -equals MMS2019TLS
|
||||
- ImageOverride -equals PSMMS2019-Secure
|
||||
|
||||
timeoutInMinutes: 90
|
||||
|
||||
|
@ -4,7 +4,7 @@ jobs:
|
||||
|
||||
pool: PowerShell1ES
|
||||
demands:
|
||||
- ImageOverride -equals MMS2019TLS
|
||||
- ImageOverride -equals PSMMS2019-Secure
|
||||
|
||||
variables:
|
||||
- group: msixTools
|
||||
|
@ -4,7 +4,7 @@ jobs:
|
||||
|
||||
pool: PowerShell1ES
|
||||
demands:
|
||||
- ImageOverride -equals MMS2019TLS
|
||||
- ImageOverride -equals PSMMS2019-Secure
|
||||
|
||||
variables:
|
||||
- group: 'Azure Blob variable group'
|
||||
|
@ -10,7 +10,7 @@ jobs:
|
||||
condition: succeeded()
|
||||
pool: PowerShell1ES
|
||||
demands:
|
||||
- ImageOverride -equals MMS2019TLS
|
||||
- ImageOverride -equals PSMMS2019-Secure
|
||||
steps:
|
||||
- checkout: self
|
||||
clean: true
|
||||
|
@ -12,7 +12,7 @@ jobs:
|
||||
pool:
|
||||
name: PowerShell1ES
|
||||
demands:
|
||||
- ImageOverride -equals MMS2019TLS
|
||||
- ImageOverride -equals PSMMS2019-Secure
|
||||
|
||||
steps:
|
||||
- checkout: self
|
||||
|
@ -16,7 +16,7 @@ jobs:
|
||||
pool:
|
||||
name: PowerShell1ES
|
||||
demands:
|
||||
- ImageOverride -equals MMS2019TLS
|
||||
- ImageOverride -equals PSMMS2019-Secure
|
||||
variables:
|
||||
- name: runCodesignValidationInjection
|
||||
value: false
|
||||
|
@ -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
|
||||
|
@ -16,7 +16,7 @@ jobs:
|
||||
pool:
|
||||
name: PowerShell1ES
|
||||
demands:
|
||||
- ImageOverride -equals MMS2019TLS
|
||||
- ImageOverride -equals PSMMS2019-Secure
|
||||
variables:
|
||||
- name: BuildConfiguration
|
||||
value: ${{ parameters.BuildConfiguration }}
|
||||
|
@ -27,7 +27,7 @@ stages:
|
||||
|
||||
pool: PowerShell1ES
|
||||
demands:
|
||||
- ImageOverride -equals MMS2019TLS
|
||||
- ImageOverride -equals PSMMS2019-Secure
|
||||
|
||||
steps:
|
||||
- checkout: self
|
||||
|
Loading…
Reference in New Issue
Block a user