-
Notifications
You must be signed in to change notification settings - Fork 273
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add more test cases to the jenkinsfiles
Signed-off-by: Peter Zhu <[email protected]>
- Loading branch information
1 parent
3128c4b
commit 1310a80
Showing
7 changed files
with
130 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,6 @@ | ||
//lib = library(identifier: '[email protected]', retriever: modernSCM([ | ||
// $class: 'GitSCMSource', | ||
// remote: 'https://github.com/opensearch-project/opensearch-build-libraries.git', | ||
//])) | ||
lib = library(identifier: 'jenkins@windows-docker-integtest-2', retriever: modernSCM([ | ||
lib = library(identifier: '[email protected]', retriever: modernSCM([ | ||
$class: 'GitSCMSource', | ||
remote: 'https://github.com/peterzhuamazon/opensearch-build-libraries.git', | ||
remote: 'https://github.com/opensearch-project/opensearch-build-libraries.git', | ||
])) | ||
|
||
def docker_images = [ | ||
|
@@ -40,12 +36,12 @@ pipeline { | |
BUILD_JOB_NAME_OPENSEARCH = "distribution-build-opensearch" | ||
ARTIFACT_BUCKET_NAME = credentials('jenkins-artifact-bucket-name') | ||
} | ||
//triggers { | ||
// parameterizedCron ''' | ||
// H */3 * * * %TEST_MANIFEST=2.10.0/opensearch-dashboards-2.10.0-test.yml;BUILD_MANIFEST_URL=https://ci.opensearch.org/ci/dbc/distribution-build-opensearch-dashboards/2.10.0/latest/linux/arm64/tar/builds/opensearch-dashboards/manifest.yml;BUILD_MANIFEST_URL_OPENSEARCH=https://ci.opensearch.org/ci/dbc/distribution-build-opensearch/2.10.0/latest/linux/arm64/tar/builds/opensearch/manifest.yml | ||
// H */3 * * * %TEST_MANIFEST=2.10.0/opensearch-dashboards-2.10.0-test.yml;BUILD_MANIFEST_URL=https://ci.opensearch.org/ci/dbc/distribution-build-opensearch-dashboards/2.10.0/latest/linux/x64/tar/builds/opensearch-dashboards/manifest.yml;BUILD_MANIFEST_URL_OPENSEARCH=https://ci.opensearch.org/ci/dbc/distribution-build-opensearch/2.10.0/latest/linux/x64/tar/builds/opensearch/manifest.yml | ||
// ''' | ||
//} | ||
triggers { | ||
parameterizedCron ''' | ||
H */3 * * * %TEST_MANIFEST=2.10.0/opensearch-dashboards-2.10.0-test.yml;BUILD_MANIFEST_URL=https://ci.opensearch.org/ci/dbc/distribution-build-opensearch-dashboards/2.10.0/latest/linux/arm64/tar/builds/opensearch-dashboards/manifest.yml;BUILD_MANIFEST_URL_OPENSEARCH=https://ci.opensearch.org/ci/dbc/distribution-build-opensearch/2.10.0/latest/linux/arm64/tar/builds/opensearch/manifest.yml | ||
H */3 * * * %TEST_MANIFEST=2.10.0/opensearch-dashboards-2.10.0-test.yml;BUILD_MANIFEST_URL=https://ci.opensearch.org/ci/dbc/distribution-build-opensearch-dashboards/2.10.0/latest/linux/x64/tar/builds/opensearch-dashboards/manifest.yml;BUILD_MANIFEST_URL_OPENSEARCH=https://ci.opensearch.org/ci/dbc/distribution-build-opensearch/2.10.0/latest/linux/x64/tar/builds/opensearch/manifest.yml | ||
''' | ||
} | ||
parameters { | ||
string( | ||
name: 'COMPONENT_NAME', | ||
|
@@ -250,22 +246,22 @@ pipeline { | |
switchUserNonRoot: "${switch_user_non_root}" | ||
) | ||
String closeCommentMessage = "Closing the issue as the Integration Test passed for ${local_component}<br>Version: ${version}<br>Distribution: ${distribution}<br>Architecture: ${architecture}<br>Platform: ${platform}<br><br>Please check the logs: ${RUN_DISPLAY_URL}<br><br> *" | ||
//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" | ||
//) | ||
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}<br>Version: ${version}<br>Distribution: ${distribution}<br>Architecture: ${architecture}<br>Platform: ${platform}<br><br>Please check the logs: ${RUN_DISPLAY_URL}<br><br> * Test-report manifest:*<br> - https://ci.opensearch.org/ci/dbc/${JOB_NAME}/${version}/${buildId}/${platform}/${architecture}/${distribution}/test-results/${BUILD_NUMBER}/integ-test/test-report.yml <br><br> _Note: Steps to reproduce, additional logs and other files can be found within the above test-report manifest. <br>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" | ||
//) | ||
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}" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,6 @@ | ||
//lib = library(identifier: '[email protected]', retriever: modernSCM([ | ||
// $class: 'GitSCMSource', | ||
// remote: 'https://github.com/opensearch-project/opensearch-build-libraries.git', | ||
//])) | ||
lib = library(identifier: 'jenkins@windows-docker-integtest-2', retriever: modernSCM([ | ||
lib = library(identifier: '[email protected]', retriever: modernSCM([ | ||
$class: 'GitSCMSource', | ||
remote: 'https://github.com/peterzhuamazon/opensearch-build-libraries.git', | ||
remote: 'https://github.com/opensearch-project/opensearch-build-libraries.git', | ||
])) | ||
|
||
def docker_images = [ | ||
|
@@ -38,12 +34,12 @@ pipeline { | |
BUILD_JOB_NAME = "distribution-build-opensearch" | ||
ARTIFACT_BUCKET_NAME = credentials('jenkins-artifact-bucket-name') | ||
} | ||
//triggers { | ||
// parameterizedCron ''' | ||
// H 3 * * * %TEST_MANIFEST=2.10.0/opensearch-2.10.0-concurrent-search-test.yml;BUILD_MANIFEST_URL=https://ci.opensearch.org/ci/dbc/distribution-build-opensearch/2.10.0/latest/linux/arm64/tar/builds/opensearch/manifest.yml | ||
// H 3 * * * %TEST_MANIFEST=2.10.0/opensearch-2.10.0-concurrent-search-test.yml;BUILD_MANIFEST_URL=https://ci.opensearch.org/ci/dbc/distribution-build-opensearch/2.10.0/latest/linux/x64/tar/builds/opensearch/manifest.yml | ||
// ''' | ||
//} | ||
triggers { | ||
parameterizedCron ''' | ||
H 3 * * * %TEST_MANIFEST=2.10.0/opensearch-2.10.0-concurrent-search-test.yml;BUILD_MANIFEST_URL=https://ci.opensearch.org/ci/dbc/distribution-build-opensearch/2.10.0/latest/linux/arm64/tar/builds/opensearch/manifest.yml | ||
H 3 * * * %TEST_MANIFEST=2.10.0/opensearch-2.10.0-concurrent-search-test.yml;BUILD_MANIFEST_URL=https://ci.opensearch.org/ci/dbc/distribution-build-opensearch/2.10.0/latest/linux/x64/tar/builds/opensearch/manifest.yml | ||
''' | ||
} | ||
parameters { | ||
string( | ||
name: 'COMPONENT_NAME', | ||
|
@@ -200,22 +196,22 @@ pipeline { | |
switchUserNonRoot: "${switch_user_non_root}" | ||
) | ||
String closeCommentMessage = "Closing the issue as the Integration Test passed for ${local_component}<br>Version: ${version}<br>Distribution: ${distribution}<br>Architecture: ${architecture}<br>Platform: ${platform}<br><br>Please check the logs: ${RUN_DISPLAY_URL}<br><br> *" | ||
//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" | ||
//) | ||
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}<br>Version: ${version}<br>Distribution: ${distribution}<br>Architecture: ${architecture}<br>Platform: ${platform}<br><br>Please check the logs: ${RUN_DISPLAY_URL}<br><br> * Test-report manifest:*<br> - https://ci.opensearch.org/ci/dbc/${JOB_NAME}/${version}/${buildId}/${platform}/${architecture}/${distribution}/test-results/${BUILD_NUMBER}/integ-test/test-report.yml <br><br> _Note: Steps to reproduce, additional logs and other files can be found within the above test-report manifest. <br>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" | ||
//) | ||
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}" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.