diff --git a/buildjob b/buildjob
index 13c3c16857c94b92d8bd090bab7f64d478a4148a..8f8a8e0249c2d5c8babfbafed6a501eaf1e2397f 100755
--- a/buildjob
+++ b/buildjob
@@ -1,5 +1,6 @@
 #!/bin/bash
 set -e
+set -o pipefail
 #set -x
 
 ## This runs a default build job.  The following variables are noteworthy: