X-Git-Url: https://gerrit.akraino.org/r/gitweb?p=ci-management.git;a=blobdiff_plain;f=jjb%2Fshell%2Fmake-tar.sh;h=adc830d010d294093178f2cbf2f516665e9c7850;hp=43e5693195984012a16e04103ba7698ebdd5fdef;hb=683452330b0784c355d032aae4454674d7fdc60e;hpb=a32c0135e4a960a16eff2c6b87f8cae1ae68f973 diff --git a/jjb/shell/make-tar.sh b/jjb/shell/make-tar.sh index 43e5693..adc830d 100644 --- a/jjb/shell/make-tar.sh +++ b/jjb/shell/make-tar.sh @@ -20,7 +20,8 @@ dos2unix "${WORKSPACE}/version.properties" source "$WORKSPACE/version.properties" TARDIR=$UPLOAD_FILES_PATH -set -e -u -x -o pipefail +# STAGING_BUILD (below) may be unset +set -e +u -x -o pipefail rm -fr "$TARDIR" if [ -n "$STAGING_BUILD" ] @@ -32,6 +33,9 @@ else [[ ! "$VERSION" =~ -SNAPSHOT$ ]] && VERSION="${VERSION}-SNAPSHOT" fi +# STAGING_BUILD not used past this point +set -u + if [ "$PROJECT" == "addon-onap" ] then