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:
781
781
params :
782
782
script : |
783
783
if [ "${requester}" == "commit" ]; then
784
- echo " is_mainline: true" >> expansion.yml
784
+ is_mainline= true
785
785
else
786
- echo " is_mainline: false" >> expansion.yml
786
+ is_mainline= false
787
787
fi
788
788
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}')
796
790
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} " \
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" \
798
792
-H 'accept: application/json' \
799
793
-H 'Content-Type: application/json' \
800
794
-d @src/results.json)
You can’t perform that action at this time.
0 commit comments