X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=shell%2Fmaven-deploy.sh;h=f9e288930aca65482d134cb5790338e9d89ec8c2;hb=eafdcafcbe25dbad05e5117aca20bf6ea048ac44;hp=4f6f58460240789b7e10e722e99c6a4b0baf6e64;hpb=d04c92d090479596fab5ef0b9c5638236b403e96;p=releng%2Fglobal-jjb.git diff --git a/shell/maven-deploy.sh b/shell/maven-deploy.sh index 4f6f5846..f9e28893 100644 --- a/shell/maven-deploy.sh +++ b/shell/maven-deploy.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -l # SPDX-License-Identifier: EPL-1.0 ############################################################################## # Copyright (c) 2017 The Linux Foundation and others. @@ -21,8 +21,6 @@ set -eu -o pipefail m2repo_dir="$WORKSPACE/m2repo" nexus_repo_url="$NEXUS_URL/content/repositories/$NEXUS_REPO" -lftools_activate - echo "-----> Remove metadata files that were not updated" set +e # Temporarily disable to run diff command. mapfile -t metadata_files <<< "$(diff -s -r "$m2repo_dir" "$WORKSPACE/m2repo-backup" \ @@ -40,7 +38,11 @@ fi set -u # Re-enable. find "$m2repo_dir" -type d -empty -delete -maven_metadata_validate "$m2repo_dir" + +echo "-----> Install lftools" +# shellcheck disable=SC1090 +source ~/lf-env.sh +lf-activate-venv lftools echo "-----> Upload files to Nexus" lftools deploy nexus -s "$nexus_repo_url" "$m2repo_dir"