Finish59071 update ci argsh for r6.0 (#60100)
authorParker Bibus <parkerbibus@microsoft.com>
Wed, 13 Oct 2021 07:14:27 +0000 (02:14 -0500)
committerGitHub <noreply@github.com>
Wed, 13 Oct 2021 07:14:27 +0000 (00:14 -0700)
* Updated channel passed to ci_setup in the performance-setup.sh file.

(cherry picked from commit e4416cb4cf6bee2234cf2536bf911045108d42c9)

* Removed spaces from assignments so they are seen as actual variabls, and tested locally.

(cherry picked from commit bf4d5a235d088515157173ddc0fe07a31abe2ad5)

eng/testing/performance/performance-setup.sh

index c99ad1f48f3fa5677a9bd1035ddbe30ce0f2bfa4..cffd9ca8d6cdb86c248d8934ba8347ac4ed5742d 100755 (executable)
@@ -255,7 +255,11 @@ if [[ "$monoaot" == "true" ]]; then
     extra_benchmark_dotnet_arguments="$extra_benchmark_dotnet_arguments --category-exclusion-filter NoAOT"
 fi
 
-common_setup_arguments="--channel main --queue $queue --build-number $build_number --build-configs $configurations --architecture $architecture"
+cleaned_branch_name="main"
+if [[ $branch == *"refs/heads/release"* ]]; then
+    cleaned_branch_name=${branch/refs\/heads\//}
+fi
+common_setup_arguments="--channel $cleaned_branch_name --queue $queue --build-number $build_number --build-configs $configurations --architecture $architecture"
 setup_arguments="--repository https://github.com/$repository --branch $branch --get-perf-hash --commit-sha $commit_sha $common_setup_arguments"
 
 if [[ "$run_from_perf_repo" = true ]]; then