File tree Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -781,20 +781,14 @@ functions:
781781 params :
782782 script : |
783783 if [ "${requester}" == "commit" ]; then
784- echo " is_mainline: true" >> expansion.yml
784+ is_mainline= true
785785 else
786- echo " is_mainline: false" >> expansion.yml
786+ is_mainline= false
787787 fi
788788
789- echo "parsed_order_id: $(echo "${revision_order_id}" | awk -F'_' '{print $NF}')" >> expansion.yml
790- - command : expansions.update
791- params :
792- file : expansion.yml
793- - command : shell.exec
794- params :
795- script : |
789+ parsed_order_id=$(echo "${revision_order_id}" | awk -F'_' '{print $NF}')
796790 response=$(curl -s -w "\nHTTP_STATUS:%{http_code}" -X 'POST' \
797- "https://performance-monitoring-api.corp.mongodb.com/raw_perf_results/cedar_report?project=${project_id}&version=${version_id}&variant=${build_variant}&order=${ parsed_order_id} &task_name=${task_name}&task_id=${task_id}&execution=${execution}&mainline=${ is_mainline} " \
791+ "https://performance-monitoring-api.corp.mongodb.com/raw_perf_results/cedar_report?project=${project_id}&version=${version_id}&variant=${build_variant}&order=$parsed_order_id&task_name=${task_name}&task_id=${task_id}&execution=${execution}&mainline=$is_mainline" \
798792 -H 'accept: application/json' \
799793 -H 'Content-Type: application/json' \
800794 -d @src/results.json)
You can’t perform that action at this time.
0 commit comments