X Tutup
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
3 changes: 2 additions & 1 deletion .pipelines/PowerShell-Release-Official.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ extends:
LinuxHostVersion:
Network: Monitor
WindowsHostVersion:
Network: Monitor
Version: 2022
Network: KS3
cloudvault:
enabled: false
globalSdl:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ steps:
displayName: Set Release Tag

- pwsh: |
$azureVersion = '$(ReleaseTag)'.ToLowerInvariant() -replace '\.', '-'
$vstsCommandString = "vso[task.setvariable variable=AzureVersion]$azureVersion"
$azureVersion = '$(OutputReleaseTag.ReleaseTag)'.ToLowerInvariant() -replace '\.', '-'
$vstsCommandString = "vso[task.setvariable variable=AzureVersion;isOutput=true]$azureVersion"
Write-Host "sending " + $vstsCommandString
Write-Host "##$vstsCommandString"

$version = '$(ReleaseTag)'.ToLowerInvariant().Substring(1)
$version = '$(OutputReleaseTag.ReleaseTag)'.ToLowerInvariant().Substring(1)
$vstsCommandString = "vso[task.setvariable variable=Version;isOutput=true]$version"
Write-Host ("sending " + $vstsCommandString)
Write-Host "##$vstsCommandString"
Expand Down
2 changes: 1 addition & 1 deletion .pipelines/templates/release-create-msix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ jobs:
azurePowerShellVersion: LatestVersion
pwsh: true
inline: |
$containerName = '$(AzureVersion)-private'
$containerName = '$(OutputVersion.AzureVersion)-private'
$storageAccount = '$(StorageAccount)'
$storageContext = New-AzStorageContext -StorageAccountName $storageAccount -UseConnectedAccount
Expand Down
1 change: 1 addition & 0 deletions .pipelines/templates/release-githubtasks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ jobs:
pwsh: true
script: |
Import-module '$(Pipeline.Workspace)/ToolArtifact/GitHubRelease.psm1'
$releaseVersion = '$(ReleaseTag)' -replace '^v',''
Write-Verbose -Verbose "Available modules: "
Get-Module | Write-Verbose -Verbose

Expand Down
4 changes: 2 additions & 2 deletions .pipelines/templates/release-validate-globaltools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ jobs:
$packageName = '${{ parameters.globalToolPackageName }}'
Write-Verbose -Verbose "Installing $packageName"

dotnet tool install --add-source "$ENV:PIPELINE_WORKSPACE/PSPackagesOfficial/drop_nupkg_build_nupkg" --tool-path $toolPath --version '$(Version)' $packageName
dotnet tool install --add-source "$ENV:PIPELINE_WORKSPACE/PSPackagesOfficial/drop_nupkg_build_nupkg" --tool-path $toolPath --version '$(OutputVersion.Version)' $packageName

Get-ChildItem -Path $toolPath

Expand Down Expand Up @@ -133,7 +133,7 @@ jobs:

$versionFound = & $toolPath -c '$PSVersionTable.PSVersion.ToString()'

if ( '$(Version)' -ne $versionFound)
if ( '$(OutputVersion.Version)' -ne $versionFound)
{
throw "Expected version of global tool not found. Installed version is $versionFound"
}
Expand Down
2 changes: 1 addition & 1 deletion .pipelines/templates/release-validate-packagenames.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
inline: |
$storageAccount = Get-AzStorageAccount -ResourceGroupName '$(StorageResourceGroup)' -Name '$(StorageAccount)'
$ctx = $storageAccount.Context
$container = '$(AzureVersion)'
$container = '$(OutputVersion.AzureVersion)'

$destinationPath = '$(System.ArtifactsDirectory)'
$blobList = Get-AzStorageBlob -Container $container -Context $ctx
Expand Down
2 changes: 1 addition & 1 deletion .pipelines/templates/release-validate-sdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ jobs:
</packageSources>
"@

$releaseVersion = '$(Version)'
$releaseVersion = '$(OutputVersion.Version)'

Write-Verbose -Message "Release Version: $releaseVersion" -Verbose

Expand Down
Loading
X Tutup