Skip to content

Commit

Permalink
Fix versioning of wazuh-indexer-plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexRuiz7 committed Aug 20, 2024
1 parent 6f87ae1 commit 3534797
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packaging_scripts/assemble.sh
Original file line number Diff line number Diff line change
Expand Up @@ -224,18 +224,18 @@ function enable_performance_analyzer_rca() {
# ====
function install_plugins() {
echo "Installing OpenSearch plugins"
maven_repo_local="$HOME/.m2"
local maven_repo_local="$HOME/.m2"
for plugin in "${plugins[@]}"; do
plugin_from_maven="org.opensearch.plugin:${plugin}:${VERSION}.0"
local plugin_from_maven="org.opensearch.plugin:${plugin}:${VERSION}.0"
mvn -Dmaven.repo.local="${maven_repo_local}" org.apache.maven.plugins:maven-dependency-plugin:2.1:get -DrepoUrl=https://repo1.maven.org/maven2 -Dartifact="${plugin_from_maven}:zip"
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"
done

echo "Installing Wazuh plugins"
for plugin in "${wazuh_plugins[@]}"; do
plugin_from_maven="org.wazuh.plugin:${plugin}:${1}.${REVISION}"
mvn -Dmaven.repo.local="${maven_repo_local}" org.apache.maven.plugins:maven-dependency-plugin:2.1:get -Dartifact="${plugin_from_maven}:zip"
OPENSEARCH_PATH_CONF=$PATH_CONF "${PATH_BIN}/opensearch-plugin" install --batch --verbose "file:${maven_repo_local}/org/wazuh/plugin/${plugin}/${VERSION}.${REVISION}/${plugin}-${VERSION}.${REVISION}.zip"
local indexer_plugin_version="${1}.${REVISION}"
for plugin_name in "${wazuh_plugins[@]}"; do
local plugin_from_maven_local="${maven_repo_local}/repository/org/wazuh/${plugin_name}-plugin/${indexer_plugin_version}/${plugin_name}-${indexer_plugin_version}.zip"
OPENSEARCH_PATH_CONF=$PATH_CONF "${PATH_BIN}/opensearch-plugin" install --batch --verbose "file:${plugin_from_maven_local}"
done
}

Expand Down

0 comments on commit 3534797

Please sign in to comment.