X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=shell%2Fdeploy-maven-file.sh;h=e5bf050025fa408472954fca8fae6905a38945c5;hb=5777152ac2a2a8f0c778ff7039a155de7555dffe;hp=338a8c30f067aa644cccf7d43c0814e4f820fbc2;hpb=89c7b0f2fa145a7016ba24955e8f57309e9295c8;p=releng%2Fglobal-jjb.git diff --git a/shell/deploy-maven-file.sh b/shell/deploy-maven-file.sh index 338a8c30..e5bf0500 100644 --- a/shell/deploy-maven-file.sh +++ b/shell/deploy-maven-file.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -l # SPDX-License-Identifier: EPL-1.0 ############################################################################## # Copyright (c) 2017 The Linux Foundation and others. @@ -39,6 +39,8 @@ mkdir -p "$WORKSPACE/archives" while IFS="" read -r file do + file_size=$(stat --printf="%s" "${file}") + echo "Deploy ${file##*/} with ${file_size} bytes." lftools deploy maven-file "$MAVEN_REPO_URL" \ "$REPO_ID" \ "$file" \ @@ -46,4 +48,4 @@ do -g "$GROUP_ID" \ -p "$MAVEN_OPTIONS $MAVEN_PARAMS" \ |& tee "$DEPLOY_LOG" -done < <(find "$UPLOAD_FILES_PATH" -type f -name "*") +done < <(find "$UPLOAD_FILES_PATH" -xtype f -name "*")