diff --git a/eng/testing/performance/performance-setup.sh b/eng/testing/performance/performance-setup.sh index c99ad1f48f3fa5..cffd9ca8d6cdb8 100755 --- a/eng/testing/performance/performance-setup.sh +++ b/eng/testing/performance/performance-setup.sh @@ -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