Skip to content

Commit e5990d2

Browse files
committed
fix ordering
1 parent be0977d commit e5990d2

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

bot/check-build.sh

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -553,6 +553,12 @@ if [[ $USE_CHECK_BUILD_ARTEFACTS_SCRIPT -eq 0 ]]; then
553553
comment_artefacts="${comment_artefacts_fmt/__ARTEFACTS_LIST__/${comment_artefacts_details}}"
554554
comment_description=${comment_description/__ARTEFACTS_FMT__/${comment_artefacts}}
555555

556+
echo "${comment_description}" >> ${job_result_file}
557+
558+
# add overall result: SUCCESS, FAILURE, UNKNOWN + artefacts
559+
# - this should make use of subsequent steps such as deploying a tarball more
560+
# efficient
561+
echo "status = ${status}" >> ${job_result_file}
556562
echo "artefacts = " >> ${job_result_file}
557563
echo "${TARBALL}" | sed -e 's/^/ /g' >> ${job_result_file}
558564

@@ -568,13 +574,6 @@ else
568574
exit 1
569575
fi
570576

571-
echo "${comment_description}" >> ${job_result_file}
572-
573-
# add overall result: SUCCESS, FAILURE, UNKNOWN + artefacts
574-
# - this should make use of subsequent steps such as deploying a tarball more
575-
# efficient
576-
echo "status = ${status}" >> ${job_result_file}
577-
578577
# exit script with value that reflects overall job result: SUCCESS (0), FAILURE (1)
579578
test "${status}" == "SUCCESS"
580579
exit $?

0 commit comments

Comments
 (0)