X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=shell%2Fmaven-stage.sh;h=a976312f36dfad2a182bcec91f33fec6fb808ddc;hb=0ff7cbacb76c80c8e2222d6d5917de5119c0d8fd;hp=63d3f1e444f05d3596c8addabe1526d725890e7a;hpb=0ebc82e3022f7d92eaec14888d05114584a3c20c;p=releng%2Fglobal-jjb.git diff --git a/shell/maven-stage.sh b/shell/maven-stage.sh index 63d3f1e4..a976312f 100644 --- a/shell/maven-stage.sh +++ b/shell/maven-stage.sh @@ -18,13 +18,15 @@ echo "---> maven-stage.sh" # Ensure we fail the job if any steps fail. set -xeu -o pipefail +# shellcheck disable=SC1090 +. ~/lf-env.sh + +lf-activate-venv --python python3 lftools + 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") -echo "INFO: Verify Nexus staging repository is closed" -lftools nexus release -v --server "$NEXUS_URL" "$staging_repo" - # Store repo info to a file in archives mkdir -p "$WORKSPACE/archives" echo "$staging_repo ${NEXUS_URL}/content/repositories/$staging_repo" | tee -a "$WORKSPACE/archives/staging-repo.txt"