Skip to content

Commit

Permalink
Integration test results
Browse files Browse the repository at this point in the history
Signed-off-by: Prudhvi Godithi <[email protected]>
  • Loading branch information
prudhvigodithi committed Oct 16, 2024
1 parent cf2a14a commit 7efb714
Showing 1 changed file with 21 additions and 20 deletions.
41 changes: 21 additions & 20 deletions jenkins/opensearch/integ-test.jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
* compatible open source license.
*/

lib = library(identifier: 'jenkins@6.9.1', 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 = [
Expand Down Expand Up @@ -112,7 +112,7 @@ pipeline {
}
}
}
stage('validate-artifacts') {
/* stage('validate-artifacts') {
when {
expression {
params.VALIDATE_ARTIFACTS == true
Expand All @@ -139,12 +139,15 @@ pipeline {
postCleanup()
}
}
}
}*/
stage('integ-test') {
// Need to run this directly on agent node here in order to trigger stages with docker container and avoid docker within docker situation
// Can only be run in runner that is at least 50GB per container
agent { label AGENT_LABEL }
steps {
sh "Sample stage"
}
/*steps {
script {
downloadBuildManifest(
url: BUILD_MANIFEST_URL,
Expand Down Expand Up @@ -268,11 +271,11 @@ pipeline {
}
parallel componentTests
}
}
}*/
post {
always {
script {
retry(5) {
/*retry(5) {
node(AGENT_LABEL) {
docker.withRegistry('https://public.ecr.aws/') {
docker.image(docker_images["$distribution"]).inside(docker_args["$distribution"]) {
Expand All @@ -295,20 +298,18 @@ pipeline {
}
}
}
}
retry(5) {
node(agent_nodes['linux_x64']) {
sleep 10
def rc = (params.RC_NUMBER.toInteger() > 0)
sh "mkdir -p test-results-os-${env.BUILD_NUMBER}"
sh "curl -sSL https://ci.opensearch.org/ci/dbc/integ-test/${env.version}/${env.buildId}/${env.platform}/${env.architecture}/${env.distribution}/test-results/${env.BUILD_NUMBER}/integ-test/test-report.yml --output test-results-os-${env.BUILD_NUMBER}/test-report.yml"
publishIntegTestResults(
distributionBuildUrl: "https://build.ci.opensearch.org/blue/organizations/jenkins/${env.BUILD_JOB_NAME}/detail/${env.BUILD_JOB_NAME}/${env.buildId}/pipeline",
jobName: env.JOB_NAME,
testReportManifestYml: "test-results-os-${env.BUILD_NUMBER}/test-report.yml"
)
postCleanup()
}
}*/
node(agent_nodes['linux_x64']) {
sleep 10
def rc = (params.RC_NUMBER.toInteger() > 0)
sh "mkdir -p test-results-os-${env.BUILD_NUMBER}"
sh "curl -sSL https://build.ci.opensearch.org/job/integ-test/8808/artifact/test-report.yml --output test-results-os-${env.BUILD_NUMBER}/test-report.yml"
publishIntegTestResults(
distributionBuildUrl: "https://build.ci.opensearch.org/blue/organizations/jenkins/${env.BUILD_JOB_NAME}/detail/${env.BUILD_JOB_NAME}/${env.buildId}/pipeline",
jobName: env.JOB_NAME,
testReportManifestYml: "test-results-os-${env.BUILD_NUMBER}/test-report.yml"
)
postCleanup()
}

}
Expand Down

0 comments on commit 7efb714

Please sign in to comment.