Skip to content

Commit efd76c7

Browse files
committed
record build errors
1 parent 4e3e3b3 commit efd76c7

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

bin/build.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
SEGMENT=$(python bin/xray_start.py)
2-
GRADLE_OUTPUT=$(gradle build); GRADLE_RETURN=$?
2+
gradle build --quiet --stacktrace &> /var/log/gradle.log; GRADLE_RETURN=$?
33
if (( GRADLE_RETURN != 0 )); then
4-
echo "Grade failed with exit status $GRADLE_RETURN" >&2
5-
echo "and output: $GRADLE_OUTPUT" >&2
6-
python bin/xray_error.py "$SEGMENT" "$GRADLE_OUTPUT"
4+
echo "Grade failed with exit status $GRADLE_RETURN" >&2
5+
python bin/xray_error.py "$SEGMENT" "$(cat /var/log/gradle.log)"
76
exit 1
87
fi
98
python bin/xray_success.py "$SEGMENT"

0 commit comments

Comments
 (0)