From e2d5b29617319a68640aff3eed97a9a3373be75e Mon Sep 17 00:00:00 2001 From: Prudhvi Godithi Date: Thu, 13 Jun 2024 13:12:48 -0700 Subject: [PATCH] Update the lib to 6.5.0 and add gradle-check-flaky-test-issue-creation.jenkinsfile Signed-off-by: Prudhvi Godithi --- ...heck-flaky-test-issue-creation.jenkinsfile | 38 +++++++++++++++++++ jenkins/gradle/gradle-check.jenkinsfile | 2 +- .../distribution-build.jenkinsfile | 2 +- .../integ-test.jenkinsfile | 2 +- .../opensearch/distribution-build.jenkinsfile | 2 +- jenkins/opensearch/integ-test.jenkinsfile | 2 +- .../TestOpenSearchDashboardsIntegTest.groovy | 2 +- tests/jenkins/TestOpenSearchIntegTest.groovy | 2 +- 8 files changed, 45 insertions(+), 7 deletions(-) create mode 100644 jenkins/gradle/gradle-check-flaky-test-issue-creation.jenkinsfile diff --git a/jenkins/gradle/gradle-check-flaky-test-issue-creation.jenkinsfile b/jenkins/gradle/gradle-check-flaky-test-issue-creation.jenkinsfile new file mode 100644 index 0000000000..ae8f53c9c3 --- /dev/null +++ b/jenkins/gradle/gradle-check-flaky-test-issue-creation.jenkinsfile @@ -0,0 +1,38 @@ +/* + * Copyright OpenSearch Contributors + * SPDX-License-Identifier: Apache-2.0 + * + * The OpenSearch Contributors require contributions made to + * this file be licensed under the Apache-2.0 license or a + * compatible open source license. + */ + +lib = library(identifier: 'jenkins@6.5.0', retriever: modernSCM([ + $class: 'GitSCMSource', + remote: 'https://github.com/opensearch-build-libraries/opensearch-build-libraries.git', +])) + + +pipeline { + agent { label 'Jenkins-Agent-Ubuntu2004-X64-M58xlarge-Single-Host' } + options { + timeout(time: 1, unit: 'HOURS') + buildDiscarder(logRotator(daysToKeepStr: '180')) + } + stages { + stage('Detect Gradle Check Flaky Tests') { + steps { + script { + gradleCheckFlakyTestChecker() + } + } + } + } + post() { + always { + script { + postCleanup() + } + } + } +} diff --git a/jenkins/gradle/gradle-check.jenkinsfile b/jenkins/gradle/gradle-check.jenkinsfile index b4e1249916..bed22d1ea8 100644 --- a/jenkins/gradle/gradle-check.jenkinsfile +++ b/jenkins/gradle/gradle-check.jenkinsfile @@ -7,7 +7,7 @@ * compatible open source license. */ -lib = library(identifier: 'jenkins@6.4.8', retriever: modernSCM([ +lib = library(identifier: 'jenkins@6.5.0', retriever: modernSCM([ $class: 'GitSCMSource', remote: 'https://github.com/opensearch-project/opensearch-build-libraries.git', ])) diff --git a/jenkins/opensearch-dashboards/distribution-build.jenkinsfile b/jenkins/opensearch-dashboards/distribution-build.jenkinsfile index a02e1a507b..91c90a4b89 100644 --- a/jenkins/opensearch-dashboards/distribution-build.jenkinsfile +++ b/jenkins/opensearch-dashboards/distribution-build.jenkinsfile @@ -7,7 +7,7 @@ * compatible open source license. */ -lib = library(identifier: 'jenkins@6.4.1', retriever: modernSCM([ +lib = library(identifier: 'jenkins@6.5.0', retriever: modernSCM([ $class: 'GitSCMSource', remote: 'https://github.com/opensearch-project/opensearch-build-libraries.git', ])) diff --git a/jenkins/opensearch-dashboards/integ-test.jenkinsfile b/jenkins/opensearch-dashboards/integ-test.jenkinsfile index ec95cae4f7..fcf3f86636 100644 --- a/jenkins/opensearch-dashboards/integ-test.jenkinsfile +++ b/jenkins/opensearch-dashboards/integ-test.jenkinsfile @@ -7,7 +7,7 @@ * compatible open source license. */ -lib = library(identifier: 'jenkins@6.3.2', retriever: modernSCM([ +lib = library(identifier: 'jenkins@6.5.0', retriever: modernSCM([ $class: 'GitSCMSource', remote: 'https://github.com/opensearch-project/opensearch-build-libraries.git', diff --git a/jenkins/opensearch/distribution-build.jenkinsfile b/jenkins/opensearch/distribution-build.jenkinsfile index b41b28bd77..c6cafceedf 100644 --- a/jenkins/opensearch/distribution-build.jenkinsfile +++ b/jenkins/opensearch/distribution-build.jenkinsfile @@ -7,7 +7,7 @@ * compatible open source license. */ -lib = library(identifier: 'jenkins@6.4.1', retriever: modernSCM([ +lib = library(identifier: 'jenkins@6.5.0', retriever: modernSCM([ $class: 'GitSCMSource', remote: 'https://github.com/opensearch-project/opensearch-build-libraries.git', ])) diff --git a/jenkins/opensearch/integ-test.jenkinsfile b/jenkins/opensearch/integ-test.jenkinsfile index f8169a546c..d5975ac77d 100644 --- a/jenkins/opensearch/integ-test.jenkinsfile +++ b/jenkins/opensearch/integ-test.jenkinsfile @@ -7,7 +7,7 @@ * compatible open source license. */ -lib = library(identifier: 'jenkins@6.3.2', retriever: modernSCM([ +lib = library(identifier: 'jenkins@6.5.0', retriever: modernSCM([ $class: 'GitSCMSource', remote: 'https://github.com/opensearch-project/opensearch-build-libraries.git', diff --git a/tests/jenkins/TestOpenSearchDashboardsIntegTest.groovy b/tests/jenkins/TestOpenSearchDashboardsIntegTest.groovy index 815331d9e7..1d7566a9a2 100644 --- a/tests/jenkins/TestOpenSearchDashboardsIntegTest.groovy +++ b/tests/jenkins/TestOpenSearchDashboardsIntegTest.groovy @@ -26,7 +26,7 @@ class TestOpenSearchDashboardsIntegTest extends BuildPipelineTest { helper.registerSharedLibrary( library().name('jenkins') - .defaultVersion('6.3.2') + .defaultVersion('6.5.0') .allowOverride(true) .implicit(true) .targetPath('vars') diff --git a/tests/jenkins/TestOpenSearchIntegTest.groovy b/tests/jenkins/TestOpenSearchIntegTest.groovy index 193831bba7..cd46c895bc 100644 --- a/tests/jenkins/TestOpenSearchIntegTest.groovy +++ b/tests/jenkins/TestOpenSearchIntegTest.groovy @@ -25,7 +25,7 @@ class TestOpenSearchIntegTest extends BuildPipelineTest { helper.registerSharedLibrary( library().name('jenkins') - .defaultVersion('6.3.2') + .defaultVersion('6.5.0') .allowOverride(true) .implicit(true) .targetPath('vars')