Add some boilerplate
[buildd-scripts.git] / bin / report_build_result
index 0ae4a85..96a3382 100755 (executable)
@@ -1,10 +1,17 @@
 #!/bin/bash
 
-MESSAGE="$@"
 LOGFILE=/var/log/builder.log
+STATEDIR=/home/build/state
+
+HOSTNAME=$1
+BNUM=$2
+PKG_VER_ARCH=$3
+RESULT=$4
 
 DATE=$(date)
-echo "$DATE: build result: $MESSAGE" >> $LOGFILE
+echo "$DATE: build result: $HOSTNAME says $BNUM $PKG_VER_ARCH was $RESULT" >> $LOGFILE
+
+rm $STATEDIR/$BNUM.running
 
 exit 0