From 3687c0b998a2e3a7dd0c5491ad34a530b9d9cc51 Mon Sep 17 00:00:00 2001 From: Robert Church Date: Sun, 22 Sep 2019 17:26:12 -0400 Subject: [PATCH] Add support for including python wheel plugins in apps If an application RPM contains a plugins directory, stage the contents for packaging with tarball. Change-Id: Idc47f39c7180407b85ff50d4e7cd7ab6444905ec Story: 2006537 Task: 36979 Signed-off-by: Robert Church --- build-tools/build-helm-charts.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/build-tools/build-helm-charts.sh b/build-tools/build-helm-charts.sh index 5acab8de..dda671a9 100755 --- a/build-tools/build-helm-charts.sh +++ b/build-tools/build-helm-charts.sh @@ -451,6 +451,15 @@ if [ $? -ne 0 ]; then exit 1 fi +# Stage all the plugin wheels, if present +if [ -d "plugins" ]; then + cp -R plugins staging/plugins + if [ $? -ne 0 ]; then + echo "Failed to copy the wheels from ${BUILD_OUTPUT_PATH}/wheels to ${BUILD_OUTPUT_PATH}/staging/plugins" >&2 + exit 1 + fi +fi + # Stage metadata file, if present if [ -e usr/lib/application/metadata.yaml ]; then cp usr/lib/application/metadata.yaml staging/.