summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLusheng Ji <lji@research.att.com>2017-10-13 15:59:06 +0000
committerLusheng Ji <lji@research.att.com>2017-10-13 15:59:15 +0000
commitb004cbc5f697c6c6f5011eab66115c584a732766 (patch)
tree7b0a93493ea29f9b5ef23460ffe0718bb9d5d91e
parent13c16b374b01315275979f31e6709ffadd05dff3 (diff)
Fix blueprint push location
Issue-Id: DCAEGEN2-128 Change-Id: Icc62dd8c10101b57cdde3d98bbfd6cc6c189055d Signed-off-by: Lusheng Ji <lji@research.att.com>
-rwxr-xr-xmvn-phase-lib.sh2
-rwxr-xr-xmvn-phase-script.sh6
2 files changed, 6 insertions, 2 deletions
diff --git a/mvn-phase-lib.sh b/mvn-phase-lib.sh
index ce38042..6cef83e 100755
--- a/mvn-phase-lib.sh
+++ b/mvn-phase-lib.sh
@@ -364,7 +364,7 @@ upload_files_of_extension()
{
FILES=$(ls -1 ./*."$1")
for F in $FILES ; do
- upload_raw_file "$F"
+ upload_raw_file "$F" "$2"
done
}
diff --git a/mvn-phase-script.sh b/mvn-phase-script.sh
index 184ac99..3da3e01 100755
--- a/mvn-phase-script.sh
+++ b/mvn-phase-script.sh
@@ -115,7 +115,11 @@ install)
;;
deploy)
echo "==> deploy phase script"
- upload_files_of_extension yaml
+ if [ -z "$MVN_PROJECT_MODULEID" ]; then
+ upload_files_of_extension yaml
+ else
+ upload_files_of_extension yaml "$MVN_PROJECT_MODULEID"
+ fi
;;
*)
echo "==> unprocessed phase"