diff --git a/dev-tools/build-packages/base/generate_base.sh b/dev-tools/build-packages/base/generate_base.sh index 8e78494c18bf..8b60acb401fc 100755 --- a/dev-tools/build-packages/base/generate_base.sh +++ b/dev-tools/build-packages/base/generate_base.sh @@ -127,23 +127,24 @@ build() { echo Building the package... echo - # Install plugins - bin/opensearch-dashboards-plugin install alertingDashboards - bin/opensearch-dashboards-plugin install customImportMapDashboards - bin/opensearch-dashboards-plugin install ganttChartDashboards - bin/opensearch-dashboards-plugin install indexManagementDashboards - bin/opensearch-dashboards-plugin install notificationsDashboards - bin/opensearch-dashboards-plugin install reportsDashboards # Install Wazuh apps and Security app - plugins=$(ls $tmp_dir/applications) - echo $plugins + + plugins=$(ls $tmp_dir/applications)' '$(cat ../../plugins) for plugin in $plugins; do - echo $plugin if [[ $plugin =~ .*\.zip ]]; then - bin/opensearch-dashboards-plugin install file:../applications/$plugin + install='file:../applications/'$plugin + else + install=$plugin + fi + if bin/opensearch-dashboards-plugin install $install | tee /dev/tty | grep -iE 'unsuccessful|error|fail' > /dev/null; then + echo "Plugin installation failed" + clean 1 fi done + echo + echo Finished installing plugins + echo # Move installed plugins from categories after generating the package category_explore='{id:"explore",label:"Explore",order:100,euiIconType:"search"}' diff --git a/dev-tools/build-packages/base/plugins b/dev-tools/build-packages/base/plugins new file mode 100644 index 000000000000..6a31dc91f76b --- /dev/null +++ b/dev-tools/build-packages/base/plugins @@ -0,0 +1,6 @@ +alertingDashboards +customImportMapDashboards +ganttChartDashboards +indexManagementDashboards +notificationsDashboards +reportsDashboards