Skip to content

Commit

Permalink
Add docker container and parameter check to jenkins workflow (opensea…
Browse files Browse the repository at this point in the history
…rch-project#5089)

Signed-off-by: Sayali Gaikawad <[email protected]>
  • Loading branch information
gaiksaya authored Oct 10, 2024
1 parent 5b16eea commit 7ae361f
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,14 @@ lib = library(identifier: '[email protected]', retriever: modernSCM([


pipeline {
agent { label 'Jenkins-Agent-Ubuntu2004-X64-M58xlarge-Single-Host' }
agent {
docker {
label 'Jenkins-Agent-AL2023-X64-M54xlarge-Docker-Host'
image 'opensearchstaging/ci-runner:ci-runner-al2-opensearch-build-v1'
registryUrl 'https://public.ecr.aws/'
alwaysPull true
}
}
options {
timeout(time: 1, unit: 'HOURS')
buildDiscarder(logRotator(daysToKeepStr: '180'))
Expand Down
13 changes: 12 additions & 1 deletion jenkins/integ-test-notification.jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,14 @@ lib = library(identifier: '[email protected]', retriever: modernSCM([


pipeline {
agent { label 'Jenkins-Agent-AL2023-X64-M54xlarge-Docker-Host' }
agent {
docker {
label 'Jenkins-Agent-AL2023-X64-M54xlarge-Docker-Host'
image 'opensearchstaging/ci-runner:ci-runner-al2-opensearch-build-v1'
registryUrl 'https://public.ecr.aws/'
alwaysPull true
}
}
options {
timeout(time: 1, unit: 'HOURS')
buildDiscarder(logRotator(daysToKeepStr: '90'))
Expand All @@ -37,6 +44,10 @@ pipeline {
stage('Update integ tests failure issues') {
steps {
script {
if (params.INPUT_MANIFEST == '' || !fileExists("manifests/${params.INPUT_MANIFEST}")) {
currentBuild.result = 'ABORTED'
error("Failed to start the workflow. Input manifest was not provided or not found in manifests/${params.INPUT_MANIFEST}.")
}
updateIntegTestFailureIssues(
inputManifestPath: "manifests/${INPUT_MANIFEST}"
)
Expand Down

0 comments on commit 7ae361f

Please sign in to comment.