Skip to content

Commit 42f5a5d

Browse files
author
Ahmad Shah
committed
remove need for expansions
1 parent d1a1726 commit 42f5a5d

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

.evergreen/config.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -246,19 +246,13 @@ functions:
246246
script: |
247247
# We use the requester expansion to determine whether the data is from a mainline evergreen run or not
248248
if [ "${requester}" == "commit" ]; then
249-
echo "is_mainline: true" >> expansion.yml
249+
is_mainline=true
250250
else
251-
echo "is_mainline: false" >> expansion.yml
251+
is_mainline=false
252252
fi
253253
254254
# We parse the username out of the order_id as patches append that in and SPS does not need that information
255-
echo "parsed_order_id: $(echo "${revision_order_id}" | awk -F'_' '{print $NF}')" >> expansion.yml
256-
- command: expansions.update
257-
params:
258-
file: expansion.yml
259-
- command: shell.exec
260-
params:
261-
script: |
255+
parsed_order_id=$(echo "${revision_order_id}" | awk -F'_' '{print $NF}')
262256
# Submit the performance data to the SPS endpoint
263257
response=$(curl -s -w "\nHTTP_STATUS:%{http_code}" -X 'POST' \
264258
"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}" \

0 commit comments

Comments
 (0)