Fix API breakage caused by OS Plugin version scan
[releng/global-jjb.git] / shell / jjb-merge-job.sh
index d3db191..090e915 100644 (file)
@@ -1,5 +1,5 @@
 #!/bin/bash
-# @License EPL-1.0 <http://spdx.org/licenses/EPL-1.0>
+# SPDX-License-Identifier: EPL-1.0
 ##############################################################################
 # Copyright (c) 2017 The Linux Foundation and others.
 #
@@ -10,4 +10,7 @@
 ##############################################################################
 echo "---> jjb-merge-job.sh"
 
+# Ensure we fail the job if any steps fail.
+set -eu -o pipefail
+
 jenkins-jobs update --recursive --delete-old --workers 4 jjb/