Skip to content

Commit 59d6c72

Browse files
committed
PR feedback
1 parent 64df760 commit 59d6c72

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

.evergreen/.evg.yml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -780,21 +780,16 @@ functions:
780780
- command: shell.exec
781781
params:
782782
script: |
783+
783784
if [ "${requester}" == "commit" ]; then
784-
echo "is_mainline: true" >> expansion.yml
785+
is_mainline=true
785786
else
786-
echo "is_mainline: false" >> expansion.yml
787+
is_mainline=false
787788
fi
788789
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}')
796791
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" \
798793
-H 'accept: application/json' \
799794
-H 'Content-Type: application/json' \
800795
-d @src/results.json)

0 commit comments

Comments
 (0)