mirror of
https://github.com/PowerShell/PowerShell.git
synced 2024-11-27 03:46:23 +08:00
Fix typo donet
to dotnet
in build scripts and pipelines (#20122)
This commit is contained in:
parent
ddb3b5ff4c
commit
6df26a3cac
@ -19,8 +19,8 @@ $script:Options = $null
|
||||
$dotnetMetadata = Get-Content $PSScriptRoot/DotnetRuntimeMetadata.json | ConvertFrom-Json
|
||||
$dotnetCLIChannel = $dotnetMetadata.Sdk.Channel
|
||||
$dotnetCLIQuality = $dotnetMetadata.Sdk.Quality
|
||||
$dotnetAzureFeed = if (-not $env:__DONET_RUNTIME_FEED ) { $dotnetMetadata.Sdk.azureFeed }
|
||||
$dotnetAzureFeedSecret = $env:__DONET_RUNTIME_FEED_KEY
|
||||
$dotnetAzureFeed = if (-not $env:__DOTNET_RUNTIME_FEED ) { $dotnetMetadata.Sdk.azureFeed }
|
||||
$dotnetAzureFeedSecret = $env:__DOTNET_RUNTIME_FEED_KEY
|
||||
$dotnetSDKVersionOveride = $dotnetMetadata.Sdk.sdkImageOverride
|
||||
$dotnetCLIRequiredVersion = $(Get-Content $PSScriptRoot/global.json | ConvertFrom-Json).Sdk.Version
|
||||
|
||||
|
@ -40,8 +40,8 @@ jobs:
|
||||
retryCountOnTaskFailure: 2
|
||||
displayName: 'Bootstrap'
|
||||
env:
|
||||
__DONET_RUNTIME_FEED: $(RUNTIME_SOURCEFEED)
|
||||
__DONET_RUNTIME_FEED_KEY: $(RUNTIME_SOURCEFEED_KEY)
|
||||
__DOTNET_RUNTIME_FEED: $(RUNTIME_SOURCEFEED)
|
||||
__DOTNET_RUNTIME_FEED_KEY: $(RUNTIME_SOURCEFEED_KEY)
|
||||
|
||||
- pwsh: |
|
||||
Import-Module .\build.psm1 -force
|
||||
|
@ -253,8 +253,8 @@ jobs:
|
||||
condition: and(succeeded(), ne(variables['SkipBuild'], 'true'))
|
||||
workingDirectory: $(PowerShellRoot)
|
||||
env:
|
||||
__DONET_RUNTIME_FEED: $(RUNTIME_SOURCEFEED)
|
||||
__DONET_RUNTIME_FEED_KEY: $(RUNTIME_SOURCEFEED_KEY)
|
||||
__DOTNET_RUNTIME_FEED: $(RUNTIME_SOURCEFEED)
|
||||
__DOTNET_RUNTIME_FEED_KEY: $(RUNTIME_SOURCEFEED_KEY)
|
||||
|
||||
- powershell: |
|
||||
try {
|
||||
|
@ -62,8 +62,8 @@ jobs:
|
||||
condition: and(succeeded(), ne(variables['SkipBuild'], 'true'))
|
||||
workingDirectory: $(PowerShellRoot)
|
||||
env:
|
||||
__DONET_RUNTIME_FEED: $(RUNTIME_SOURCEFEED)
|
||||
__DONET_RUNTIME_FEED_KEY: $(RUNTIME_SOURCEFEED_KEY)
|
||||
__DOTNET_RUNTIME_FEED: $(RUNTIME_SOURCEFEED)
|
||||
__DOTNET_RUNTIME_FEED_KEY: $(RUNTIME_SOURCEFEED_KEY)
|
||||
|
||||
- pwsh: |
|
||||
try {
|
||||
|
@ -119,8 +119,8 @@ jobs:
|
||||
}
|
||||
displayName: 'Bootstrap VM'
|
||||
env:
|
||||
__DONET_RUNTIME_FEED: $(RUNTIME_SOURCEFEED)
|
||||
__DONET_RUNTIME_FEED_KEY: $(RUNTIME_SOURCEFEED_KEY)
|
||||
__DOTNET_RUNTIME_FEED: $(RUNTIME_SOURCEFEED)
|
||||
__DOTNET_RUNTIME_FEED_KEY: $(RUNTIME_SOURCEFEED_KEY)
|
||||
|
||||
- pwsh: |
|
||||
# Add -SkipReleaseChecks as a mitigation to unblock release.
|
||||
@ -133,8 +133,8 @@ jobs:
|
||||
}
|
||||
displayName: 'Package'
|
||||
env:
|
||||
__DONET_RUNTIME_FEED: $(RUNTIME_SOURCEFEED)
|
||||
__DONET_RUNTIME_FEED_KEY: $(RUNTIME_SOURCEFEED_KEY)
|
||||
__DOTNET_RUNTIME_FEED: $(RUNTIME_SOURCEFEED)
|
||||
__DOTNET_RUNTIME_FEED_KEY: $(RUNTIME_SOURCEFEED_KEY)
|
||||
|
||||
- task: ms.vss-governance-buildtask.governance-build-task-component-detection.ComponentGovernanceComponentDetection@0
|
||||
displayName: 'Component Detection'
|
||||
|
@ -43,8 +43,8 @@ jobs:
|
||||
tools/releaseBuild/macOS/PowerShellPackageVsts.ps1 -location $(PowerShellRoot) -BootStrap
|
||||
displayName: 'Bootstrap VM'
|
||||
env:
|
||||
__DONET_RUNTIME_FEED: $(RUNTIME_SOURCEFEED)
|
||||
__DONET_RUNTIME_FEED_KEY: $(RUNTIME_SOURCEFEED_KEY)
|
||||
__DOTNET_RUNTIME_FEED: $(RUNTIME_SOURCEFEED)
|
||||
__DOTNET_RUNTIME_FEED_KEY: $(RUNTIME_SOURCEFEED_KEY)
|
||||
|
||||
- template: /tools/releaseBuild/azureDevOps/templates/insert-nuget-config-azfeed.yml
|
||||
parameters:
|
||||
@ -58,8 +58,8 @@ jobs:
|
||||
$env:AzDevOpsFeedPAT2 = $null
|
||||
displayName: 'Build'
|
||||
env:
|
||||
__DONET_RUNTIME_FEED: $(RUNTIME_SOURCEFEED)
|
||||
__DONET_RUNTIME_FEED_KEY: $(RUNTIME_SOURCEFEED_KEY)
|
||||
__DOTNET_RUNTIME_FEED: $(RUNTIME_SOURCEFEED)
|
||||
__DOTNET_RUNTIME_FEED_KEY: $(RUNTIME_SOURCEFEED_KEY)
|
||||
|
||||
- task: ms.vss-governance-buildtask.governance-build-task-component-detection.ComponentGovernanceComponentDetection@0
|
||||
displayName: 'Component Detection'
|
||||
|
@ -60,8 +60,8 @@ jobs:
|
||||
Start-PSBootStrap -Verbose
|
||||
displayName: Bootstrap
|
||||
env:
|
||||
__DONET_RUNTIME_FEED: $(RUNTIME_SOURCEFEED)
|
||||
__DONET_RUNTIME_FEED_KEY: $(RUNTIME_SOURCEFEED_KEY)
|
||||
__DOTNET_RUNTIME_FEED: $(RUNTIME_SOURCEFEED)
|
||||
__DOTNET_RUNTIME_FEED_KEY: $(RUNTIME_SOURCEFEED_KEY)
|
||||
|
||||
- task: DownloadBuildArtifacts@0
|
||||
displayName: 'Download PowerShell build artifacts - finalResults'
|
||||
|
@ -61,8 +61,8 @@ jobs:
|
||||
|
||||
displayName: Install .NET
|
||||
env:
|
||||
__DONET_RUNTIME_FEED: $(RUNTIME_SOURCEFEED)
|
||||
__DONET_RUNTIME_FEED_KEY: $(RUNTIME_SOURCEFEED_KEY)
|
||||
__DOTNET_RUNTIME_FEED: $(RUNTIME_SOURCEFEED)
|
||||
__DOTNET_RUNTIME_FEED_KEY: $(RUNTIME_SOURCEFEED_KEY)
|
||||
|
||||
- pwsh: |
|
||||
$branch = $ENV:BUILD_SOURCEBRANCH
|
||||
@ -85,8 +85,8 @@ jobs:
|
||||
|
||||
displayName: Install global tool
|
||||
env:
|
||||
__DONET_RUNTIME_FEED: $(RUNTIME_SOURCEFEED)
|
||||
__DONET_RUNTIME_FEED_KEY: $(RUNTIME_SOURCEFEED_KEY)
|
||||
__DOTNET_RUNTIME_FEED: $(RUNTIME_SOURCEFEED)
|
||||
__DOTNET_RUNTIME_FEED_KEY: $(RUNTIME_SOURCEFEED_KEY)
|
||||
|
||||
- pwsh: |
|
||||
$toolPath = "$(System.DefaultWorkingDirectory)/toolPath/${{ parameters.globalToolExeName }}"
|
||||
@ -148,5 +148,5 @@ jobs:
|
||||
}
|
||||
displayName: Basic validation
|
||||
env:
|
||||
__DONET_RUNTIME_FEED: $(RUNTIME_SOURCEFEED)
|
||||
__DONET_RUNTIME_FEED_KEY: $(RUNTIME_SOURCEFEED_KEY)
|
||||
__DOTNET_RUNTIME_FEED: $(RUNTIME_SOURCEFEED)
|
||||
__DOTNET_RUNTIME_FEED_KEY: $(RUNTIME_SOURCEFEED_KEY)
|
||||
|
@ -97,8 +97,8 @@ jobs:
|
||||
|
||||
displayName: Install .NET
|
||||
env:
|
||||
__DONET_RUNTIME_FEED: $(RUNTIME_SOURCEFEED)
|
||||
__DONET_RUNTIME_FEED_KEY: $(RUNTIME_SOURCEFEED_KEY)
|
||||
__DOTNET_RUNTIME_FEED: $(RUNTIME_SOURCEFEED)
|
||||
__DOTNET_RUNTIME_FEED_KEY: $(RUNTIME_SOURCEFEED_KEY)
|
||||
|
||||
- pwsh: |
|
||||
$env:DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1
|
||||
@ -136,8 +136,8 @@ jobs:
|
||||
|
||||
displayName: Restore and execute tests
|
||||
env:
|
||||
__DONET_RUNTIME_FEED: $(RUNTIME_SOURCEFEED)
|
||||
__DONET_RUNTIME_FEED_KEY: $(RUNTIME_SOURCEFEED_KEY)
|
||||
__DOTNET_RUNTIME_FEED: $(RUNTIME_SOURCEFEED)
|
||||
__DOTNET_RUNTIME_FEED_KEY: $(RUNTIME_SOURCEFEED_KEY)
|
||||
|
||||
- task: PublishTestResults@2
|
||||
displayName: 'Publish Test Results **\test-hosting.xml'
|
||||
|
@ -38,8 +38,8 @@ jobs:
|
||||
Write-Verbose -Message "Installing .NET SDK completed." -Verbose
|
||||
displayName: Install .NET
|
||||
env:
|
||||
__DONET_RUNTIME_FEED: $(RUNTIME_SOURCEFEED)
|
||||
__DONET_RUNTIME_FEED_KEY: $(RUNTIME_SOURCEFEED_KEY)
|
||||
__DOTNET_RUNTIME_FEED: $(RUNTIME_SOURCEFEED)
|
||||
__DOTNET_RUNTIME_FEED_KEY: $(RUNTIME_SOURCEFEED_KEY)
|
||||
|
||||
- pwsh: |
|
||||
Get-ChildItem -Path '$(Pipeline.Workspace)/releasePipeline/finalResults' -Recurse
|
||||
|
@ -25,8 +25,8 @@ jobs:
|
||||
Start-PSBootstrap
|
||||
displayName: Bootstrap
|
||||
env:
|
||||
__DONET_RUNTIME_FEED: $(RUNTIME_SOURCEFEED)
|
||||
__DONET_RUNTIME_FEED_KEY: $(RUNTIME_SOURCEFEED_KEY)
|
||||
__DOTNET_RUNTIME_FEED: $(RUNTIME_SOURCEFEED)
|
||||
__DOTNET_RUNTIME_FEED_KEY: $(RUNTIME_SOURCEFEED_KEY)
|
||||
|
||||
- pwsh: |
|
||||
Import-Module ./build.psm1
|
||||
@ -86,8 +86,8 @@ jobs:
|
||||
Start-PSBootstrap
|
||||
displayName: Bootstrap
|
||||
env:
|
||||
__DONET_RUNTIME_FEED: $(RUNTIME_SOURCEFEED)
|
||||
__DONET_RUNTIME_FEED_KEY: $(RUNTIME_SOURCEFEED_KEY)
|
||||
__DOTNET_RUNTIME_FEED: $(RUNTIME_SOURCEFEED)
|
||||
__DOTNET_RUNTIME_FEED_KEY: $(RUNTIME_SOURCEFEED_KEY)
|
||||
|
||||
- pwsh: |
|
||||
Import-Module ./build.psm1
|
||||
|
@ -66,8 +66,8 @@ jobs:
|
||||
tools/releaseBuild/Images/microsoft_powershell_windowsservercore/PowerShellPackage.ps1 -location '$(PowerShellRoot)' -destination '$(Build.ArtifactStagingDirectory)/Symbols_$(Architecture)' -Runtime $runtime -ReleaseTag '$(ReleaseTagVar)' -Symbols @params
|
||||
displayName: 'Build Windows Universal - $(Architecture)-$(BuildConfiguration) Symbols zip'
|
||||
env:
|
||||
__DONET_RUNTIME_FEED: $(RUNTIME_SOURCEFEED)
|
||||
__DONET_RUNTIME_FEED_KEY: $(RUNTIME_SOURCEFEED_KEY)
|
||||
__DOTNET_RUNTIME_FEED: $(RUNTIME_SOURCEFEED)
|
||||
__DOTNET_RUNTIME_FEED_KEY: $(RUNTIME_SOURCEFEED_KEY)
|
||||
|
||||
- pwsh: |
|
||||
$packageName = (Get-ChildItem '$(Build.ArtifactStagingDirectory)\Symbols_$(Architecture)').FullName
|
||||
|
@ -259,8 +259,8 @@ jobs:
|
||||
$(PowerShellRoot)/tools/releaseBuild/Images/microsoft_powershell_windowsservercore/PowerShellPackage.ps1 -BuildZip $signedPkg -location '$(PowerShellRoot)' -destination '$(System.ArtifactsDirectory)\pkgSigned' -Runtime $runtime -ReleaseTag '$(ReleaseTagVar)' @params
|
||||
displayName: 'Build Windows Universal - $(Architecture) Package'
|
||||
env:
|
||||
__DONET_RUNTIME_FEED: $(RUNTIME_SOURCEFEED)
|
||||
__DONET_RUNTIME_FEED_KEY: $(RUNTIME_SOURCEFEED_KEY)
|
||||
__DOTNET_RUNTIME_FEED: $(RUNTIME_SOURCEFEED)
|
||||
__DOTNET_RUNTIME_FEED_KEY: $(RUNTIME_SOURCEFEED_KEY)
|
||||
|
||||
- pwsh: |
|
||||
Get-ChildItem '$(System.ArtifactsDirectory)\pkgSigned' | ForEach-Object {
|
||||
|
Loading…
Reference in New Issue
Block a user