Skip to content

Commit

Permalink
Add darc version parameter to allow quick version changes (#14990)
Browse files Browse the repository at this point in the history
  • Loading branch information
dkurepa authored Aug 8, 2024
1 parent 2c82955 commit 610e251
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions eng/publishing/v3/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ stages:
arguments: >
-BuildId ${{ parameters.BARBuildId }}
-PromoteToChannelIds ${{ parameters.PromoteToChannelIds }}
-DarcVersion $(DarcVersion)
- task: DownloadBuildArtifacts@0
displayName: Download Build Assets
Expand Down
11 changes: 9 additions & 2 deletions eng/publishing/v3/validate-and-locate-build.ps1
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
param(
[Parameter(Mandatory = $true)][int] $BuildId,
[Parameter(Mandatory = $true)][string] $PromoteToChannelIds
[Parameter(Mandatory = $true)][string] $PromoteToChannelIds,
[Parameter(Mandatory = $true)][string] $DarcVersion
)

try {
. $PSScriptRoot\..\..\common\tools.ps1
$darc = Get-Darc -version "1.1.0-beta.24373.1"

if (($DarcVersion -eq "latest") -or ($darcVersion -eq "")) {
$darc = Get-Darc
}
else {
$darc = Get-Darc -version $DarcVersion
}

$buildInfo = & $darc get-build `
--id $BuildId `
Expand Down

0 comments on commit 610e251

Please sign in to comment.