forked from opensearch-project/opensearch-build
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add docker container and parameter check to jenkins workflow (opensea…
…rch-project#5089) Signed-off-by: Sayali Gaikawad <[email protected]>
- Loading branch information
Showing
2 changed files
with
20 additions
and
2 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 |
---|---|---|
|
@@ -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')) | ||
|
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 |
---|---|---|
|
@@ -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')) | ||
|
@@ -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}" | ||
) | ||
|