add boostrap to docker build to fix missing jars (#16622)

The DRA build failed because the required jars were missing, as they had been removed during the Docker build process.
This commit is contained in:
kaisecheng 2024-11-01 15:45:35 +00:00 committed by GitHub
parent 0006937e46
commit 00da72378b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -162,6 +162,7 @@ namespace "artifact" do
@bundles_jdk = true
create_archive_pack(license_details, "x86_64", "linux", "darwin")
create_archive_pack(license_details, "arm64", "linux", "darwin")
safe_system("./gradlew bootstrap") # force the build of Logstash jars
end
def create_archive_pack(license_details, arch, *oses)
@ -227,6 +228,7 @@ namespace "artifact" do
license_details = ['APACHE-LICENSE-2.0', "-oss", oss_exclude_paths]
create_archive_pack(license_details, "x86_64", "linux", "darwin")
create_archive_pack(license_details, "arm64", "linux", "darwin")
safe_system("./gradlew bootstrap") # force the build of Logstash jars
end
desc "Build an RPM of logstash with all dependencies"