Skip to content

Commit

Permalink
Change logic to not break private runs (#59356)
Browse files Browse the repository at this point in the history
The previous change here broke private runs as it required the channel map
to have an entry matching the name of the runtime branch you were testing.
This fix now defaults the channel to main for private runs.
  • Loading branch information
DrewScoggins authored Sep 20, 2021
1 parent cf79661 commit f807a6b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion eng/testing/performance/performance-setup.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,11 @@ if ($iOSMono) {
}

# FIX ME: This is a workaround until we get this from the actual pipeline
$CleanedBranchName = $Branch.replace('refs/heads/', '')
$CleanedBranchName = "main"
if($Branch.Contains("refs/heads/release"))
{
$CleanedBranchName = $Branch.replace('refs/heads/', '')
}
$CommonSetupArguments="--channel $CleanedBranchName --queue $Queue --build-number $BuildNumber --build-configs $Configurations --architecture $Architecture"
$SetupArguments = "--repository https://github.com/$Repository --branch $Branch --get-perf-hash --commit-sha $CommitSha $CommonSetupArguments"

Expand Down

0 comments on commit f807a6b

Please sign in to comment.