diff --git a/jenkins/gradle/gradle-check-flaky-test-issue-creation.jenkinsfile b/jenkins/gradle/gradle-check-flaky-test-issue-creation.jenkinsfile index 9a2b50e1aa..49fd944b66 100644 --- a/jenkins/gradle/gradle-check-flaky-test-issue-creation.jenkinsfile +++ b/jenkins/gradle/gradle-check-flaky-test-issue-creation.jenkinsfile @@ -14,7 +14,14 @@ lib = library(identifier: 'jenkins@6.9.2', 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')) diff --git a/jenkins/integ-test-notification.jenkinsfile b/jenkins/integ-test-notification.jenkinsfile index d1082ff677..95dd35442a 100644 --- a/jenkins/integ-test-notification.jenkinsfile +++ b/jenkins/integ-test-notification.jenkinsfile @@ -14,7 +14,14 @@ lib = library(identifier: 'jenkins@7.0.0', 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')) @@ -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}" )