Skip to content

Commit

Permalink
Bash test on gradle agents
Browse files Browse the repository at this point in the history
Signed-off-by: Prudhvi Godithi <[email protected]>
  • Loading branch information
prudhvigodithi committed Nov 1, 2024
1 parent 277c760 commit 2077481
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 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@7.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',
]))

def docker_images = [
Expand All @@ -27,7 +27,7 @@ def docker_args = [
]

def agent_nodes = [
'linux_x64': 'Jenkins-Agent-AL2023-X64-M54xlarge-Docker-Host',
'linux_x64': 'Jenkins-Agent-Ubuntu2004-X64-M58xlarge-Single-Host',
'linux_arm64': 'Jenkins-Agent-AL2023-Arm64-M6g4xlarge-Docker-Host',
'windows_x64': 'Jenkins-Agent-Windows2019-X64-M54xlarge-Docker-Host',
]
Expand Down Expand Up @@ -146,6 +146,9 @@ pipeline {
agent { label AGENT_LABEL }
steps {
script {
sh "test"
}
/*script {
downloadBuildManifest(
url: BUILD_MANIFEST_URL,
path: BUILD_MANIFEST
Expand Down Expand Up @@ -267,12 +270,12 @@ 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,13 +298,13 @@ 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"
sh "curl -sSL https://build.ci.opensearch.org/job/integ-test/8898/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,
Expand All @@ -317,7 +320,7 @@ pipeline {
}
}
}
post {
/*post {
always {
node(AGENT_LABEL) {
script {
Expand All @@ -333,5 +336,5 @@ pipeline {
}
}
}
}
}*/
}

0 comments on commit 2077481

Please sign in to comment.