From e234db38fc59b00e110d9bd2e6d883e57d02b4eb Mon Sep 17 00:00:00 2001 From: Malena Casas Date: Wed, 13 Nov 2024 23:23:22 -0300 Subject: [PATCH] Add control previously to list the content of the plugins directory --- build-scripts/assemble.sh | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/build-scripts/assemble.sh b/build-scripts/assemble.sh index 62e2eec30d5ee..779f6f2b1871d 100644 --- a/build-scripts/assemble.sh +++ b/build-scripts/assemble.sh @@ -226,7 +226,16 @@ function enable_performance_analyzer_rca() { function install_plugins() { echo "Installing OpenSearch plugins" local maven_repo_local="$HOME/.m2" - echo "Content of .m2/repository/org/opensearch/" + + local PLUGIN_DIRECTORY=".m2/repository/org/opensearch/" + # If directory exists + if [ -d "$PLUGIN_DIRECTORY" ]; then + echo "Content of .m2/repository/org/opensearch/ pre-install plugins" + ls -la "$PLUGIN_DIRECTORY" + else + echo "Directory .m2/repository/org/opensearch/ doesn't exist" + fi + ls la "~/.m2/repository/org/opensearch/" for plugin in "${plugins[@]}"; do echo "Plugin ${plugin}, version ${VERSION}" @@ -240,6 +249,12 @@ function install_plugins() { OPENSEARCH_PATH_CONF=$PATH_CONF "${PATH_BIN}/opensearch-plugin" install --batch --verbose "file:${maven_repo_local}/org/opensearch/plugin/${plugin}/${VERSION}.0/${plugin}-${VERSION}.0.zip" fi done + if [ -d "$PLUGIN_DIRECTORY" ]; then + echo "Content of .m2/repository/org/opensearch/ post-install plugins of opensearch" + ls -la "$PLUGIN_DIRECTORY" + else + echo "Directory .m2/repository/org/opensearch/ doesn't exist post install" + fi echo "Installing Wazuh plugins" local indexer_plugin_version="${1}.${REVISION}"