From fae6f1303d3388700408e5ea404602ce09c09bbd Mon Sep 17 00:00:00 2001 From: Peter Zhu Date: Sat, 7 Oct 2023 00:10:48 +0000 Subject: [PATCH] Add osd side Signed-off-by: Peter Zhu --- .../integ-test.jenkinsfile | 26 +++++++++++-------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/jenkins/opensearch-dashboards/integ-test.jenkinsfile b/jenkins/opensearch-dashboards/integ-test.jenkinsfile index 8d0b0c8d58..2ada4fdc5b 100644 --- a/jenkins/opensearch-dashboards/integ-test.jenkinsfile +++ b/jenkins/opensearch-dashboards/integ-test.jenkinsfile @@ -240,22 +240,26 @@ pipeline { 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( + if (env.distribution == 'tar') { + 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" + String issueBodyMessage = "The integration test failed at distribution level for component ${local_component}
Version: ${version}
Distribution: ${distribution}
Architecture: ${architecture}
Platform: ${platform}

Please check the logs: ${RUN_DISPLAY_URL}

* Test-report manifest:*
- https://ci.opensearch.org/ci/dbc/${JOB_NAME}/${version}/${buildId}/${platform}/${architecture}/${distribution}/test-results/${BUILD_NUMBER}/integ-test/test-report.yml

_Note: Steps to reproduce, additional logs and other files can be found within the above test-report manifest.
Instructions of this test-report manifest can be found [here](https://github.com/opensearch-project/opensearch-build/tree/main/src/report_workflow#guide-on-test-report-manifest-from-ci)._" + if (env.distribution == 'tar') { + createGithubIssue( repoUrl: buildManifestObj.getRepo("${local_component}"), issueTitle: "[AUTOCUT] Integration Test failed for ${local_component}: ${version} ${distribution} distribution", - closeComment: closeCommentMessage, + issueBody: issueBodyMessage, label: "autocut,v${version},integ-test-failure" ) } - } catch (e) { - echo "Error running integtest for component ${local_component}, creating Github issue" - String issueBodyMessage = "The integration test failed at distribution level for component ${local_component}
Version: ${version}
Distribution: ${distribution}
Architecture: ${architecture}
Platform: ${platform}

Please check the logs: ${RUN_DISPLAY_URL}

* Test-report manifest:*
- https://ci.opensearch.org/ci/dbc/${JOB_NAME}/${version}/${buildId}/${platform}/${architecture}/${distribution}/test-results/${BUILD_NUMBER}/integ-test/test-report.yml

_Note: Steps to reproduce, additional logs and other files can be found within the above test-report manifest.
Instructions of this test-report manifest can be found [here](https://github.com/opensearch-project/opensearch-build/tree/main/src/report_workflow#guide-on-test-report-manifest-from-ci)._" - createGithubIssue( - repoUrl: buildManifestObj.getRepo("${local_component}"), - issueTitle: "[AUTOCUT] Integration Test failed for ${local_component}: ${version} ${distribution} distribution", - issueBody: issueBodyMessage, - label: "autocut,v${version},integ-test-failure" - ) throw new Exception("Error running integtest for component ${local_component}", e) } finally { echo "Completed running integtest for component ${local_component}"