diff --git a/jenkins/opensearch-dashboards/distribution-build.jenkinsfile b/jenkins/opensearch-dashboards/distribution-build.jenkinsfile
index e66559ba6a..6a55611462 100644
--- a/jenkins/opensearch-dashboards/distribution-build.jenkinsfile
+++ b/jenkins/opensearch-dashboards/distribution-build.jenkinsfile
@@ -897,7 +897,10 @@ pipeline {
manifest: "${INPUT_MANIFEST}"
)
}
-
+ closeBuildSuccessGithubIssue(
+ message: buildMessage(search: 'pass'),
+ inputManifestPath: "manifests/$INPUT_MANIFEST"
+ )
postCleanup()
}
}
@@ -909,14 +912,14 @@ pipeline {
if (params.PUBLISH_NOTIFICATION) {
publishNotification(
icon: ':warning:',
- message: buildFailureMessage(),
+ message: buildMessage(search: 'fail'),
credentialsId: 'jenkins-build-notice-webhook',
manifest: "${INPUT_MANIFEST}"
)
}
if (params.CREATE_GITHUB_ISSUE) {
createGithubIssue(
- message: buildFailureMessage()
+ message: buildMessage(search: 'fail'),
)
}
diff --git a/jenkins/opensearch-dashboards/integ-test.jenkinsfile b/jenkins/opensearch-dashboards/integ-test.jenkinsfile
index ef94acfda8..2f28d0437e 100644
--- a/jenkins/opensearch-dashboards/integ-test.jenkinsfile
+++ b/jenkins/opensearch-dashboards/integ-test.jenkinsfile
@@ -1,6 +1,6 @@
-lib = library(identifier: 'jenkins@4.2.2', retriever: modernSCM([
+lib = library(identifier: 'jenkins@main', retriever: modernSCM([
$class: 'GitSCMSource',
- remote: 'https://github.com/opensearch-project/opensearch-build-libraries.git',
+ remote: 'https://github.com/prudhvigodithi/opensearch-build-libraries.git',
]))
def docker_images = [
@@ -196,7 +196,14 @@ pipeline {
testManifest: "manifests/${TEST_MANIFEST}",
localPath: "${WORKSPACE}/${distribution}",
switchUserNonRoot: "${switch_user_non_root}"
- )
+ )
+ String closeCommentMessage = "Closing the issue as the Integration Test passed for ${local_component}
Version: ${version}
Distribution: ${distribution}
Architecture: ${architecture}
Platform: ${platform}
Please check the logs: ${RUN_DISPLAY_URL}
*"
+ closeGithubIssue(
+ repoUrl: buildManifestObj.getRepo("${local_component}"),
+ issueTitle: "[AUTOCUT] Integration Test failed for ${local_component}: ${version} ${distribution} distribution",
+ closeComment: closeCommentMessage,
+ label: "autocut,v${version},integ-test-failure"
+ )
}
} catch (e) {
echo "Error running integtest for component ${local_component}, creating Github issue"
diff --git a/jenkins/opensearch/distribution-build.jenkinsfile b/jenkins/opensearch/distribution-build.jenkinsfile
index 58bf89620b..d1881c78ce 100644
--- a/jenkins/opensearch/distribution-build.jenkinsfile
+++ b/jenkins/opensearch/distribution-build.jenkinsfile
@@ -1,6 +1,6 @@
-lib = library(identifier: 'jenkins@4.3.0', retriever: modernSCM([
+lib = library(identifier: 'jenkins@main', retriever: modernSCM([
$class: 'GitSCMSource',
- remote: 'https://github.com/opensearch-project/opensearch-build-libraries.git',
+ remote: 'https://github.com/prudhvigodithi/opensearch-build-libraries.git',
]))
pipeline {
@@ -132,7 +132,7 @@ pipeline {
}
stage('build') {
parallel {
- stage('build-opensearch-snapshot-linux-x64-tar') {
+ /*stage('build-opensearch-snapshot-linux-x64-tar') {
when {
beforeAgent true
expression{
@@ -173,8 +173,8 @@ pipeline {
postCleanup()
}
}
- }
- stage('build-opensearch-snapshot-linux-arm64-tar') {
+ }*/
+ /*stage('build-opensearch-snapshot-linux-arm64-tar') {
when {
beforeAgent true
expression{
@@ -212,8 +212,8 @@ pipeline {
postCleanup()
}
}
- }
- stage('build-opensearch-snapshot-macos-x64-tar') {
+ }*/
+ /*stage('build-opensearch-snapshot-macos-x64-tar') {
when {
beforeAgent true
expression{
@@ -250,8 +250,8 @@ pipeline {
postCleanup()
}
}
- }
- stage('build-opensearch-snapshot-windows-x64-zip') {
+ }*/
+ /*stage('build-opensearch-snapshot-windows-x64-zip') {
when {
beforeAgent true
expression{
@@ -288,8 +288,8 @@ pipeline {
postCleanup()
}
}
- }
- stage('build-and-test-linux-x64-tar') {
+ }*/
+ /*stage('build-and-test-linux-x64-tar') {
when {
beforeAgent true
expression{
@@ -367,7 +367,7 @@ pipeline {
}
}
}
- }
+ }*/
stage('build-and-test-linux-x64-rpm') {
when {
beforeAgent true
@@ -395,7 +395,8 @@ pipeline {
platform: 'linux',
architecture: 'x64',
distribution: 'rpm',
- stashName: "build-archive-linux-x64-rpm-${JOB_NAME}-${BUILD_NUMBER}"
+ stashName: "build-archive-linux-x64-rpm-pgodithi-distribution-build-opensearch-${BUILD_NUMBER}"
+ // stashName: "build-archive-linux-x64-rpm-${JOB_NAME}-${BUILD_NUMBER}"
)
}
}
@@ -405,7 +406,7 @@ pipeline {
}
}
}
- stage('assemble-archive-and-test-linux-x64-rpm') {
+ /*stage('assemble-archive-and-test-linux-x64-rpm') {
agent {
docker {
label AGENT_X64
@@ -456,10 +457,10 @@ pipeline {
}
}
}
- }
+ }*/
}
}
- stage('build-and-test-linux-x64-deb') {
+ /*stage('build-and-test-linux-x64-deb') {
when {
beforeAgent true
expression{
@@ -540,8 +541,8 @@ pipeline {
}
}
}
- }
- stage('build-and-test-linux-arm64-tar') {
+ }*/
+ /*stage('build-and-test-linux-arm64-tar') {
when {
beforeAgent true
expression{
@@ -618,8 +619,8 @@ pipeline {
}
}
}
- }
- stage('build-and-test-linux-arm64-rpm') {
+ }*/
+ /*stage('build-and-test-linux-arm64-rpm') {
when {
beforeAgent true
expression{
@@ -709,8 +710,8 @@ pipeline {
}
}
}
- }
- stage('build-and-test-linux-arm64-deb') {
+ }*/
+ /*stage('build-and-test-linux-arm64-deb') {
when {
beforeAgent true
expression{
@@ -791,8 +792,8 @@ pipeline {
}
}
}
- }
- stage('build-and-test-windows-x64-zip') {
+ }*/
+ /*stage('build-and-test-windows-x64-zip') {
when {
beforeAgent true
expression{
@@ -838,10 +839,10 @@ pipeline {
}
}
}
- }
+ }*/
}
}
- stage('update index file') {
+ /*stage('update index file') {
agent {
docker {
label AGENT_X64
@@ -860,8 +861,8 @@ pipeline {
}
}
}
- }
- stage('docker build') {
+ }*.
+ /*stage('docker build') {
when {
beforeAgent true
allOf{
@@ -896,10 +897,10 @@ pipeline {
)
}
}
- }
+ }*/
}
post {
- always {
+ /*always {
node(AGENT_X64) {
script {
buildInfoYaml(
@@ -912,12 +913,13 @@ pipeline {
postCleanup()
}
}
- }
+ }*/
success {
node(AGENT_X64) {
+ checkout scm
script {
List stages = []
- if (params.BUILD_PLATFORM.contains('linux')) {
+ /*if (params.BUILD_PLATFORM.contains('linux')) {
stages = [
'build-and-test-linux-x64-tar',
'assemble-archive-and-test-linux-x64-rpm',
@@ -926,12 +928,12 @@ pipeline {
'assemble-archive-and-test-linux-arm64-rpm',
'assemble-archive-and-test-linux-arm64-deb',
]
- }
- if (params.BUILD_PLATFORM.contains('windows')){
+ }*/
+ /*if (params.BUILD_PLATFORM.contains('windows')){
stages.add('build-and-test-windows-x64-zip')
- }
+ }*/
- if (params.PUBLISH_NOTIFICATION) {
+ /*if (params.PUBLISH_NOTIFICATION) {
def stashed = lib.jenkins.Messages.new(this).get(stages)
publishNotification(
@@ -941,7 +943,11 @@ pipeline {
credentialsId: 'jenkins-build-notice-webhook',
manifest: "${INPUT_MANIFEST}"
)
- }
+ }*/
+ closeBuildSuccessGithubIssue(
+ message: buildMessage(search: 'pass'),
+ inputManifestPath: "manifests/$INPUT_MANIFEST"
+ )
postCleanup()
}
@@ -951,17 +957,17 @@ pipeline {
node(AGENT_X64) {
checkout scm
script {
- if (params.PUBLISH_NOTIFICATION) {
+ /*if (params.PUBLISH_NOTIFICATION) {
publishNotification(
icon: ':warning:',
- message: buildFailureMessage(),
+ message: buildMessage(search: 'fail'),
credentialsId: 'jenkins-build-notice-webhook',
manifest: "${INPUT_MANIFEST}"
)
- }
+ }*/
if (params.CREATE_GITHUB_ISSUE) {
createBuildFailureGithubIssue(
- message: buildFailureMessage(),
+ message: buildMessage(search: 'fail'),
inputManifestPath: "manifests/$INPUT_MANIFEST"
)
}
diff --git a/jenkins/opensearch/integ-test.jenkinsfile b/jenkins/opensearch/integ-test.jenkinsfile
index f9c7aad17a..a705454fe3 100644
--- a/jenkins/opensearch/integ-test.jenkinsfile
+++ b/jenkins/opensearch/integ-test.jenkinsfile
@@ -1,6 +1,6 @@
-lib = library(identifier: 'jenkins@4.2.2', retriever: modernSCM([
+lib = library(identifier: 'jenkins@main', retriever: modernSCM([
$class: 'GitSCMSource',
- remote: 'https://github.com/opensearch-project/opensearch-build-libraries.git',
+ remote: 'https://github.com/prudhvigodithi/opensearch-build-libraries.git',
]))
def docker_images = [
@@ -161,6 +161,13 @@ pipeline {
localPath: "${WORKSPACE}/${distribution}",
switchUserNonRoot: "${switch_user_non_root}"
)
+ String closeCommentMessage = "Closing the issue as the Integration Test passed for ${local_component}
Version: ${version}
Distribution: ${distribution}
Architecture: ${architecture}
Platform: ${platform}
Please check the logs: ${RUN_DISPLAY_URL}
*"
+ closeGithubIssue(
+ repoUrl: buildManifestObj.getRepo("${local_component}"),
+ issueTitle: "[AUTOCUT] Integration Test failed for ${local_component}: ${version} ${distribution} distribution",
+ closeComment: closeCommentMessage,
+ label: "autocut,v${version},integ-test-failure"
+ )
}
} catch (e) {
echo "Error running integtest for component ${local_component}, creating Github issue"
diff --git a/manifests/2.8.0/opensearch-2.8.0.yml b/manifests/2.8.0/opensearch-2.8.0.yml
index f61e4ca1df..f6280fc708 100644
--- a/manifests/2.8.0/opensearch-2.8.0.yml
+++ b/manifests/2.8.0/opensearch-2.8.0.yml
@@ -5,7 +5,7 @@ build:
version: 2.8.0
ci:
image:
- name: opensearchstaging/ci-runner:ci-runner-centos7-opensearch-build-v2
+ name: opensearchstaging/ci-runner:ci-runner-centos7-opensearch-build-v3
args: -e JAVA_HOME=/opt/java/openjdk-17
components:
- name: OpenSearch
diff --git a/src/run_build.py b/src/run_build.py
index 763f296500..b665b23bce 100755
--- a/src/run_build.py
+++ b/src/run_build.py
@@ -67,6 +67,7 @@ def main() -> int:
builder.checkout(work_dir.name)
builder.build(build_recorder)
builder.export_artifacts(build_recorder)
+ logging.info(f"Build successful {component.name}")
except:
logging.error(f"Error building {component.name}, retry with: {args.component_command(component.name)}")
raise
diff --git a/tests/jenkins/TestOpenSearchDashboardsIntegTest.groovy b/tests/jenkins/TestOpenSearchDashboardsIntegTest.groovy
index 11624a70a4..fdb4bc2111 100644
--- a/tests/jenkins/TestOpenSearchDashboardsIntegTest.groovy
+++ b/tests/jenkins/TestOpenSearchDashboardsIntegTest.groovy
@@ -24,11 +24,11 @@ class TestOpenSearchDashboardsIntegTest extends BuildPipelineTest {
helper.registerSharedLibrary(
library().name('jenkins')
- .defaultVersion('4.2.2')
+ .defaultVersion('main')
.allowOverride(true)
.implicit(true)
.targetPath('vars')
- .retriever(gitSource('https://github.com/opensearch-project/opensearch-build-libraries.git'))
+ .retriever(gitSource('https://github.com/prudhvigodithi/opensearch-build-libraries.git'))
.build()
)
super.setUp()
@@ -136,6 +136,20 @@ class TestOpenSearchDashboardsIntegTest extends BuildPipelineTest {
assertThat(getCommandExecutions('sh', 'create'), hasItem('{script=gh issue create --title \"[AUTOCUT] Integration Test failed for observabilityDashboards: 3.0.0 tar distribution\" --body \"The integration test failed at distribution level for component observabilityDashboards
Version: 3.0.0
Distribution: tar
Architecture: x64
Platform: linux
Please check the logs: https://some/url/redirect
* Steps to reproduce: See https://github.com/opensearch-project/opensearch-build/tree/main/src/test_workflow#integration-tests
* See all log files:
- [With security](https://ci.opensearch.org/ci/dbc/dummy_job/3.0.0/215/linux/x64/tar/test-results/215/integ-test/observabilityDashboards/with-security/observabilityDashboards.yml) (if applicable)
- [Without security](https://ci.opensearch.org/ci/dbc/dummy_job/3.0.0/215/linux/x64/tar/test-results/215/integ-test/observabilityDashboards/without-security/observabilityDashboards.yml) (if applicable)
\" --label autocut,v3.0.0,integ-test-failure --label \"untriaged\" --repo https://github.com/opensearch-project/dashboards-observability.git, returnStdout=true}'))
}
+ @Test
+ void CheckCloseGHissue() {
+ helper.addShMock('env PATH=$PATH ./test.sh integ-test manifests/tests/jenkins/data/opensearch-dashboards-3.0.0-test.yml --component observabilityDashboards --test-run-id 215 --paths opensearch=/tmp/workspace/tar opensearch-dashboards=/tmp/workspace/tar --base-path DUMMY_PUBLIC_ARTIFACT_URL/dummy_job/3.0.0/215/linux/x64/tar ', '', 1)
+ helper.addShMock('gh issue list --repo https://github.com/opensearch-project/dashboards-visualization.git -S "[AUTOCUT] Integration Test failed for ganttChartDashboards: 3.0.0 tar distribution in:title" --label autocut,v3.0.0,integ-test-failure', '', 0)
+ assertThrows(Exception) {
+ runScript('jenkins/opensearch-dashboards/integ-test.jenkinsfile')
+ }
+ assertJobStatusFailure()
+ runScript('jenkins/opensearch-dashboards/integ-test.jenkinsfile')
+ assertThat(getCommandExecutions('sh', 'script'), hasItem("{script=gh issue list --repo https://github.com/opensearch-project/dashboards-visualizations.git -S \"[AUTOCUT] Integration Test failed for ganttChartDashboards: 3.0.0 tar distribution in:title\" --label autocut,v3.0.0,integ-test-failure, returnStdout=true}"))
+ assertThat(getCommandExecutions('sh', 'script'), hasItem("{script=gh issue list --repo https://github.com/opensearch-project/dashboards-visualizations.git -S \"[AUTOCUT] Integration Test failed for ganttChartDashboards: 3.0.0 tar distribution in:title\" --label autocut,v3.0.0,integ-test-failure --json number --jq '.[0].number', returnStdout=true}"))
+ assertThat(getCommandExecutions('sh', 'script'), hasItem("{script=gh issue close \nbbb\nccc\n --repo https://github.com/opensearch-project/dashboards-visualizations.git --comment \"Closing the issue as the Integration Test passed for ganttChartDashboards
Version: 3.0.0
Distribution: tar
Architecture: x64
Platform: linux
Please check the logs: https://some/url/redirect
*\", returnStdout=true}"))
+ }
+
@Test
void checkGHexistingIssue() {
helper.addShMock('env PATH=$PATH ./test.sh integ-test manifests/tests/jenkins/data/opensearch-dashboards-3.0.0-test.yml --component observabilityDashboards --test-run-id 215 --paths opensearch=/tmp/workspace/tar opensearch-dashboards=/tmp/workspace/tar --base-path DUMMY_PUBLIC_ARTIFACT_URL/dummy_job/3.0.0/215/linux/x64/tar ', '', 1)
@@ -143,7 +157,9 @@ class TestOpenSearchDashboardsIntegTest extends BuildPipelineTest {
runScript('jenkins/opensearch-dashboards/integ-test.jenkinsfile')
}
assertJobStatusFailure()
- assertThat(getCommandExecutions('println', 'Issue'), hasItem('Issue already exists in the repository, skipping.'))
+ assertThat(getCommandExecutions('println', 'Issue'), hasItem('Issue already exists, adding a comment.'))
+ assertThat(getCommandExecutions('sh', 'script'), hasItem("{script=gh issue list --repo https://github.com/opensearch-project/dashboards-visualizations.git -S \"[AUTOCUT] Integration Test failed for ganttChartDashboards: 3.0.0 tar distribution in:title\" --label autocut,v3.0.0,integ-test-failure --json number --jq '.[0].number', returnStdout=true}"))
+ assertThat(getCommandExecutions('sh', 'script'), hasItem("{script=gh issue comment \nbbb\nccc\n --repo https://github.com/opensearch-project/dashboards-observability.git --body \"The integration test failed at distribution level for component observabilityDashboards
Version: 3.0.0
Distribution: tar
Architecture: x64
Platform: linux
Please check the logs: https://some/url/redirect
* Steps to reproduce: See https://github.com/opensearch-project/opensearch-build/tree/main/src/test_workflow#integration-tests
* See all log files:
- [With security](https://ci.opensearch.org/ci/dbc/dummy_job/3.0.0/215/linux/x64/tar/test-results/215/integ-test/observabilityDashboards/with-security/observabilityDashboards.yml) (if applicable)
- [Without security](https://ci.opensearch.org/ci/dbc/dummy_job/3.0.0/215/linux/x64/tar/test-results/215/integ-test/observabilityDashboards/without-security/observabilityDashboards.yml) (if applicable)
\", returnStdout=true}"))
}
def getCommandExecutions(methodName, command) {
diff --git a/tests/jenkins/TestOpenSearchIntegTest.groovy b/tests/jenkins/TestOpenSearchIntegTest.groovy
index 1a17eefdb4..332af570ec 100644
--- a/tests/jenkins/TestOpenSearchIntegTest.groovy
+++ b/tests/jenkins/TestOpenSearchIntegTest.groovy
@@ -23,11 +23,11 @@ class TestOpenSearchIntegTest extends BuildPipelineTest {
helper.registerSharedLibrary(
library().name('jenkins')
- .defaultVersion('4.2.2')
+ .defaultVersion('main')
.allowOverride(true)
.implicit(true)
.targetPath('vars')
- .retriever(gitSource('https://github.com/opensearch-project/opensearch-build-libraries.git'))
+ .retriever(gitSource('https://github.com/prudhvigodithi/opensearch-build-libraries.git'))
.build()
)
@@ -112,6 +112,15 @@ class TestOpenSearchIntegTest extends BuildPipelineTest {
assertThat(getCommandExecutions('sh', 'create'), hasItem('{script=gh issue create --title \"[AUTOCUT] Integration Test failed for OpenSearch: 1.3.0 tar distribution\" --body \"The integration test failed at distribution level for component OpenSearch
Version: 1.3.0
Distribution: tar
Architecture: x64
Platform: linux
Please check the logs: https://some/url/redirect
* Steps to reproduce: See https://github.com/opensearch-project/opensearch-build/tree/main/src/test_workflow#integration-tests
* Access components yml file:
- [With security](https://ci.opensearch.org/ci/dbc/dummy_job/1.3.0/717/linux/x64/tar/test-results/234/integ-test/OpenSearch/with-security/OpenSearch.yml) (if applicable)
- [Without security](https://ci.opensearch.org/ci/dbc/dummy_job/1.3.0/717/linux/x64/tar/test-results/234/integ-test/OpenSearch/without-security/OpenSearch.yml) (if applicable)
_Note: All in one test report manifest with all the details coming soon. See https://github.com/opensearch-project/opensearch-build/issues/1274_\" --label autocut,v1.3.0,integ-test-failure --label \"untriaged\" --repo https://github.com/opensearch-project/OpenSearch.git, returnStdout=true}'))
}
+ @Test
+ void CheckCloseGHissue() {
+ helper.addShMock('env PATH=$PATH JAVA_HOME=/opt/java/openjdk-17 ./test.sh integ-test manifests/tests/jenkins/data/opensearch-1.3.0-test.yml --component OpenSearch --test-run-id 234 --paths opensearch=/tmp/workspace/tar --base-path DUMMY_PUBLIC_ARTIFACT_URL/dummy_job/1.3.0/717/linux/x64/tar', '', 1)
+ runScript('jenkins/opensearch/integ-test.jenkinsfile')
+ assertThat(getCommandExecutions('sh', 'script'), hasItem("{script=gh issue list --repo https://github.com/opensearch-project/OpenSearch.git -S \"[AUTOCUT] Integration Test failed for OpenSearch: 1.3.0 tar distribution in:title\" --label autocut,v1.3.0,integ-test-failure, returnStdout=true}"))
+ assertThat(getCommandExecutions('sh', 'script'), hasItem("{script=gh issue list --repo https://github.com/opensearch-project/OpenSearch.git -S \"[AUTOCUT] Integration Test failed for OpenSearch: 1.3.0 tar distribution in:title\" --label autocut,v1.3.0,integ-test-failure --json number --jq '.[0].number', returnStdout=true}"))
+ assertThat(getCommandExecutions('sh', 'script'), hasItem("{script=gh issue close \nbbb\nccc\n --repo https://github.com/opensearch-project/OpenSearch.git --comment \"Closing the issue as the Integration Test passed for OpenSearch
Version: 1.3.0
Distribution: tar
Architecture: x64
Platform: linux
Please check the logs: https://some/url/redirect
*\", returnStdout=true}"))
+ }
+
@Test
void checkGHexistingIssue() {
super.setUp()
@@ -120,7 +129,10 @@ class TestOpenSearchIntegTest extends BuildPipelineTest {
runScript('jenkins/opensearch/integ-test.jenkinsfile')
}
assertJobStatusFailure()
- assertThat(getCommandExecutions('println', 'Issue'), hasItem('Issue already exists in the repository, skipping.'))
+ assertThat(getCommandExecutions('println', 'Issue'), hasItem('Issue already exists, adding a comment.'))
+ assertThat(getCommandExecutions('sh', 'script'), hasItem("{script=gh issue list --repo https://github.com/opensearch-project/OpenSearch.git -S \"[AUTOCUT] Integration Test failed for OpenSearch: 1.3.0 tar distribution in:title\" --label autocut,v1.3.0,integ-test-failure, returnStdout=true}"))
+ assertThat(getCommandExecutions('sh', 'script'), hasItem("{script=gh issue list --repo https://github.com/opensearch-project/OpenSearch.git -S \"[AUTOCUT] Integration Test failed for OpenSearch: 1.3.0 tar distribution in:title\" --label autocut,v1.3.0,integ-test-failure --json number --jq '.[0].number', returnStdout=true}"))
+ assertThat(getCommandExecutions('sh', 'script'), hasItem("{script=gh issue comment \nbbb\nccc\n --repo https://github.com/opensearch-project/OpenSearch.git --body \"The integration test failed at distribution level for component OpenSearch
Version: 1.3.0
Distribution: tar
Architecture: x64
Platform: linux
Please check the logs: https://some/url/redirect
* Steps to reproduce: See https://github.com/opensearch-project/opensearch-build/tree/main/src/test_workflow#integration-tests
* Access components yml file:
- [With security](https://ci.opensearch.org/ci/dbc/dummy_job/1.3.0/717/linux/x64/tar/test-results/234/integ-test/OpenSearch/with-security/OpenSearch.yml) (if applicable)
- [Without security](https://ci.opensearch.org/ci/dbc/dummy_job/1.3.0/717/linux/x64/tar/test-results/234/integ-test/OpenSearch/without-security/OpenSearch.yml) (if applicable)
_Note: All in one test report manifest with all the details coming soon. See https://github.com/opensearch-project/opensearch-build/issues/1274_\", returnStdout=true}"))
}
def getCommandExecutions(methodName, command) {
diff --git a/tests/jenkins/jenkinsjob-regression-files/opensearch-dashboards/integ-test.jenkinsfile.txt b/tests/jenkins/jenkinsjob-regression-files/opensearch-dashboards/integ-test.jenkinsfile.txt
index ad82a042b1..37d9d663cf 100644
--- a/tests/jenkins/jenkinsjob-regression-files/opensearch-dashboards/integ-test.jenkinsfile.txt
+++ b/tests/jenkins/jenkinsjob-regression-files/opensearch-dashboards/integ-test.jenkinsfile.txt
@@ -1,6 +1,6 @@
integ-test.run()
- integ-test.modernSCM({$class=GitSCMSource, remote=https://github.com/opensearch-project/opensearch-build-libraries.git})
- integ-test.library({identifier=jenkins@4.2.2, retriever=null})
+ integ-test.modernSCM({$class=GitSCMSource, remote=https://github.com/prudhvigodithi/opensearch-build-libraries.git})
+ integ-test.library({identifier=jenkins@main, retriever=null})
integ-test.pipeline(groovy.lang.Closure)
integ-test.credentials(jenkins-artifact-bucket-name)
integ-test.timeout({time=4, unit=HOURS})
@@ -11,13 +11,13 @@
integ-test.fileExists(manifests/tests/jenkins/data/opensearch-dashboards-3.0.0-test.yml)
integ-test.downloadBuildManifest({url=https://ci.opensearch.org/ci/dbc/distribution-build-opensearch-dashboards/3.0.0/215/linux/x64/tar/builds/opensearch-dashboards/opensearch-dashboards-3.0.0-linux-x64.tar.gz, path=tests/jenkins/data/opensearch-dashboards-3.0.0-build.yml})
downloadBuildManifest.legacySCM(groovy.lang.Closure)
- downloadBuildManifest.library({identifier=jenkins@4.2.2, retriever=null})
+ downloadBuildManifest.library({identifier=jenkins@main, retriever=null})
downloadBuildManifest.sh(curl -sSL https://ci.opensearch.org/ci/dbc/distribution-build-opensearch-dashboards/3.0.0/215/linux/x64/tar/builds/opensearch-dashboards/opensearch-dashboards-3.0.0-linux-x64.tar.gz --output tests/jenkins/data/opensearch-dashboards-3.0.0-build.yml)
downloadBuildManifest.readYaml({file=tests/jenkins/data/opensearch-dashboards-3.0.0-build.yml})
BuildManifest.asBoolean()
integ-test.downloadBuildManifest({url=null, path=build-manifest-opensearch.yml})
downloadBuildManifest.legacySCM(groovy.lang.Closure)
- downloadBuildManifest.library({identifier=jenkins@4.2.2, retriever=null})
+ downloadBuildManifest.library({identifier=jenkins@main, retriever=null})
downloadBuildManifest.sh(curl -sSL null --output build-manifest-opensearch.yml)
downloadBuildManifest.readYaml({file=build-manifest-opensearch.yml})
BuildManifest.asBoolean()
@@ -39,7 +39,7 @@
integ-test.script(groovy.lang.Closure)
integ-test.downloadBuildManifest({url=https://ci.opensearch.org/ci/dbc/distribution-build-opensearch-dashboards/3.0.0/215/linux/x64/tar/builds/opensearch-dashboards/opensearch-dashboards-3.0.0-linux-x64.tar.gz, path=tests/jenkins/data/opensearch-dashboards-3.0.0-build.yml})
downloadBuildManifest.legacySCM(groovy.lang.Closure)
- downloadBuildManifest.library({identifier=jenkins@4.2.2, retriever=null})
+ downloadBuildManifest.library({identifier=jenkins@main, retriever=null})
downloadBuildManifest.sh(curl -sSL https://ci.opensearch.org/ci/dbc/distribution-build-opensearch-dashboards/3.0.0/215/linux/x64/tar/builds/opensearch-dashboards/opensearch-dashboards-3.0.0-linux-x64.tar.gz --output tests/jenkins/data/opensearch-dashboards-3.0.0-build.yml)
downloadBuildManifest.readYaml({file=tests/jenkins/data/opensearch-dashboards-3.0.0-build.yml})
BuildManifest.asBoolean()
@@ -78,7 +78,7 @@
integ-test.sh(rm -rf test-results)
integ-test.runIntegTestScript({jobName=distribution-build-opensearch-dashboards, componentName=ganttChartDashboards, buildManifest=tests/jenkins/data/opensearch-dashboards-3.0.0-build.yml, testManifest=manifests/tests/jenkins/data/opensearch-dashboards-3.0.0-test.yml, localPath=/tmp/workspace/tar, switchUserNonRoot=false})
runIntegTestScript.legacySCM(groovy.lang.Closure)
- runIntegTestScript.library({identifier=jenkins@4.2.2, retriever=null})
+ runIntegTestScript.library({identifier=jenkins@main, retriever=null})
runIntegTestScript.readYaml({file=tests/jenkins/data/opensearch-dashboards-3.0.0-build.yml})
BuildManifest.asBoolean()
BuildManifest.getDistribution()
@@ -94,10 +94,20 @@
runIntegTestScript.echo(Switch User to Non-Root (uid=1000): false)
runIntegTestScript.echo(Run command: env PATH=$PATH ./test.sh integ-test manifests/tests/jenkins/data/opensearch-dashboards-3.0.0-test.yml --component ganttChartDashboards --test-run-id 215 --paths opensearch=/tmp/workspace/tar opensearch-dashboards=/tmp/workspace/tar --base-path DUMMY_PUBLIC_ARTIFACT_URL/dummy_job/3.0.0/215/linux/x64/tar )
runIntegTestScript.sh(env PATH=$PATH ./test.sh integ-test manifests/tests/jenkins/data/opensearch-dashboards-3.0.0-test.yml --component ganttChartDashboards --test-run-id 215 --paths opensearch=/tmp/workspace/tar opensearch-dashboards=/tmp/workspace/tar --base-path DUMMY_PUBLIC_ARTIFACT_URL/dummy_job/3.0.0/215/linux/x64/tar )
+ BuildManifest.getRepo(ganttChartDashboards)
+ integ-test.closeGithubIssue({repoUrl=https://github.com/opensearch-project/dashboards-visualizations.git, issueTitle=[AUTOCUT] Integration Test failed for ganttChartDashboards: 3.0.0 tar distribution, closeComment=Closing the issue as the Integration Test passed for ganttChartDashboards
Version: 3.0.0
Distribution: tar
Architecture: x64
Platform: linux
Please check the logs: https://some/url/redirect
*, label=autocut,v3.0.0,integ-test-failure})
+ closeGithubIssue.usernamePassword({credentialsId=jenkins-github-bot-token, passwordVariable=GITHUB_TOKEN, usernameVariable=GITHUB_USER})
+ closeGithubIssue.withCredentials([[GITHUB_USER, GITHUB_TOKEN]], groovy.lang.Closure)
+ closeGithubIssue.sh({script=gh issue list --repo https://github.com/opensearch-project/dashboards-visualizations.git -S "[AUTOCUT] Integration Test failed for ganttChartDashboards: 3.0.0 tar distribution in:title" --label autocut,v3.0.0,integ-test-failure, returnStdout=true})
+ closeGithubIssue.sh({script=gh issue list --repo https://github.com/opensearch-project/dashboards-visualizations.git -S "[AUTOCUT] Integration Test failed for ganttChartDashboards: 3.0.0 tar distribution in:title" --label autocut,v3.0.0,integ-test-failure --json number --jq '.[0].number', returnStdout=true})
+ closeGithubIssue.sh({script=gh issue close
+bbb
+ccc
+ --repo https://github.com/opensearch-project/dashboards-visualizations.git --comment "Closing the issue as the Integration Test passed for ganttChartDashboards
Version: 3.0.0
Distribution: tar
Architecture: x64
Platform: linux
Please check the logs: https://some/url/redirect
*", returnStdout=true})
integ-test.echo(Completed running integtest for component ganttChartDashboards)
integ-test.uploadTestResults({buildManifestFileName=tests/jenkins/data/opensearch-dashboards-3.0.0-build.yml, jobName=dummy_job})
uploadTestResults.legacySCM(groovy.lang.Closure)
- uploadTestResults.library({identifier=jenkins@4.2.2, retriever=null})
+ uploadTestResults.library({identifier=jenkins@main, retriever=null})
uploadTestResults.readYaml({file=tests/jenkins/data/opensearch-dashboards-3.0.0-build.yml})
BuildManifest.asBoolean()
uploadTestResults.echo(Build Id: 215)
@@ -122,7 +132,7 @@
integ-test.sh(rm -rf test-results)
integ-test.runIntegTestScript({jobName=distribution-build-opensearch-dashboards, componentName=indexManagementDashboards, buildManifest=tests/jenkins/data/opensearch-dashboards-3.0.0-build.yml, testManifest=manifests/tests/jenkins/data/opensearch-dashboards-3.0.0-test.yml, localPath=/tmp/workspace/tar, switchUserNonRoot=false})
runIntegTestScript.legacySCM(groovy.lang.Closure)
- runIntegTestScript.library({identifier=jenkins@4.2.2, retriever=null})
+ runIntegTestScript.library({identifier=jenkins@main, retriever=null})
runIntegTestScript.readYaml({file=tests/jenkins/data/opensearch-dashboards-3.0.0-build.yml})
BuildManifest.asBoolean()
BuildManifest.getDistribution()
@@ -138,10 +148,20 @@
runIntegTestScript.echo(Switch User to Non-Root (uid=1000): false)
runIntegTestScript.echo(Run command: env PATH=$PATH ./test.sh integ-test manifests/tests/jenkins/data/opensearch-dashboards-3.0.0-test.yml --component indexManagementDashboards --test-run-id 215 --paths opensearch=/tmp/workspace/tar opensearch-dashboards=/tmp/workspace/tar --base-path DUMMY_PUBLIC_ARTIFACT_URL/dummy_job/3.0.0/215/linux/x64/tar )
runIntegTestScript.sh(env PATH=$PATH ./test.sh integ-test manifests/tests/jenkins/data/opensearch-dashboards-3.0.0-test.yml --component indexManagementDashboards --test-run-id 215 --paths opensearch=/tmp/workspace/tar opensearch-dashboards=/tmp/workspace/tar --base-path DUMMY_PUBLIC_ARTIFACT_URL/dummy_job/3.0.0/215/linux/x64/tar )
+ BuildManifest.getRepo(indexManagementDashboards)
+ integ-test.closeGithubIssue({repoUrl=https://github.com/opensearch-project/index-management-dashboards-plugin, issueTitle=[AUTOCUT] Integration Test failed for indexManagementDashboards: 3.0.0 tar distribution, closeComment=Closing the issue as the Integration Test passed for indexManagementDashboards
Version: 3.0.0
Distribution: tar
Architecture: x64
Platform: linux
Please check the logs: https://some/url/redirect
*, label=autocut,v3.0.0,integ-test-failure})
+ closeGithubIssue.usernamePassword({credentialsId=jenkins-github-bot-token, passwordVariable=GITHUB_TOKEN, usernameVariable=GITHUB_USER})
+ closeGithubIssue.withCredentials([[GITHUB_USER, GITHUB_TOKEN]], groovy.lang.Closure)
+ closeGithubIssue.sh({script=gh issue list --repo https://github.com/opensearch-project/index-management-dashboards-plugin -S "[AUTOCUT] Integration Test failed for indexManagementDashboards: 3.0.0 tar distribution in:title" --label autocut,v3.0.0,integ-test-failure, returnStdout=true})
+ closeGithubIssue.sh({script=gh issue list --repo https://github.com/opensearch-project/index-management-dashboards-plugin -S "[AUTOCUT] Integration Test failed for indexManagementDashboards: 3.0.0 tar distribution in:title" --label autocut,v3.0.0,integ-test-failure --json number --jq '.[0].number', returnStdout=true})
+ closeGithubIssue.sh({script=gh issue close
+bbb
+ccc
+ --repo https://github.com/opensearch-project/index-management-dashboards-plugin --comment "Closing the issue as the Integration Test passed for indexManagementDashboards
Version: 3.0.0
Distribution: tar
Architecture: x64
Platform: linux
Please check the logs: https://some/url/redirect
*", returnStdout=true})
integ-test.echo(Completed running integtest for component indexManagementDashboards)
integ-test.uploadTestResults({buildManifestFileName=tests/jenkins/data/opensearch-dashboards-3.0.0-build.yml, jobName=dummy_job})
uploadTestResults.legacySCM(groovy.lang.Closure)
- uploadTestResults.library({identifier=jenkins@4.2.2, retriever=null})
+ uploadTestResults.library({identifier=jenkins@main, retriever=null})
uploadTestResults.readYaml({file=tests/jenkins/data/opensearch-dashboards-3.0.0-build.yml})
BuildManifest.asBoolean()
uploadTestResults.echo(Build Id: 215)
@@ -166,7 +186,7 @@
integ-test.sh(rm -rf test-results)
integ-test.runIntegTestScript({jobName=distribution-build-opensearch-dashboards, componentName=anomalyDetectionDashboards, buildManifest=tests/jenkins/data/opensearch-dashboards-3.0.0-build.yml, testManifest=manifests/tests/jenkins/data/opensearch-dashboards-3.0.0-test.yml, localPath=/tmp/workspace/tar, switchUserNonRoot=false})
runIntegTestScript.legacySCM(groovy.lang.Closure)
- runIntegTestScript.library({identifier=jenkins@4.2.2, retriever=null})
+ runIntegTestScript.library({identifier=jenkins@main, retriever=null})
runIntegTestScript.readYaml({file=tests/jenkins/data/opensearch-dashboards-3.0.0-build.yml})
BuildManifest.asBoolean()
BuildManifest.getDistribution()
@@ -182,10 +202,20 @@
runIntegTestScript.echo(Switch User to Non-Root (uid=1000): false)
runIntegTestScript.echo(Run command: env PATH=$PATH ./test.sh integ-test manifests/tests/jenkins/data/opensearch-dashboards-3.0.0-test.yml --component anomalyDetectionDashboards --test-run-id 215 --paths opensearch=/tmp/workspace/tar opensearch-dashboards=/tmp/workspace/tar --base-path DUMMY_PUBLIC_ARTIFACT_URL/dummy_job/3.0.0/215/linux/x64/tar )
runIntegTestScript.sh(env PATH=$PATH ./test.sh integ-test manifests/tests/jenkins/data/opensearch-dashboards-3.0.0-test.yml --component anomalyDetectionDashboards --test-run-id 215 --paths opensearch=/tmp/workspace/tar opensearch-dashboards=/tmp/workspace/tar --base-path DUMMY_PUBLIC_ARTIFACT_URL/dummy_job/3.0.0/215/linux/x64/tar )
+ BuildManifest.getRepo(anomalyDetectionDashboards)
+ integ-test.closeGithubIssue({repoUrl=https://github.com/opensearch-project/anomaly-detection-dashboards-plugin, issueTitle=[AUTOCUT] Integration Test failed for anomalyDetectionDashboards: 3.0.0 tar distribution, closeComment=Closing the issue as the Integration Test passed for anomalyDetectionDashboards
Version: 3.0.0
Distribution: tar
Architecture: x64
Platform: linux
Please check the logs: https://some/url/redirect
*, label=autocut,v3.0.0,integ-test-failure})
+ closeGithubIssue.usernamePassword({credentialsId=jenkins-github-bot-token, passwordVariable=GITHUB_TOKEN, usernameVariable=GITHUB_USER})
+ closeGithubIssue.withCredentials([[GITHUB_USER, GITHUB_TOKEN]], groovy.lang.Closure)
+ closeGithubIssue.sh({script=gh issue list --repo https://github.com/opensearch-project/anomaly-detection-dashboards-plugin -S "[AUTOCUT] Integration Test failed for anomalyDetectionDashboards: 3.0.0 tar distribution in:title" --label autocut,v3.0.0,integ-test-failure, returnStdout=true})
+ closeGithubIssue.sh({script=gh issue list --repo https://github.com/opensearch-project/anomaly-detection-dashboards-plugin -S "[AUTOCUT] Integration Test failed for anomalyDetectionDashboards: 3.0.0 tar distribution in:title" --label autocut,v3.0.0,integ-test-failure --json number --jq '.[0].number', returnStdout=true})
+ closeGithubIssue.sh({script=gh issue close
+bbb
+ccc
+ --repo https://github.com/opensearch-project/anomaly-detection-dashboards-plugin --comment "Closing the issue as the Integration Test passed for anomalyDetectionDashboards
Version: 3.0.0
Distribution: tar
Architecture: x64
Platform: linux
Please check the logs: https://some/url/redirect
*", returnStdout=true})
integ-test.echo(Completed running integtest for component anomalyDetectionDashboards)
integ-test.uploadTestResults({buildManifestFileName=tests/jenkins/data/opensearch-dashboards-3.0.0-build.yml, jobName=dummy_job})
uploadTestResults.legacySCM(groovy.lang.Closure)
- uploadTestResults.library({identifier=jenkins@4.2.2, retriever=null})
+ uploadTestResults.library({identifier=jenkins@main, retriever=null})
uploadTestResults.readYaml({file=tests/jenkins/data/opensearch-dashboards-3.0.0-build.yml})
BuildManifest.asBoolean()
uploadTestResults.echo(Build Id: 215)
@@ -210,7 +240,7 @@
integ-test.sh(rm -rf test-results)
integ-test.runIntegTestScript({jobName=distribution-build-opensearch-dashboards, componentName=OpenSearch-Dashboards, buildManifest=tests/jenkins/data/opensearch-dashboards-3.0.0-build.yml, testManifest=manifests/tests/jenkins/data/opensearch-dashboards-3.0.0-test.yml, localPath=/tmp/workspace/tar, switchUserNonRoot=false})
runIntegTestScript.legacySCM(groovy.lang.Closure)
- runIntegTestScript.library({identifier=jenkins@4.2.2, retriever=null})
+ runIntegTestScript.library({identifier=jenkins@main, retriever=null})
runIntegTestScript.readYaml({file=tests/jenkins/data/opensearch-dashboards-3.0.0-build.yml})
BuildManifest.asBoolean()
BuildManifest.getDistribution()
@@ -226,10 +256,20 @@
runIntegTestScript.echo(Switch User to Non-Root (uid=1000): false)
runIntegTestScript.echo(Run command: env PATH=$PATH ./test.sh integ-test manifests/tests/jenkins/data/opensearch-dashboards-3.0.0-test.yml --component OpenSearch-Dashboards --test-run-id 215 --paths opensearch=/tmp/workspace/tar opensearch-dashboards=/tmp/workspace/tar --base-path DUMMY_PUBLIC_ARTIFACT_URL/dummy_job/3.0.0/215/linux/x64/tar )
runIntegTestScript.sh(env PATH=$PATH ./test.sh integ-test manifests/tests/jenkins/data/opensearch-dashboards-3.0.0-test.yml --component OpenSearch-Dashboards --test-run-id 215 --paths opensearch=/tmp/workspace/tar opensearch-dashboards=/tmp/workspace/tar --base-path DUMMY_PUBLIC_ARTIFACT_URL/dummy_job/3.0.0/215/linux/x64/tar )
+ BuildManifest.getRepo(OpenSearch-Dashboards)
+ integ-test.closeGithubIssue({repoUrl=https://github.com/opensearch-project/OpenSearch-Dashboards.git, issueTitle=[AUTOCUT] Integration Test failed for OpenSearch-Dashboards: 3.0.0 tar distribution, closeComment=Closing the issue as the Integration Test passed for OpenSearch-Dashboards
Version: 3.0.0
Distribution: tar
Architecture: x64
Platform: linux
Please check the logs: https://some/url/redirect
*, label=autocut,v3.0.0,integ-test-failure})
+ closeGithubIssue.usernamePassword({credentialsId=jenkins-github-bot-token, passwordVariable=GITHUB_TOKEN, usernameVariable=GITHUB_USER})
+ closeGithubIssue.withCredentials([[GITHUB_USER, GITHUB_TOKEN]], groovy.lang.Closure)
+ closeGithubIssue.sh({script=gh issue list --repo https://github.com/opensearch-project/OpenSearch-Dashboards.git -S "[AUTOCUT] Integration Test failed for OpenSearch-Dashboards: 3.0.0 tar distribution in:title" --label autocut,v3.0.0,integ-test-failure, returnStdout=true})
+ closeGithubIssue.sh({script=gh issue list --repo https://github.com/opensearch-project/OpenSearch-Dashboards.git -S "[AUTOCUT] Integration Test failed for OpenSearch-Dashboards: 3.0.0 tar distribution in:title" --label autocut,v3.0.0,integ-test-failure --json number --jq '.[0].number', returnStdout=true})
+ closeGithubIssue.sh({script=gh issue close
+bbb
+ccc
+ --repo https://github.com/opensearch-project/OpenSearch-Dashboards.git --comment "Closing the issue as the Integration Test passed for OpenSearch-Dashboards
Version: 3.0.0
Distribution: tar
Architecture: x64
Platform: linux
Please check the logs: https://some/url/redirect
*", returnStdout=true})
integ-test.echo(Completed running integtest for component OpenSearch-Dashboards)
integ-test.uploadTestResults({buildManifestFileName=tests/jenkins/data/opensearch-dashboards-3.0.0-build.yml, jobName=dummy_job})
uploadTestResults.legacySCM(groovy.lang.Closure)
- uploadTestResults.library({identifier=jenkins@4.2.2, retriever=null})
+ uploadTestResults.library({identifier=jenkins@main, retriever=null})
uploadTestResults.readYaml({file=tests/jenkins/data/opensearch-dashboards-3.0.0-build.yml})
BuildManifest.asBoolean()
uploadTestResults.echo(Build Id: 215)
@@ -254,7 +294,7 @@
integ-test.sh(rm -rf test-results)
integ-test.runIntegTestScript({jobName=distribution-build-opensearch-dashboards, componentName=reportsDashboards, buildManifest=tests/jenkins/data/opensearch-dashboards-3.0.0-build.yml, testManifest=manifests/tests/jenkins/data/opensearch-dashboards-3.0.0-test.yml, localPath=/tmp/workspace/tar, switchUserNonRoot=false})
runIntegTestScript.legacySCM(groovy.lang.Closure)
- runIntegTestScript.library({identifier=jenkins@4.2.2, retriever=null})
+ runIntegTestScript.library({identifier=jenkins@main, retriever=null})
runIntegTestScript.readYaml({file=tests/jenkins/data/opensearch-dashboards-3.0.0-build.yml})
BuildManifest.asBoolean()
BuildManifest.getDistribution()
@@ -270,10 +310,20 @@
runIntegTestScript.echo(Switch User to Non-Root (uid=1000): false)
runIntegTestScript.echo(Run command: env PATH=$PATH ./test.sh integ-test manifests/tests/jenkins/data/opensearch-dashboards-3.0.0-test.yml --component reportsDashboards --test-run-id 215 --paths opensearch=/tmp/workspace/tar opensearch-dashboards=/tmp/workspace/tar --base-path DUMMY_PUBLIC_ARTIFACT_URL/dummy_job/3.0.0/215/linux/x64/tar )
runIntegTestScript.sh(env PATH=$PATH ./test.sh integ-test manifests/tests/jenkins/data/opensearch-dashboards-3.0.0-test.yml --component reportsDashboards --test-run-id 215 --paths opensearch=/tmp/workspace/tar opensearch-dashboards=/tmp/workspace/tar --base-path DUMMY_PUBLIC_ARTIFACT_URL/dummy_job/3.0.0/215/linux/x64/tar )
+ BuildManifest.getRepo(reportsDashboards)
+ integ-test.closeGithubIssue({repoUrl=https://github.com/opensearch-project/dashboards-reports.git, issueTitle=[AUTOCUT] Integration Test failed for reportsDashboards: 3.0.0 tar distribution, closeComment=Closing the issue as the Integration Test passed for reportsDashboards
Version: 3.0.0
Distribution: tar
Architecture: x64
Platform: linux
Please check the logs: https://some/url/redirect
*, label=autocut,v3.0.0,integ-test-failure})
+ closeGithubIssue.usernamePassword({credentialsId=jenkins-github-bot-token, passwordVariable=GITHUB_TOKEN, usernameVariable=GITHUB_USER})
+ closeGithubIssue.withCredentials([[GITHUB_USER, GITHUB_TOKEN]], groovy.lang.Closure)
+ closeGithubIssue.sh({script=gh issue list --repo https://github.com/opensearch-project/dashboards-reports.git -S "[AUTOCUT] Integration Test failed for reportsDashboards: 3.0.0 tar distribution in:title" --label autocut,v3.0.0,integ-test-failure, returnStdout=true})
+ closeGithubIssue.sh({script=gh issue list --repo https://github.com/opensearch-project/dashboards-reports.git -S "[AUTOCUT] Integration Test failed for reportsDashboards: 3.0.0 tar distribution in:title" --label autocut,v3.0.0,integ-test-failure --json number --jq '.[0].number', returnStdout=true})
+ closeGithubIssue.sh({script=gh issue close
+bbb
+ccc
+ --repo https://github.com/opensearch-project/dashboards-reports.git --comment "Closing the issue as the Integration Test passed for reportsDashboards
Version: 3.0.0
Distribution: tar
Architecture: x64
Platform: linux
Please check the logs: https://some/url/redirect
*", returnStdout=true})
integ-test.echo(Completed running integtest for component reportsDashboards)
integ-test.uploadTestResults({buildManifestFileName=tests/jenkins/data/opensearch-dashboards-3.0.0-build.yml, jobName=dummy_job})
uploadTestResults.legacySCM(groovy.lang.Closure)
- uploadTestResults.library({identifier=jenkins@4.2.2, retriever=null})
+ uploadTestResults.library({identifier=jenkins@main, retriever=null})
uploadTestResults.readYaml({file=tests/jenkins/data/opensearch-dashboards-3.0.0-build.yml})
BuildManifest.asBoolean()
uploadTestResults.echo(Build Id: 215)
@@ -298,7 +348,7 @@
integ-test.sh(rm -rf test-results)
integ-test.runIntegTestScript({jobName=distribution-build-opensearch-dashboards, componentName=queryWorkbenchDashboards, buildManifest=tests/jenkins/data/opensearch-dashboards-3.0.0-build.yml, testManifest=manifests/tests/jenkins/data/opensearch-dashboards-3.0.0-test.yml, localPath=/tmp/workspace/tar, switchUserNonRoot=false})
runIntegTestScript.legacySCM(groovy.lang.Closure)
- runIntegTestScript.library({identifier=jenkins@4.2.2, retriever=null})
+ runIntegTestScript.library({identifier=jenkins@main, retriever=null})
runIntegTestScript.readYaml({file=tests/jenkins/data/opensearch-dashboards-3.0.0-build.yml})
BuildManifest.asBoolean()
BuildManifest.getDistribution()
@@ -314,10 +364,20 @@
runIntegTestScript.echo(Switch User to Non-Root (uid=1000): false)
runIntegTestScript.echo(Run command: env PATH=$PATH ./test.sh integ-test manifests/tests/jenkins/data/opensearch-dashboards-3.0.0-test.yml --component queryWorkbenchDashboards --test-run-id 215 --paths opensearch=/tmp/workspace/tar opensearch-dashboards=/tmp/workspace/tar --base-path DUMMY_PUBLIC_ARTIFACT_URL/dummy_job/3.0.0/215/linux/x64/tar )
runIntegTestScript.sh(env PATH=$PATH ./test.sh integ-test manifests/tests/jenkins/data/opensearch-dashboards-3.0.0-test.yml --component queryWorkbenchDashboards --test-run-id 215 --paths opensearch=/tmp/workspace/tar opensearch-dashboards=/tmp/workspace/tar --base-path DUMMY_PUBLIC_ARTIFACT_URL/dummy_job/3.0.0/215/linux/x64/tar )
+ BuildManifest.getRepo(queryWorkbenchDashboards)
+ integ-test.closeGithubIssue({repoUrl=https://github.com/opensearch-project/sql.git, issueTitle=[AUTOCUT] Integration Test failed for queryWorkbenchDashboards: 3.0.0 tar distribution, closeComment=Closing the issue as the Integration Test passed for queryWorkbenchDashboards
Version: 3.0.0
Distribution: tar
Architecture: x64
Platform: linux
Please check the logs: https://some/url/redirect
*, label=autocut,v3.0.0,integ-test-failure})
+ closeGithubIssue.usernamePassword({credentialsId=jenkins-github-bot-token, passwordVariable=GITHUB_TOKEN, usernameVariable=GITHUB_USER})
+ closeGithubIssue.withCredentials([[GITHUB_USER, GITHUB_TOKEN]], groovy.lang.Closure)
+ closeGithubIssue.sh({script=gh issue list --repo https://github.com/opensearch-project/sql.git -S "[AUTOCUT] Integration Test failed for queryWorkbenchDashboards: 3.0.0 tar distribution in:title" --label autocut,v3.0.0,integ-test-failure, returnStdout=true})
+ closeGithubIssue.sh({script=gh issue list --repo https://github.com/opensearch-project/sql.git -S "[AUTOCUT] Integration Test failed for queryWorkbenchDashboards: 3.0.0 tar distribution in:title" --label autocut,v3.0.0,integ-test-failure --json number --jq '.[0].number', returnStdout=true})
+ closeGithubIssue.sh({script=gh issue close
+bbb
+ccc
+ --repo https://github.com/opensearch-project/sql.git --comment "Closing the issue as the Integration Test passed for queryWorkbenchDashboards
Version: 3.0.0
Distribution: tar
Architecture: x64
Platform: linux
Please check the logs: https://some/url/redirect
*", returnStdout=true})
integ-test.echo(Completed running integtest for component queryWorkbenchDashboards)
integ-test.uploadTestResults({buildManifestFileName=tests/jenkins/data/opensearch-dashboards-3.0.0-build.yml, jobName=dummy_job})
uploadTestResults.legacySCM(groovy.lang.Closure)
- uploadTestResults.library({identifier=jenkins@4.2.2, retriever=null})
+ uploadTestResults.library({identifier=jenkins@main, retriever=null})
uploadTestResults.readYaml({file=tests/jenkins/data/opensearch-dashboards-3.0.0-build.yml})
BuildManifest.asBoolean()
uploadTestResults.echo(Build Id: 215)
@@ -342,7 +402,7 @@
integ-test.sh(rm -rf test-results)
integ-test.runIntegTestScript({jobName=distribution-build-opensearch-dashboards, componentName=observabilityDashboards, buildManifest=tests/jenkins/data/opensearch-dashboards-3.0.0-build.yml, testManifest=manifests/tests/jenkins/data/opensearch-dashboards-3.0.0-test.yml, localPath=/tmp/workspace/tar, switchUserNonRoot=false})
runIntegTestScript.legacySCM(groovy.lang.Closure)
- runIntegTestScript.library({identifier=jenkins@4.2.2, retriever=null})
+ runIntegTestScript.library({identifier=jenkins@main, retriever=null})
runIntegTestScript.readYaml({file=tests/jenkins/data/opensearch-dashboards-3.0.0-build.yml})
BuildManifest.asBoolean()
BuildManifest.getDistribution()
@@ -358,10 +418,20 @@
runIntegTestScript.echo(Switch User to Non-Root (uid=1000): false)
runIntegTestScript.echo(Run command: env PATH=$PATH ./test.sh integ-test manifests/tests/jenkins/data/opensearch-dashboards-3.0.0-test.yml --component observabilityDashboards --test-run-id 215 --paths opensearch=/tmp/workspace/tar opensearch-dashboards=/tmp/workspace/tar --base-path DUMMY_PUBLIC_ARTIFACT_URL/dummy_job/3.0.0/215/linux/x64/tar )
runIntegTestScript.sh(env PATH=$PATH ./test.sh integ-test manifests/tests/jenkins/data/opensearch-dashboards-3.0.0-test.yml --component observabilityDashboards --test-run-id 215 --paths opensearch=/tmp/workspace/tar opensearch-dashboards=/tmp/workspace/tar --base-path DUMMY_PUBLIC_ARTIFACT_URL/dummy_job/3.0.0/215/linux/x64/tar )
+ BuildManifest.getRepo(observabilityDashboards)
+ integ-test.closeGithubIssue({repoUrl=https://github.com/opensearch-project/dashboards-observability.git, issueTitle=[AUTOCUT] Integration Test failed for observabilityDashboards: 3.0.0 tar distribution, closeComment=Closing the issue as the Integration Test passed for observabilityDashboards
Version: 3.0.0
Distribution: tar
Architecture: x64
Platform: linux
Please check the logs: https://some/url/redirect
*, label=autocut,v3.0.0,integ-test-failure})
+ closeGithubIssue.usernamePassword({credentialsId=jenkins-github-bot-token, passwordVariable=GITHUB_TOKEN, usernameVariable=GITHUB_USER})
+ closeGithubIssue.withCredentials([[GITHUB_USER, GITHUB_TOKEN]], groovy.lang.Closure)
+ closeGithubIssue.sh({script=gh issue list --repo https://github.com/opensearch-project/dashboards-observability.git -S "[AUTOCUT] Integration Test failed for observabilityDashboards: 3.0.0 tar distribution in:title" --label autocut,v3.0.0,integ-test-failure, returnStdout=true})
+ closeGithubIssue.sh({script=gh issue list --repo https://github.com/opensearch-project/dashboards-observability.git -S "[AUTOCUT] Integration Test failed for observabilityDashboards: 3.0.0 tar distribution in:title" --label autocut,v3.0.0,integ-test-failure --json number --jq '.[0].number', returnStdout=true})
+ closeGithubIssue.sh({script=gh issue close
+bbb
+ccc
+ --repo https://github.com/opensearch-project/dashboards-observability.git --comment "Closing the issue as the Integration Test passed for observabilityDashboards
Version: 3.0.0
Distribution: tar
Architecture: x64
Platform: linux
Please check the logs: https://some/url/redirect
*", returnStdout=true})
integ-test.echo(Completed running integtest for component observabilityDashboards)
integ-test.uploadTestResults({buildManifestFileName=tests/jenkins/data/opensearch-dashboards-3.0.0-build.yml, jobName=dummy_job})
uploadTestResults.legacySCM(groovy.lang.Closure)
- uploadTestResults.library({identifier=jenkins@4.2.2, retriever=null})
+ uploadTestResults.library({identifier=jenkins@main, retriever=null})
uploadTestResults.readYaml({file=tests/jenkins/data/opensearch-dashboards-3.0.0-build.yml})
BuildManifest.asBoolean()
uploadTestResults.echo(Build Id: 215)
diff --git a/tests/jenkins/jenkinsjob-regression-files/opensearch/integ-test.jenkinsfile.txt b/tests/jenkins/jenkinsjob-regression-files/opensearch/integ-test.jenkinsfile.txt
index fbf27b8aa2..37f64f0e33 100644
--- a/tests/jenkins/jenkinsjob-regression-files/opensearch/integ-test.jenkinsfile.txt
+++ b/tests/jenkins/jenkinsjob-regression-files/opensearch/integ-test.jenkinsfile.txt
@@ -1,6 +1,6 @@
integ-test.run()
- integ-test.modernSCM({$class=GitSCMSource, remote=https://github.com/opensearch-project/opensearch-build-libraries.git})
- integ-test.library({identifier=jenkins@4.2.2, retriever=null})
+ integ-test.modernSCM({$class=GitSCMSource, remote=https://github.com/prudhvigodithi/opensearch-build-libraries.git})
+ integ-test.library({identifier=jenkins@main, retriever=null})
integ-test.pipeline(groovy.lang.Closure)
integ-test.credentials(jenkins-artifact-bucket-name)
integ-test.timeout({time=4, unit=HOURS})
@@ -11,7 +11,7 @@
integ-test.fileExists(manifests/tests/jenkins/data/opensearch-1.3.0-test.yml)
integ-test.downloadBuildManifest({url=https://ci.opensearch.org/ci/dbc/distribution-build-opensearch/1.3.0/717/linux/x64/dist/opensearch/opensearch-1.3.0-linux-x64.tar.gz, path=tests/jenkins/data/opensearch-1.3.0-build.yml})
downloadBuildManifest.legacySCM(groovy.lang.Closure)
- downloadBuildManifest.library({identifier=jenkins@4.2.2, retriever=null})
+ downloadBuildManifest.library({identifier=jenkins@main, retriever=null})
downloadBuildManifest.sh(curl -sSL https://ci.opensearch.org/ci/dbc/distribution-build-opensearch/1.3.0/717/linux/x64/dist/opensearch/opensearch-1.3.0-linux-x64.tar.gz --output tests/jenkins/data/opensearch-1.3.0-build.yml)
downloadBuildManifest.readYaml({file=tests/jenkins/data/opensearch-1.3.0-build.yml})
BuildManifest.asBoolean()
@@ -30,7 +30,7 @@
integ-test.script(groovy.lang.Closure)
integ-test.downloadBuildManifest({url=https://ci.opensearch.org/ci/dbc/distribution-build-opensearch/1.3.0/717/linux/x64/dist/opensearch/opensearch-1.3.0-linux-x64.tar.gz, path=tests/jenkins/data/opensearch-1.3.0-build.yml})
downloadBuildManifest.legacySCM(groovy.lang.Closure)
- downloadBuildManifest.library({identifier=jenkins@4.2.2, retriever=null})
+ downloadBuildManifest.library({identifier=jenkins@main, retriever=null})
downloadBuildManifest.sh(curl -sSL https://ci.opensearch.org/ci/dbc/distribution-build-opensearch/1.3.0/717/linux/x64/dist/opensearch/opensearch-1.3.0-linux-x64.tar.gz --output tests/jenkins/data/opensearch-1.3.0-build.yml)
downloadBuildManifest.readYaml({file=tests/jenkins/data/opensearch-1.3.0-build.yml})
BuildManifest.asBoolean()
@@ -56,14 +56,14 @@
integ-test.sh(rm -rf test-results)
integ-test.runIntegTestScript({jobName=distribution-build-opensearch, componentName=OpenSearch, buildManifest=tests/jenkins/data/opensearch-1.3.0-build.yml, testManifest=manifests/tests/jenkins/data/opensearch-1.3.0-test.yml, localPath=/tmp/workspace/tar, switchUserNonRoot=false})
runIntegTestScript.legacySCM(groovy.lang.Closure)
- runIntegTestScript.library({identifier=jenkins@4.2.2, retriever=null})
+ runIntegTestScript.library({identifier=jenkins@main, retriever=null})
runIntegTestScript.readYaml({file=tests/jenkins/data/opensearch-1.3.0-build.yml})
BuildManifest.asBoolean()
BuildManifest.getDistribution()
runIntegTestScript.echo(Start integTest for distribution type: tar)
runIntegTestScript.detectTestDockerAgent({testManifest=manifests/tests/jenkins/data/opensearch-1.3.0-test.yml})
detectTestDockerAgent.legacySCM(groovy.lang.Closure)
- detectTestDockerAgent.library({identifier=jenkins@4.2.2, retriever=null})
+ detectTestDockerAgent.library({identifier=jenkins@main, retriever=null})
detectTestDockerAgent.readYaml({file=manifests/tests/jenkins/data/opensearch-1.3.0-test.yml})
TestManifest.asBoolean()
detectTestDockerAgent.echo(Using Docker image opensearchstaging/ci-runner:ci-runner-centos7-v1 (null))
@@ -79,10 +79,20 @@
runIntegTestScript.echo(Switch User to Non-Root (uid=1000): false)
runIntegTestScript.echo(Run command: env PATH=$PATH JAVA_HOME=/opt/java/openjdk-17 ./test.sh integ-test manifests/tests/jenkins/data/opensearch-1.3.0-test.yml --component OpenSearch --test-run-id 234 --paths opensearch=/tmp/workspace/tar --base-path DUMMY_PUBLIC_ARTIFACT_URL/dummy_job/1.3.0/717/linux/x64/tar )
runIntegTestScript.sh(env PATH=$PATH JAVA_HOME=/opt/java/openjdk-17 ./test.sh integ-test manifests/tests/jenkins/data/opensearch-1.3.0-test.yml --component OpenSearch --test-run-id 234 --paths opensearch=/tmp/workspace/tar --base-path DUMMY_PUBLIC_ARTIFACT_URL/dummy_job/1.3.0/717/linux/x64/tar )
+ BuildManifest.getRepo(OpenSearch)
+ integ-test.closeGithubIssue({repoUrl=https://github.com/opensearch-project/OpenSearch.git, issueTitle=[AUTOCUT] Integration Test failed for OpenSearch: 1.3.0 tar distribution, closeComment=Closing the issue as the Integration Test passed for OpenSearch
Version: 1.3.0
Distribution: tar
Architecture: x64
Platform: linux
Please check the logs: https://some/url/redirect
*, label=autocut,v1.3.0,integ-test-failure})
+ closeGithubIssue.usernamePassword({credentialsId=jenkins-github-bot-token, passwordVariable=GITHUB_TOKEN, usernameVariable=GITHUB_USER})
+ closeGithubIssue.withCredentials([[GITHUB_USER, GITHUB_TOKEN]], groovy.lang.Closure)
+ closeGithubIssue.sh({script=gh issue list --repo https://github.com/opensearch-project/OpenSearch.git -S "[AUTOCUT] Integration Test failed for OpenSearch: 1.3.0 tar distribution in:title" --label autocut,v1.3.0,integ-test-failure, returnStdout=true})
+ closeGithubIssue.sh({script=gh issue list --repo https://github.com/opensearch-project/OpenSearch.git -S "[AUTOCUT] Integration Test failed for OpenSearch: 1.3.0 tar distribution in:title" --label autocut,v1.3.0,integ-test-failure --json number --jq '.[0].number', returnStdout=true})
+ closeGithubIssue.sh({script=gh issue close
+bbb
+ccc
+ --repo https://github.com/opensearch-project/OpenSearch.git --comment "Closing the issue as the Integration Test passed for OpenSearch
Version: 1.3.0
Distribution: tar
Architecture: x64
Platform: linux
Please check the logs: https://some/url/redirect
*", returnStdout=true})
integ-test.echo(Completed running integtest for component OpenSearch)
integ-test.uploadTestResults({buildManifestFileName=tests/jenkins/data/opensearch-1.3.0-build.yml, jobName=dummy_job})
uploadTestResults.legacySCM(groovy.lang.Closure)
- uploadTestResults.library({identifier=jenkins@4.2.2, retriever=null})
+ uploadTestResults.library({identifier=jenkins@main, retriever=null})
uploadTestResults.readYaml({file=tests/jenkins/data/opensearch-1.3.0-build.yml})
BuildManifest.asBoolean()
uploadTestResults.echo(Build Id: 717)