From 437d87ecad3aaa7ca05c0a2bfa76743019294073 Mon Sep 17 00:00:00 2001 From: Lantao Jin Date: Fri, 24 Oct 2025 12:31:37 +0800 Subject: [PATCH] Mitigate the CI failure caused by 500 Internal Server Error (#4646) * Fix CI failure Signed-off-by: Lantao Jin * revert Signed-off-by: Lantao Jin * move forward Signed-off-by: Lantao Jin * add retry Signed-off-by: Lantao Jin * add restriction for repo jitpack Signed-off-by: Lantao Jin * add build cache Signed-off-by: Lantao Jin --------- Signed-off-by: Lantao Jin (cherry picked from commit 2cb1d7349a13237fab3c084ca62e170a391f1927) --- build.gradle | 14 +++++++++----- gradle.properties | 1 + integ-test/build.gradle | 6 +++++- plugin/build.gradle | 6 +++++- 4 files changed, 20 insertions(+), 7 deletions(-) diff --git a/build.gradle b/build.gradle index 7d225285d2a..d22364aaf96 100644 --- a/build.gradle +++ b/build.gradle @@ -90,8 +90,10 @@ apply plugin: 'opensearch.java' repositories { mavenLocal() mavenCentral() // For Elastic Libs that you can use to get started coding until open OpenSearch libs are available - maven { url "https://central.sonatype.com/repository/maven-snapshots/" } - maven { url 'https://jitpack.io' } + maven { + url 'https://jitpack.io' + content { includeGroup "com.github.babbel" } + } maven { url "https://ci.opensearch.org/ci/dbc/snapshots/maven/" } } @@ -159,10 +161,12 @@ subprojects { repositories { mavenLocal() mavenCentral() - maven { url "https://central.sonatype.com/repository/maven-snapshots/" } - maven { url "https://d1nvenhzbhpy0q.cloudfront.net/snapshots/lucene/" } - maven { url 'https://jitpack.io' } + maven { + url 'https://jitpack.io' + content { includeGroup "com.github.babbel" } + } maven { url "https://ci.opensearch.org/ci/dbc/snapshots/maven/" } + maven { url "https://ci.opensearch.org/ci/dbc/snapshots/lucene/" } } } diff --git a/gradle.properties b/gradle.properties index cca553e80bf..d95eee2f1a1 100644 --- a/gradle.properties +++ b/gradle.properties @@ -5,3 +5,4 @@ version=1.13.0 org.gradle.jvmargs=-Duser.language=en -Duser.country=US org.gradle.parallel=true +org.gradle.caching=true diff --git a/integ-test/build.gradle b/integ-test/build.gradle index 197eddf7495..83fff693eb8 100644 --- a/integ-test/build.gradle +++ b/integ-test/build.gradle @@ -52,9 +52,13 @@ String ignorePrometheusProp = System.getProperty("ignorePrometheus") boolean ignorePrometheus = ignorePrometheusProp != null && !ignorePrometheusProp.equalsIgnoreCase("false") repositories { + mavenLocal() mavenCentral() maven { url "https://ci.opensearch.org/ci/dbc/snapshots/maven/" } - maven { url 'https://jitpack.io' } + maven { + url 'https://jitpack.io' + content { includeGroup "com.github.babbel" } + } // Add extra repository for the JDBC driver if given by user if (System.getProperty("jdbcRepo") != null && new File(System.getProperty("jdbcRepo")).isDirectory()) { diff --git a/plugin/build.gradle b/plugin/build.gradle index 56e8f57a510..f1b62ceb903 100644 --- a/plugin/build.gradle +++ b/plugin/build.gradle @@ -44,8 +44,12 @@ ext { } repositories { + mavenLocal() mavenCentral() - maven { url 'https://jitpack.io' } + maven { + url 'https://jitpack.io' + content { includeGroup "com.github.babbel" } + } } opensearchplugin {