From 0b71ed31d6624a23a4b597a9fdc85f95375d1e9c Mon Sep 17 00:00:00 2001 From: Jacek Poreda Date: Wed, 22 Feb 2023 10:39:50 +0100 Subject: [PATCH] SONAR-17714 Fix elasticsearch/bin directory issue Elasticsearch requires to not have empty elasticsearch/bin directory, hence we are excluding some of the scripts from the archive --- sonar-application/build.gradle | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/sonar-application/build.gradle b/sonar-application/build.gradle index 6a9d0c34e75..1ee3a5be18f 100644 --- a/sonar-application/build.gradle +++ b/sonar-application/build.gradle @@ -154,7 +154,25 @@ task zip(type: Zip, dependsOn: [configurations.compileClasspath, downloadElastic fcd.relativePath = new RelativePath(true, *path) } into("${archiveDir}/elasticsearch") - exclude '**/bin/**' + exclude '**/bin/elasticsearch-certgen' + exclude '**/bin/elasticsearch-certutil' + exclude '**/bin/elasticsearch-create-enrollment-token' + exclude '**/bin/elasticsearch-croneval' + exclude '**/bin/elasticsearch-env-from-file' + exclude '**/bin/elasticsearch-geoip' + exclude '**/bin/elasticsearch-keystore' + exclude '**/bin/elasticsearch-node' + exclude '**/bin/elasticsearch-plugin' + exclude '**/bin/elasticsearch-reconfigure-node' + exclude '**/bin/elasticsearch-reset-password' + exclude '**/bin/elasticsearch-saml-metadata' + exclude '**/bin/elasticsearch-service-tokens' + exclude '**/bin/elasticsearch-setup-passwords' + exclude '**/bin/elasticsearch-shard' + exclude '**/bin/elasticsearch-sql-cli' + exclude '**/bin/elasticsearch-sql-cli-8.6.1.jar' + exclude '**/bin/elasticsearch-syskeygen' + exclude '**/bin/elasticsearch-users' exclude '**/jdk/**' exclude '**/lib/tools/plugin-cli' exclude '**/lib/tools/geoip-cli' -- 2.39.5