X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=shell%2Fmaven-stage.sh;h=bcac7f65f83aa43089fa66453440781fb354dd83;hb=b3c4fefa00bb18fe2d8ae6f4ba3e2bf0abd154c5;hp=74b74a9917a6fdc2de5e312314137c76e278426c;hpb=8808c71bc8632fc6e3553cd674e8c605ad5af436;p=releng%2Fglobal-jjb.git diff --git a/shell/maven-stage.sh b/shell/maven-stage.sh index 74b74a99..bcac7f65 100644 --- a/shell/maven-stage.sh +++ b/shell/maven-stage.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -l # SPDX-License-Identifier: EPL-1.0 ############################################################################## # Copyright (c) 2017 The Linux Foundation and others. @@ -18,6 +18,8 @@ # 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")