X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=shell%2Fmaven-stage.sh;fp=shell%2Fmaven-stage.sh;h=ea8652dcc3640f6a7c42cf32954fd854aa811e02;hb=ac3415e0339d82b1695d0d61534209f46b90375e;hp=bcac7f65f83aa43089fa66453440781fb354dd83;hpb=90db9af77b1d31e7c22e6dc181c8b8c6f00b821e;p=releng%2Fglobal-jjb.git diff --git a/shell/maven-stage.sh b/shell/maven-stage.sh index bcac7f65..ea8652dc 100644 --- a/shell/maven-stage.sh +++ b/shell/maven-stage.sh @@ -18,8 +18,6 @@ # Ensure we fail the job if any steps fail. set -xeu -o pipefail -lftools_activate - TMP_FILE="$(mktemp)" lftools deploy nexus-stage "$NEXUS_URL" "$STAGING_PROFILE_ID" "$WORKSPACE/m2repo" | tee "$TMP_FILE" staging_repo=$(sed -n -e 's/Staging repository \(.*\) created\./\1/p' "$TMP_FILE") @@ -29,4 +27,4 @@ mkdir -p "$WORKSPACE/archives" echo "$staging_repo" > "$WORKSPACE/archives/staging-repo.txt" # Cleanup -rm "$TMP_FILE" +rm -f "$TMP_FILE"