File tree Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -780,21 +780,16 @@ functions:
780
780
- command : shell.exec
781
781
params :
782
782
script : |
783
+
783
784
if [ "${requester}" == "commit" ]; then
784
- echo " is_mainline: true" >> expansion.yml
785
+ is_mainline= true
785
786
else
786
- echo " is_mainline: false" >> expansion.yml
787
+ is_mainline= false
787
788
fi
788
789
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 : |
790
+ parsed_order_id=$(echo "${revision_order_id}" | awk -F'_' '{print $NF}')
796
791
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=$%3Cspan%20class="x x-first x-last">{ parsed_order_id} &task_name=${task_name}&task_id=${task_id}&execution=${execution}&mainline=${ is_mainline} " \
792
+ "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" \
798
793
-H 'accept: application/json' \
799
794
-H 'Content-Type: application/json' \
800
795
-d @src/results.json)
You can’t perform that action at this time.
0 commit comments