summaryrefslogtreecommitdiffstats
path: root/mvn-phase-script.sh
diff options
context:
space:
mode:
authorLusheng Ji <lji@research.att.com>2017-09-08 21:59:16 +0000
committerLusheng Ji <lji@research.att.com>2017-09-08 21:59:24 +0000
commit6ef36a51d85bb709a98ff9a51b7349cbf31be847 (patch)
treea60e93c164a9591f82ec452192d13716621f796d /mvn-phase-script.sh
parent64c2b403df8254254255b4e45958e709ecbef6ed (diff)
Fix push yaml code
Issue-Id: DCAEGEN2-60 Change-Id: I42186b54216934fdf582e81e3c63bcd04e0cee03 Signed-off-by: Lusheng Ji <lji@research.att.com>
Diffstat (limited to 'mvn-phase-script.sh')
-rwxr-xr-xmvn-phase-script.sh12
1 files changed, 9 insertions, 3 deletions
diff --git a/mvn-phase-script.sh b/mvn-phase-script.sh
index 102e8a6..309c53d 100755
--- a/mvn-phase-script.sh
+++ b/mvn-phase-script.sh
@@ -223,6 +223,14 @@ upload_wagons_and_type_yamls()
done
}
+upload_yamls()
+{
+ YAMLS=$(ls -1 ./*.yaml)
+ for YAML in "${YAMLS[@]}" ; do
+ upload_raw_file "$YAML"
+ done
+}
+
build_and_push_docker()
@@ -308,18 +316,16 @@ compile)
;;
test)
echo "==> test phase script"
- run_tox_test
;;
package)
echo "==> package phase script"
- build_wagons
;;
install)
echo "==> install phase script"
;;
deploy)
echo "==> deploy phase script"
- upload_wagons_and_type_yamls
+ upload_yamls
;;
*)
echo "==> unprocessed phase"