From d04c92d090479596fab5ef0b9c5638236b403e96 Mon Sep 17 00:00:00 2001 From: Thanh Ha Date: Fri, 2 Feb 2018 13:25:07 -0500 Subject: [PATCH] Print out heading information Makes the output a bit more structured. Change-Id: Ieedcbf97af01cec63604c2907d6f74177271a64d Signed-off-by: Thanh Ha --- shell/maven-deploy.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/shell/maven-deploy.sh b/shell/maven-deploy.sh index c30963bb..4f6f5846 100644 --- a/shell/maven-deploy.sh +++ b/shell/maven-deploy.sh @@ -13,6 +13,7 @@ # Requires the existance of $WORKSPACE/m2repo and $WORKSPACE/m2repo-backup to # compare if maven metadata files have changed. Unchanged files are then # removed from $WORKSPACE/m2repo before uploading to the snapshot repo. +echo "---> maven-deploy.sh" # Ensure we fail the job if any steps fail. set -eu -o pipefail @@ -22,7 +23,7 @@ nexus_repo_url="$NEXUS_URL/content/repositories/$NEXUS_REPO" lftools_activate -# Remove metadata files that were not updated. +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" \ | grep 'Files .* and .* are identical' \ @@ -40,4 +41,6 @@ set -u # Re-enable. find "$m2repo_dir" -type d -empty -delete maven_metadata_validate "$m2repo_dir" + +echo "-----> Upload files to Nexus" lftools deploy nexus -s "$nexus_repo_url" "$m2repo_dir" -- 2.16.6