Skip to content

Commit 366af46

Browse files
authored
Finish59071 update ci argsh for r6.0 (#60100)
* Updated channel passed to ci_setup in the performance-setup.sh file. (cherry picked from commit e4416cb) * Removed spaces from assignments so they are seen as actual variabls, and tested locally. (cherry picked from commit bf4d5a2)
1 parent 1583455 commit 366af46

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

eng/testing/performance/performance-setup.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,11 @@ if [[ "$monoaot" == "true" ]]; then
255255
extra_benchmark_dotnet_arguments="$extra_benchmark_dotnet_arguments --category-exclusion-filter NoAOT"
256256
fi
257257

258-
common_setup_arguments="--channel main --queue $queue --build-number $build_number --build-configs $configurations --architecture $architecture"
258+
cleaned_branch_name="main"
259+
if [[ $branch == *"refs/heads/release"* ]]; then
260+
cleaned_branch_name=${branch/refs\/heads\//}
261+
fi
262+
common_setup_arguments="--channel $cleaned_branch_name --queue $queue --build-number $build_number --build-configs $configurations --architecture $architecture"
259263
setup_arguments="--repository https://github.com/$repository --branch $branch --get-perf-hash --commit-sha $commit_sha $common_setup_arguments"
260264

261265
if [[ "$run_from_perf_repo" = true ]]; then

0 commit comments

Comments
 (0)