X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=shell%2Fmaven-stage.sh;h=60949acee82e3efcc4139afb3e0af9e3b87faad2;hb=d2b1283cb3f21e8515adb7bc4225c94a22d7e507;hp=bcac7f65f83aa43089fa66453440781fb354dd83;hpb=b3c4fefa00bb18fe2d8ae6f4ba3e2bf0abd154c5;p=releng%2Fglobal-jjb.git diff --git a/shell/maven-stage.sh b/shell/maven-stage.sh index bcac7f65..60949ace 100644 --- a/shell/maven-stage.sh +++ b/shell/maven-stage.sh @@ -18,15 +18,13 @@ # 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") # Store repo info to a file in archives mkdir -p "$WORKSPACE/archives" -echo "$staging_repo" > "$WORKSPACE/archives/staging-repo.txt" +echo "$staging_repo ${NEXUS_URL}/content/repositories/$staging_repo" | tee -a "$WORKSPACE/archives/staging-repo.txt" # Cleanup -rm "$TMP_FILE" +rm -f "$TMP_FILE"