Skip to content

Commit

Permalink
Fix conflict
Browse files Browse the repository at this point in the history
Signed-off-by: prudhvigodithi <[email protected]>
  • Loading branch information
prudhvigodithi committed Aug 31, 2022
2 parents 5ee29bd + 761f1bf commit ed88dc7
Show file tree
Hide file tree
Showing 79 changed files with 543 additions and 29 deletions.
1 change: 1 addition & 0 deletions .github/workflows/increment-plugin-versions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ jobs:
- {repo: sql}
branch:
- '2.2'
- '2.x'
- '1.3'
exclude:
- {repo: geospatial, branch: '1.3'}
Expand Down
2 changes: 0 additions & 2 deletions jenkins/check-for-build.jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ pipeline {
}
triggers {
parameterizedCron '''
H/60 * * * * %INPUT_MANIFEST=2.2.1/opensearch-2.2.1.yml;TEST_MANIFEST=2.2.1/opensearch-2.2.1-test.yml;TARGET_JOB_NAME=distribution-build-opensearch
H/60 * * * * %INPUT_MANIFEST=2.2.1/opensearch-dashboards-2.2.1.yml;TEST_MANIFEST=2.2.1/opensearch-dashboards-2.2.1-test.yml;TARGET_JOB_NAME=distribution-build-opensearch-dashboards
H 1 * * * %INPUT_MANIFEST=2.3.0/opensearch-dashboards-2.3.0.yml;TARGET_JOB_NAME=distribution-build-opensearch-dashboards
H 1 * * * %INPUT_MANIFEST=2.3.0/opensearch-2.3.0.yml;TARGET_JOB_NAME=distribution-build-opensearch
H 1 * * * %INPUT_MANIFEST=3.0.0/opensearch-3.0.0.yml;TARGET_JOB_NAME=distribution-build-opensearch
Expand Down
3 changes: 3 additions & 0 deletions jenkins/gradle/gradle-check.jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,9 @@ pipeline {
}
}
post() {
failure {
archiveArtifacts artifacts: '**/build/heapdump/*.hprof', allowEmptyArchive: true
}
always {
sh ("cp -v `find search/build/reports/jacoco/ -name '*.xml' | head -n 1` codeCoverage.xml || echo")
junit allowEmptyResults: true, testResults: '**/build/test-results/**/*.xml'
Expand Down
7 changes: 7 additions & 0 deletions tests/jenkins/LibFunctionTester.groovy
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* 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.
*/
import jenkins.tests.BuildPipelineTest

abstract class LibFunctionTester extends BuildPipelineTest {
Expand Down
7 changes: 7 additions & 0 deletions tests/jenkins/TestCopyContainer.groovy
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* 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.
*/
import jenkins.tests.BuildPipelineTest
import org.junit.*

Expand Down
7 changes: 7 additions & 0 deletions tests/jenkins/TestCreateGithubIssue.groovy
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* 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.
*/
package jenkins.tests

import jenkins.tests.BuildPipelineTest
Expand Down
7 changes: 7 additions & 0 deletions tests/jenkins/TestPromoteContainer.groovy
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* 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.
*/
import jenkins.tests.BuildPipelineTest
import org.junit.Before
import org.junit.Test
Expand Down
7 changes: 7 additions & 0 deletions tests/jenkins/TestSignStandaloneArtifactsJob.groovy
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* 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.
*/
import jenkins.tests.BuildPipelineTest
import org.junit.Before
import org.junit.Test
Expand Down
7 changes: 7 additions & 0 deletions tests/jenkins/TestUploadTestResults.groovy
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* 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.
*/
import jenkins.tests.BuildPipelineTest
import org.junit.Before
import org.junit.Test
Expand Down
7 changes: 7 additions & 0 deletions tests/jenkins/TestUploadToS3.groovy
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* 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.
*/
import jenkins.tests.BuildPipelineTest
import org.junit.Before
import org.junit.Test
Expand Down
7 changes: 7 additions & 0 deletions tests/jenkins/lib-testers/AssembleManifestLibTester.groovy
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* 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.
*/
import static org.hamcrest.CoreMatchers.notNullValue
import static org.hamcrest.MatcherAssert.assertThat

Expand Down
11 changes: 8 additions & 3 deletions tests/jenkins/lib-testers/BuildFailureMessageLibTester.groovy
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
import static org.hamcrest.CoreMatchers.notNullValue
import static org.hamcrest.MatcherAssert.assertThat
/*
* 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.
*/

class BuildFailureMessageLibTester extends LibFunctionTester {

Expand All @@ -22,4 +27,4 @@ class BuildFailureMessageLibTester extends LibFunctionTester {

void configure(helper, binding){
}
}
}
7 changes: 7 additions & 0 deletions tests/jenkins/lib-testers/BuildInfoYamlLibTester.groovy
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* 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.
*/
import static org.hamcrest.CoreMatchers.notNullValue
import static org.hamcrest.MatcherAssert.assertThat

Expand Down
7 changes: 7 additions & 0 deletions tests/jenkins/lib-testers/BuildYumRepoTester.groovy
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* 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.
*/
import static org.hamcrest.CoreMatchers.notNullValue
import static org.hamcrest.MatcherAssert.assertThat

Expand Down
7 changes: 7 additions & 0 deletions tests/jenkins/lib-testers/CreateGithubIssueLibTester.groovy
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* 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.
*/
import static org.hamcrest.CoreMatchers.notNullValue
import static org.hamcrest.CoreMatchers.nullValue
import static org.hamcrest.MatcherAssert.assertThat
Expand Down
7 changes: 7 additions & 0 deletions tests/jenkins/lib-testers/CreateReleaseTagLibTester.groovy
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* 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.
*/
import jenkins.BundleManifest
import org.yaml.snakeyaml.Yaml

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* 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.
*/
import static org.hamcrest.CoreMatchers.notNullValue
import static org.hamcrest.MatcherAssert.assertThat

Expand All @@ -20,7 +27,7 @@ class CreateTestResultsMessageLibTester extends LibFunctionTester {

void configure(helper, binding) {
binding.setVariable('STAGE_NAME', 'stage')
helper.registerAllowedMethod('findFiles', [Map.class], null)
helper.registerAllowedMethod('findFiles', [Map.class], null)
}

void parameterInvariantsAssertions(call) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
import static org.hamcrest.CoreMatchers.notNullValue
import static org.hamcrest.MatcherAssert.assertThat
/*
* 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.
*/
import org.yaml.snakeyaml.Yaml


Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* 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.
*/
import static org.hamcrest.CoreMatchers.notNullValue
import static org.hamcrest.MatcherAssert.assertThat
import org.yaml.snakeyaml.Yaml
Expand Down
7 changes: 7 additions & 0 deletions tests/jenkins/lib-testers/DownloadFromS3LibTester.groovy
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* 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.
*/
import static org.hamcrest.CoreMatchers.notNullValue
import static org.hamcrest.MatcherAssert.assertThat
import static org.hamcrest.CoreMatchers.anyOf
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* 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.
*/
import static org.hamcrest.MatcherAssert.assertThat
import static org.hamcrest.core.IsNull.notNullValue

Expand Down
7 changes: 7 additions & 0 deletions tests/jenkins/lib-testers/PublishNotificationLibTester.groovy
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* 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.
*/
import static org.hamcrest.CoreMatchers.notNullValue
import static org.hamcrest.MatcherAssert.assertThat

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@

/*
* 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.
*/
import static org.hamcrest.CoreMatchers.notNullValue
import static org.hamcrest.MatcherAssert.assertThat

Expand Down
7 changes: 7 additions & 0 deletions tests/jenkins/lib-testers/RpmMetaValidationLibTester.groovy
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* 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.
*/
import static org.hamcrest.CoreMatchers.notNullValue
import static org.hamcrest.MatcherAssert.assertThat

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@

/*
* 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.
*/
import static org.hamcrest.CoreMatchers.notNullValue
import static org.hamcrest.MatcherAssert.assertThat

Expand Down
7 changes: 7 additions & 0 deletions tests/jenkins/lib-testers/RunBwcTestScriptLibTest.groovy
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* 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.
*/
import static org.hamcrest.CoreMatchers.notNullValue
import static org.hamcrest.MatcherAssert.assertThat

Expand Down
7 changes: 7 additions & 0 deletions tests/jenkins/lib-testers/RunGradleCheckLibTester.groovy
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* 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.
*/
import static org.hamcrest.CoreMatchers.notNullValue
import static org.hamcrest.MatcherAssert.assertThat

Expand Down
7 changes: 7 additions & 0 deletions tests/jenkins/lib-testers/RunIntegTestScriptLibTest.groovy
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* 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.
*/
import static org.hamcrest.CoreMatchers.notNullValue
import static org.hamcrest.MatcherAssert.assertThat

Expand Down
9 changes: 8 additions & 1 deletion tests/jenkins/lib-testers/RunPerfTestScriptLibTest.groovy
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* 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.
*/
import static org.hamcrest.CoreMatchers.notNullValue
import static org.hamcrest.MatcherAssert.assertThat

Expand Down Expand Up @@ -93,4 +100,4 @@ class RunPerfTestScriptLibTester extends LibFunctionTester {
String libFunctionName() {
return 'runPerfTestScript'
}
}
}
7 changes: 7 additions & 0 deletions tests/jenkins/lib-testers/ScanDockerImageLibTester.groovy
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* 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.
*/
import static org.hamcrest.CoreMatchers.notNullValue
import static org.hamcrest.MatcherAssert.assertThat

Expand Down
7 changes: 7 additions & 0 deletions tests/jenkins/lib-testers/SignArtifactsLibTester.groovy
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* 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.
*/
import static org.hamcrest.CoreMatchers.notNullValue
import static org.hamcrest.MatcherAssert.assertThat

Expand Down
7 changes: 7 additions & 0 deletions tests/jenkins/lib-testers/UploadIndexFileLibTester.groovy
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* 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.
*/
import static org.hamcrest.CoreMatchers.notNullValue
import static org.hamcrest.MatcherAssert.assertThat

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* 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.
*/
import static org.hamcrest.CoreMatchers.notNullValue
import static org.hamcrest.MatcherAssert.assertThat

Expand Down
7 changes: 7 additions & 0 deletions tests/jenkins/lib-testers/UploadTestResultsLibTester.groovy
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* 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.
*/
import static org.hamcrest.CoreMatchers.notNullValue
import static org.hamcrest.MatcherAssert.assertThat

Expand Down
Loading

0 comments on commit ed88dc7

Please sign in to comment.