X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=scripts%2Fbuild_oran.sh;h=fceb8fab22183c719f4d0d9e642ab88b5519bbe7;hb=refs%2Fchanges%2F94%2F1394%2F1;hp=e0c21983e9e96858304cd8480245927d055f6f7e;hpb=1e794a475c79dc9a3abb85fd3bee0cbb3124ffe6;p=pti%2Frtp.git diff --git a/scripts/build_oran.sh b/scripts/build_oran.sh index e0c2198..fceb8fa 100755 --- a/scripts/build_oran.sh +++ b/scripts/build_oran.sh @@ -1,5 +1,8 @@ #!/bin/bash +# Ensure we fail the job if any steps fail. +set -eu -o pipefail + help_info () { cat << ENDHELP Usage: @@ -126,7 +129,6 @@ fi # Build the oran-inf-host image mkdir -p logs TIMESTAMP=`date +"%Y%m%d_%H%M%S"` -set -o pipefail RUN_CMD="bitbake ${DRYRUN} oran-image-inf-host" echo_cmd "Build the oran-image-inf-host image" bitbake ${DRYRUN} oran-image-inf-host 2>&1|tee logs/bitbake_oran-image-inf-host_${TIMESTAMP}.log