@@ -45,6 +45,8 @@ buildscript {
45
45
opensearch_build + = " -SNAPSHOT"
46
46
}
47
47
opensearch_no_snapshot = opensearch_build. replace(" -SNAPSHOT" ," " )
48
+ repo_s3_resource_folder = " build/resource/repository-s3"
49
+ repo_s3_download_url = " https://ci.opensearch.org/ci/dbc/distribution-build-opensearch/3.0.0/latest/linux/arm64/tar/builds/opensearch/core-plugins/repository-s3-3.0.0.zip"
48
50
}
49
51
50
52
// This isn't applying from repositories.gradle so repeating git diff it here
93
95
projectSubstitutions = [:]
94
96
95
97
configureSecurityPlugin = { OpenSearchCluster cluster ->
96
- configurations. zipArchive . asFileTree. each {
98
+ configurations. secureIntegTestPluginArchive . asFileTree. each {
97
99
cluster. plugin(provider(new Callable<RegularFile > () {
98
100
@Override
99
101
RegularFile call () throws Exception {
@@ -214,6 +216,7 @@ allprojects {
214
216
215
217
configurations {
216
218
zipArchive
219
+ secureIntegTestPluginArchive
217
220
}
218
221
219
222
publishing {
@@ -303,6 +306,7 @@ task release(type: Copy, group: 'build') {
303
306
dependencies {
304
307
api " org.opensearch:opensearch:${ opensearch_version} "
305
308
compileOnly " org.opensearch.plugin:opensearch-scripting-painless-spi:${ versions.opensearch} "
309
+ compileOnly " org.opensearch.plugin:repository-s3:${ versions.opensearch} "
306
310
api group : ' com.google.guava' , name : ' failureaccess' , version :' 1.0.1'
307
311
api group : ' com.google.guava' , name : ' guava' , version :' 32.1.3-jre'
308
312
api group : ' commons-lang' , name : ' commons-lang' , version : ' 2.6'
@@ -511,6 +515,26 @@ testClusters.integTest {
511
515
configureSecurityPlugin(testClusters. integTest)
512
516
}
513
517
518
+ // Install K-NN/ml-commons plugins on the integTest cluster nodes except security
519
+ plugin(provider(new Callable<RegularFile > (){
520
+ @Override
521
+ RegularFile call () throws Exception {
522
+ return new RegularFile () {
523
+ @Override
524
+ File getAsFile () {
525
+ if (new File (" $project . rootDir /$repo_s3_resource_folder " ). exists()) {
526
+ project. delete(files(" $project . rootDir /$repo_s3_resource_folder " ))
527
+ }
528
+ project. mkdir repo_s3_resource_folder
529
+ ant. get(src : repo_s3_download_url,
530
+ dest : repo_s3_resource_folder,
531
+ httpusecaches : false )
532
+ return fileTree(repo_s3_resource_folder). getSingleFile()
533
+ }
534
+ }
535
+ }
536
+ }))
537
+
514
538
plugin(project. tasks. bundlePlugin. archiveFile)
515
539
if (Os . isFamily(Os . FAMILY_WINDOWS )) {
516
540
// Add the paths of built JNI libraries and its dependent libraries to PATH variable in System variables
0 commit comments