Add pre-build step to prep vm before build
[releng/global-jjb.git] / shell / maven-stage.sh
index 74b74a9..bcac7f6 100644 (file)
@@ -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")